PDA

View Full Version : php 4 and 5 concurrently?



tutt
10-25-2008, 01:16 PM
Hello,
I've been searching around everywhere and can't find a step by step guide to this. I am currently running php 4.9 with several custom options in DirectAdmin. The DirectAdmin install is barely 2 months old.

I want to add php 5.x to run concurrently (through CGI). Can someone show me the correct way to do this?

smtalk
10-26-2008, 02:49 AM
There is no such version 4.9. If you want to have PHP4 as CLI and PHP5 as cgi, do:


cd /usr/local/directadmin/custombuild
Now edit options.conf file with your favourite text editor, e.g. nano:


nano -w options.conf
Set:


php4_cli=yes
php4_cgi=no
php5_cli=no
php5_cgi=yes
Save the file and do:


./build php n
That's it. Good luck!

tutt
10-26-2008, 02:39 PM
Hmm.. I haven't got a custombuild directory (there is a customapache directory but there is no options.conf file in it)..?

tutt
10-26-2008, 02:42 PM
Scratch that. I guess I have to install custombuild first. I am doing that now.