var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
PHP4 & PHP5 Advice
Hi everyone, on my servers I have one program that will only work as php 4, at the moment I have php 5 working as .php5.
However its time to change, I need to get PHP 4 to now run as .php4 (with phpsuexec) and PHP 5 to run as .php (with phpsuexec) now I know I can use easy apache to change .php to be running as PHP 5.
But what is the best way to get php 4 installed as .php4?
Help is much appreciated!
Last edited by deastwood; 10-01-2006 at 06:46 AM.
is this with cpanel? You should also check cpanel.net - think I've seen an answer to this there.
Look for in your apache configuration:
AddType application/x-httpd-php .php
Just change that to .php4 and restart apache, however on most cPanel servers this is already defaulted for .php4 as well.
will have a look brianoz thanks
@ servax, i would still need to install php4 though as I want php5 to be the one compiled with apache.
There's a nice thread on the cpanel forums at:
HOW-TO: Apache + phpsuexec + php4 (cgi) + php5 (cgi)
Check it out! This should be able to be adapted to PHP5 easily enough ...
so basically just run the second step for php 4, ok i think i get it, will have a go later or might just pay someone todo it lol!
Then yeah, follow the instructions on the guide and instead of compiling PHP4 as the guide says, do PHP5 and vice versa.
cheers, im slowly learning, i think im getting the hang of all the little bits todo with the server, appreciate your help!