Running Apache2 With PHP5 And PHP4 At The Same Time

Discussion in 'HOWTO-Related Questions' started by lojzi, Mar 27, 2008.

  1. lojzi

    lojzi New Member

    Hello!

    I try to run php4 as cgi and php5 as module on Apache 2.2 on my Debian.

    But i get error message on test php4:
    "The requested URL /usr/lib/cgi-bin/php4/info.php4 was not found on this server."

    Action Directive doesn't work.

    Do you have any suggestion?
     
  2. falko

    falko Super Moderator

    Did you add this to your Apache configuration?
    Code:
    AddHandler php-script .php4
    Action php-script /cgi-bin/php4
    Where's info.php4 located?
     
  3. lojzi

    lojzi New Member

    Yes, I followed instructions of the article from this site.

    DirectoryIndex, AddHandler, Action lines are added to /etc/apache2/apache2.conf.

    These modules are enabled: actions, ssl, rewrite, suexec, include.

    The php5 works properly.

    Looks like Action Directive doesn't work. It wants to run /usr/lib/cgi-bin/php4/info.php4 not /usr/lib/cgi-bin/php4.
     
    Last edited: Mar 31, 2008
  4. falko

    falko Super Moderator

    What's the output of
    Code:
    updatedb
    locate cgi-bin/php4
    ?
     

Share This Page