|If you wish to use both php4 and php5 at the same time, custombuild will allow you to do this.|
Note that you must have the 2 copies of php running as different types, one as CLI and one as CGI (suPhp). You cannot have both running as CLI, and similarly you cannot have both running as CGI.
First, make sure you're running custombuild.
This is the guide to install it if you don't have it:
To setup both php4 and php5, you'll be editing the options.conf, eg:
#PHP settings. default_php possible values - 4 or 5
Note that the default_php version (4 or 5) refers to what version of php files with extension .php will use. You can also use .php5 and .php4 extensions to be explicit with which you want.
Once saved, you'll need to compile both phps, then rewrite apache configs.
./build php n
|Allow php scripts to work under ~username when using suPhp (custombuild)|
|Setup a per-user php.ini to allow open_basedir with suPhp|
|Files uploaded with php scripts are owned by apache - how to install suPhp|
|Swapping between php versions when using suPHP and CLI with custombuild|
© 2018 JBMC Software, Suite 173 3-11 Bellerose Drive, St Albert, AB T8N 1P7 Canada. Mon-Fri 9AM-5PM MST