How do I setup a PHP website on Oracle WebLogic - php

I have a server running oracle linux and has Oracle WebLogic. How can I set it up so that if you go to my website on port 80 it runs of files on WebLogic. I only have command line access, and the reason im using web logic is because apache wont work on oracle linux.
I dont plan on changing OS.
Connah

See if this could help you: http://quercus.caucho.com
Quercus is Caucho Technology's fast, open-source, 100% Java implementation of the PHP language. Quercus is a feature of Caucho Technology's Resin Application Server and is built into Resin - there is no additional download/install. Developers using Resin can launch PHP projects without having to install the standard PHP interpreter (http://www.php.net) as Quercus takes on the role of the PHP engine.

I hope you are not waiting for an answer but for all folks who came here to find Java - PHP integration here is an article on oracle.com -
http://www.oracle.com/technetwork/articles/dsl/oracle-java-zend-server-152557.html
Now I would mention 2 obvious things:
You need to know both Java and PHP.
If you are using Oracle 11/12 G with PHP this is the best way to do so because the other way doesn't work and is not even maintained.

Related

Building Android app for running PHP and MySQL on Android Tablet

I want to run PHP + MySQL server on my Android Device. People seem to suggest applications like KSWeb and Bit Web.
Other solutions suggested are that I install an application that allows me to run Linux on Android. This requires the Android Device to be rooted. :(
I don't want to use any other application for this. So I would like to build an application similar to KSWeb myself. I have searched around for how to start building such application but it has not helped so far. Any guidance on how to go about this?
I mean how is it possible for KSWeb to build something like this, without root. :O
Any guidance on how to go about building this application would be very helpful.
Somewhere I was told to get the binaries compiled for ARMv6, but I don't know how to start.
Can NDK be of any use to me?
Please Help.
I am currently maintaining free and open source web server solution stack package, consisting mainly of the Lighttptd HTTP Server, MySQL database, PHP programming languages. It is still at beta stage.
It can give you a basic idea about how to develop this type of stuffs in android.
Yes, its true binaries must compiled for ARM CPU in order make file executable.
And you can use NDK but i recommend you to go with alternatives like CodeSourcery or Linaro
Here some starter tutorial for cross compiling Linux program to ARM
ARM cross-compiling
Cross compiling static C hello world
Anyway you can read this article how i cross compile for DroidPHP
Cross Compiling for DroidPHP
here is some articles regarding cross compiling PHP, Nginx, Lighttpd on arm6
Cross compiling PHP
Cross Compile PHP 5.3.3 to ARM
Error while compiling PHP for ARM (not reverent but helpful)
starting with php cross compile
Cross Compile Lighttpd + PHP + MySQL for ARM (2) (in Chinese but translate it to English)
Cross compling LIghttpd
lighttpd cross compiling
Cross compiling for ARM9 doesn't work
Cross compiling Nginx
Nginx CMake
I am New to android but something sounds wrong about all this.php is a server side scripting language. Now you are going to run around from hot spot to hot spot hosting I guess a web service backed by a mysql database. Do you have a static ip? Mysql is an excellent choice for a low end dbms if sqlite was not already built into droid. Like I said I am New and it's probably me but this just sounds wrong.
From the answers I see someone talking about compiling php which would make it no longer script.
If you're open to use something other than PHP/Mysql, Python may be a good option. You can listen to sockets and send info through Python, which is supported through SL4A app.
Apparently CherryPy works on Android: http://www.defuze.org/archives/228-running-cherrypy-on-android-with-sl4a.html
There's Django and probably others, but those may be more complex to set up.

Server with full php support for Android 2.3.4 on BeagleBoard-xM

I'm looking for some good opensource webservers for android 2.3.4 gingerbread mounted on beagleboard-xM.
I already used PAW server but the php functions are not good enough.
I need to have a server which exactly has the working capability of XAMP server.
Any suggestions please...??
I don't think you can find something same as xamp...
There is another application for example (I haven't tested it) https://play.google.com/store/apps/details?id=com.andi.serverweb&feature=related_apps
Other option is to use some "Debian installer" to get clean original Debian on your machine.

Getting started with PHP on Windows

I'm getting started with a side project that will be developed using PHP and I'm looking for guidance on getting my Windows machine up and running and ready for development (as quickly as possible). Being that PHP development is more geared towards Linux users/developers (which I am not), I'm trying to figure out how to get all the pieces in place to get a 'WAMP' stack operational locally on my Windows machine.
Any good tutorials/quick start guides out there and if not, does someone have all the steps that they could provide me with here?
Install Apache Friends XAMPP.
PHP on Windows:
Install Xampp because it is really easy to install.
Use version control system like for example git to store your code.
Use an IDE like netbeans/eclipse/aptana for faster PHP development(autocomplete, code formatting, PHPdoc, etc).
Learn a PHP framework like for example codeigniter to ease your development. The video/screencast to create a blog in 20 minutes will learn you how to use it.
Practice TDD to test your code, which will result in more stable code-base.
Good luck coding!
Learning Linux/Ubuntu:
As a sidenote when installing ubuntu which is really a straight forward process you will see that using linux isn't that difficult as you think(It used to be difficult compiling source manually etc). when you install a dual boot and play with every day. I guarantee you that in no time you will really love linux like I do. I really think linux is the best option for coding. Also redis main creator shares this opinion with me.
Probably the quickest way to get a PHP server up and running on Windows is WAMP 2.0. Wamp Site. I use it on my Vista machine. Download it, run the 'exe', and start coding. It is only 16 MB but it is powerful and very simple to use.
Why not go the official Microsoft route:
Microsoft Web Platform Installer 2.0
installs both PHP (to run in IIS) and MySQL.
My two cents. I use Netbeans for my windows PHP development. Here is a quick start guide
As previously mentioned, XAMPP is probably the easiest and fastest way to get started with PHP. Search installing xampp on youtube, they got a good video on how to install it to your system.

What's a Robust but Simple Apache / PHP / MySQL Installer for Windows Vista

I tried easyphp but i think it's not enough, I want an Apache / PHP / MySQL installer which has the latest PHP and MySQL version, and with curl and htaccess support.
Opensource solutions are preferred, should be windows vista compatible.
I have never heard of a PHP / mySQL emulator. What purpose would such a tool serve?
If you are looking for a ready-made installer package for Windows, containing everything necessary to install and run PHP, XAMPP is probably one of the best ones around.
WAMP Server is excellent, easy to install and easy to configure:
http://www.wampserver.com/en/index.php
If you want the last version of each piece of software, and to really do it the way you want, the best solution is to download an install each component separatly :
Apache : http://httpd.apache.org/
MySQL : http://dev.mysql.com/downloads/
And PHP : http://www.php.net/downloads.php
Of course, you'll have a bit more work to plug all those together than if using WAMP or anything like that -- but it also mean you'll know more about how they work and can be configured, which is always nice to know ;-)
Never heard of PHP or mySql emulators before. To run a php script you will need a webserver and the PHP engine to parse and execute the script. This cannot be emulated by another engine besides PHP.
I would suggest using Acquia Dev Desktop.
It installs Apache, MySQL & PHP with one click. Most importantly, unlike many other WAMP stacks, it works well under Windows Vista (32- or 64-bit). And as an extra, it installs Acquia Drupal for you as well, so if you ever want to get into Drupal development, you have everything you need to do so.
Get it at http://network.acquia.com/documentation/acquia-drupal-stack
I'm a BitNami developer and I personally suggest to use BitNami WAMPStack. It is free, it also includes phpMyAdmin for managing the MySQL databases and GUI management tool for the servers. Per your requirements, it is open source, compatible with Windows Vista and Windows 7, includes curl and htaccess support and we keep it fairly up to date.
XAMPP Lite USB
"XAMPP Lite" is an additional extra small XAMPP edition. Configured with relative paths you can use it on usb devices.

ASP.NET server and PHP?

I wanted to know, is a server that supports ASP.NET and PHP on the same box common? wordpress/mediaWiki/phpBB3 seem like a nice combo but i am developing a ASP.NET project.
Most windows webhosts support PHP as well. Big drawback to PHP being lack of URL rewriting support. IIS handles multiple handlers pretty well, so running both concurrently isn't even particularly tricky.
Take a look at the Microsoft Web Platform if you want to have a drop in replacement, otherwise PHP will install into IIS as a SAPI module or, if you are using IIS 7 you can also run it as FastCGI.
php|architect is also giving away the May 2009 issue which is all about running PHP on Windows.
Using IIS will certainly help you.
Download Microsoft's PHP for IIS, here, http://www.microsoft.com/web/platform/phponwindows.aspx
This'll help you start.
Don't forget to edit php.ini either in C:/Windows, or whereever the application was installed to, in order to ensure everything is set optimally for you.
We know PHP hasn’t always run smoothly on the Windows platform, so we’ve now optimized Windows Server to support your PHP applications through a new component: FastCGI. FastCGI works as an interface between PHP engine and IIS, and it ensures that PHP runs much faster than with CGI and way more reliable than PHP ISAPI.
with IIS you can host Asp.net and PHP
Another option is the Phalanger project that integrates PHP so you can use it either separately or inside ASP.NET on IIS.
It is compiled down so it should run much faster than standard interpreted php.
Phalanger
You could use Ubuntu Server (which a variety of hosting providers offer), among other GNU/Linux distros. Take a look at http://www.google.com/search?q=ubuntu+server+hosting , then just get apt-get Mono for ASP.NET, along with PHP 5:
sudo apt-get install mono-xsp2 php5
and anything else you need.

Categories