php 4 and php 5 on the same server

Sushubh

Verified User
Joined
Oct 8, 2007
Messages
10
I have a vB installation (with vbSEO with ZEND) and MediaWiki on the server.

vB with Zend seems to be working fine with php 4 which is installed on the server.

mediawiki requires php5.

on the earlier server the management guys had installed php5 in such a way that i could have added a file in .htaccess in media wiki folder to make it work.

rest of the site worked on php4.

now how to replicate this mechanism on this new server with directadmin php4?
 
Search this forum for the 'custimbuild' script. Run PHP4 in CLI, PHP5 in CGI. The CGI version is slower, so install the version witch will be used minor as CGI en de default version as CLI.
 
Is this a true statement? Doesn't mod_php handle multiple requests more efficiently than FastCGI too?

There are cons and pro's.

PHP in CGI with suphp runs the scripts in usermode. So when you upload the files, they won't be pwnd by Apache. FastCGI is fast, although sometimes a bit instable. Furthermore; you get problems with the files in /var/www/html so make an subdomein for webmail and phpmyadmin to solve this.
I prefer to use PHP5 as apache module. Suphp only runs in (slow) cgi so therefore try mod_suid in Apache. Then the apache child runs in usermode.
 
There are cons and pro's.

Furthermore; you get problems with the files in /var/www/html so make an subdomein for webmail and phpmyadmin to solve this.

What problems are these ?

I found a 17% increase in speed when using FastCGI over mod_php
 
Back
Top