PHP4 and PHP5, both in Apache...
Wednesday, 5. April 2006, 01:39:09
Now after I got to solve that issue, I had to install PHP5 as a CGI (hehe, since PHP5 is not my main language... it has the bad luck to run as a CGI), so, as I didn't know how to add it as a CGI, I googled for a while and I found this site: http://www.howtoforge.com/apache2_with_php5_and_php4 .. I said nice... it is for debian but suddenly I saw that it was for Apache2, so I googled some more and then I found this other site: http://www.dotdeb.org/howto/php5_and_php4_on_the_same_apache Finally one for Apache! (almost all google results were for Apache2). And I added PHP5, the bad guy, as a CGI. Everything seemed to be ok, until I did a /etc/init.d/apache restart, that was when I got this nice error:
Configuration syntax error detected, not starting/reloading...
Syntax error on line 818 of /etc/apache/httpd.conf:
Invalid command 'Action', perhaps mis-spelled or defined by a module not included in the server configuration
failed!
So, after reading the message about five times finally I understood what was going on: "defined by a module not included" so I just noticed that there had to be a module called mod_action, if you know something about that you will say "... what happened to the s of mod_actions ?", and yes, the name of the module is mod_actions; so finally I got to make it work.
Now I just have to find out why Apache sometimes doesn't want to work with MySQL ... only Apache-SSL always works, and also, I have to rename some PHP5 scripts to .php5 so they work (hehe, I already was kind of scared when some classes from phpclasses.org were not working









Anonymous # 13. May 2006, 11:52
As you perhaps know we have that mod_php4 cgi_php5 system running at our puffinhost server. We installed it according to guide at the cPanel forums (you might need to register to see it)
Here's the link: http://forums.cpanel.net/showthread.php?t=45908
Give it a try!
Clemens