Hi, i installed PHP on my VPS (using solaris), i'm a newbie in installing stuff on the server so even tho its installed, when i open my address, i see all my php files, it doesn't load the php file...meaning if it click on index.php it proceeds to download... what am i doing wrong?
Hello, You can the installation details on : http://www.dbforums.com/php/968719-install-php-standalone-solaris-9-a.html
Does your program use mysql database or is it just a script? Is there an install.php file? If there is an install.php you will have to visit that page first to install, if the script uses a database you will have to create the DB and assign it to your script.
EVERYONE: DUH i know i hav to start php....and i know how to install scripts... webhost.uk.net: i already used that and i've installed it...but i m getting the problem of the PHP module...where the hell is it? Kaizoku: can u please tell how i can install the module?
I am not familar with Solaris, but try the following. if /usr/lib/apache2/modules/libphp5.so exists, then just put the following in httpd.conf or apache2.conf, I don't know which one Solaris uses, it can be found in /etc/apache2/ or /etc/httpd/ LoadModule php5_module /usr/lib/apache2/modules/libphp5.so Code (markup): if libphp5.so is not in that directory, you need to find it. find / -name libphp5.so Code (markup): *assuming you installed php5 Then just replace the dir in the LoadModule. Then add the following lines in the conf file after LoadModule php5_module <IfModule mod_php5.c> AddType application/x-httpd-php .php .phtml .php3 AddType application/x-httpd-php-source .phps </IfModule> Code (markup): I would recommend you use CentOS or Ubuntu if you are beginner in vps and dedicated servers. You can install php or anything with just 1 command. yum install php #CentOS/Red Hat apt-get install php5 #Ubuntu/Debian Code (markup):
OpenSolaris offers the same functionality with the "pfexec" command. I found this on the Sun website pfexec pkg install SUNWphp524 SUNWphp524core SUNWphp524man SUNWphp524-mysql SUNWphp524-pgsql SUNWapch22m-php5 Code (markup): That will install php 5.2.4, manual pages, mysql library, postgreSQL library (which you may not need), and the apache module. In short, everything you need to get going. dlc.sun.com/osol/docs/content/WEBSTACK/ggrud.html (can't post links yet) that also covers how to install PHP, apache, mysql, and the like. Best of luck
Kaizoku i cant find libphp5.so file...i tried the find command, but idk if it found it or not bcz nothing showed up on screen :S PLEASE HELP!!!!!
same thing happens....nothing shows up on screen: Sun Microsystems Inc. OpenSolaris build 2008.05 # find / -name "*php*.so" # Code (markup): The hash (#) comes up meaning it ready for another command...and no mention abt the find command...
Do you absolutely have to use solaris? If you can switch to CentOS/Debian/Ubuntu, I would recommend. Also, you didn't answer if you are using apache as http server or not.
Yes i'm using apache....and yes my vps is there for a year and it uses solaris... so i hav no other choice....I NEED TO GET THIS WORKING!!!!!
As far as I know most vps has templates that you can change OS at will. What control panel did they supply you with? Hypervm or Virtuozzo?
No I mean control panel to reboot your vps, shutdown, reinstall OS, QoS and stuff. If not than you should find another one. I would recommend http://www.servebyte.com/vps.html There is a special that you can double the ram for life. Scroll to bottom, and you see what the control panel I mean. It is not installed on your vps, but it is installed on the server hosting your vps.
Kaizoku: how do i find out my control panel? i mean where will i be able to find the option for reboot and stuff....it is given in my Webmin which i installed.... PS: i'm completely new to VPS and stuff