chris8lunch

Well-Known Member
May 27, 2006
160
0
166
I'm trying to have my server admins get PHP4 + PHP5 running.. but they gave me this reply,

--
Hi,

As per your request, I have tried to install the php5 with apache. But the problem now I face is that both the php's cannot be installed as apache module. One of the php installed should in the cgi format. Configuring php4 which come's with the cpanel is a bit risky. Please let me know whether I can install the php5 in cgi-mode. Please let me know the details. So that I can proceed further on this request.
--

What should I say? Is this guy correct? Or is what he saying true about how to get PHP5 running? Help, please.

Thanks kindly!
 

jayh38

Well-Known Member
Mar 3, 2006
1,212
0
166
One has to be a module and the other as cgi. It's not hard to configure. But if your admin just discovered that two php modules will not install side by side, you may want to seek other install options.
 

chris8lunch

Well-Known Member
May 27, 2006
160
0
166
One has to be a module and the other as cgi. It's not hard to configure. But if your admin just discovered that two php modules will not install side by side, you may want to seek other install options.
Is this a security risk by doing so? Because it seems like they are warning me or something..
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
80
458
cPanel Access Level
Root Administrator
If he sets up the CGI with suExec, or PHPSuExec, then it is safer than the module version, in the sense that the PHP scripts which use the suExec protected CGI binary run using your account credentials, rather than Apache's credentials.
 

DigitalN

Well-Known Member
Sep 23, 2004
419
1
168
You can run both as apache modules, but you have to patch php so that there is not a conflict with the 2 versions, it's quite easy.

That said, it is easier to install the second php install either as a cgi or in another apache server running on the same box, on different ips as a module.