Skip navigation.

Raphael's Blog

A look into a programmer's life

PHP4 and PHP5, both in Apache...

, ,

I just tried to install both PHP4 (well, already installed) and PHP5 both in Apache, ... everything was ok until I downloaded the php5 package... who would think that it is going to install php5 as cgi, apache module and apache2 module? :S well, this little package made me reinstall apache, php4 and php5... because since php4 and php5 can't live together working both of them as Apache modules, it removed PHP4!

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 :whistle: ).

FDB-> Again with the PHP sessions systemTaking a break

Comments

Anonymous 13. May 2006, 11:52

NeverPanic writes:

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

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

If you can't read the words, press the small reload icon.


Smilies