View Full Version : php 4 and php 5 on the same server
Sushubh
10-08-2007, 03:41 AM
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?
Randy
10-08-2007, 04:28 AM
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.
iceuk626
10-08-2007, 10:10 AM
The CGI version is slower
I would suggest using FastCGI as it is quicker than both mod_php & CGI.
I would suggest using FastCGI as it is quicker than both mod_php & CGI.
Is this a true statement? Doesn't mod_php handle multiple requests more efficiently than FastCGI too?
Randy
10-30-2007, 04:48 AM
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.
So when you upload the files, they won't be pwnd by Apache. there's good reason for your scripts running as apache in most cases anyway.
iceuk626
10-30-2007, 12:03 PM
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
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.