php 4 and 5 concurrently?

tutt

Verified User
Joined
Mar 11, 2007
Messages
8
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?
 
There is no such version 4.9. If you want to have PHP4 as CLI and PHP5 as cgi, do:
Code:
cd /usr/local/directadmin/custombuild
Now edit options.conf file with your favourite text editor, e.g. nano:
Code:
nano -w options.conf
Set:
Code:
php4_cli=yes
php4_cgi=no
php5_cli=no
php5_cgi=yes
Save the file and do:
Code:
./build php n
That's it. Good luck!
 
Hmm.. I haven't got a custombuild directory (there is a customapache directory but there is no options.conf file in it)..?
 
Scratch that. I guess I have to install custombuild first. I am doing that now.
 
Back
Top