Php4-cgi

Discussion in 'HOWTO-Related Questions' started by standk, Aug 5, 2006.

  1. standk

    standk New Member

    Hello,

    I am running ubuntu and am having an issue with running PHP4 as a CGI next to mod_php5. I followed the instructions here but receive this error when trying to run an info.php4 file:

    [error] File does not exist: /home/user/public_html/cgi-bin/php4

    The file is located at /home/user/public_html/info.php4

    These are the two lines I am using:

    AddHandler php-script .php4
    Action php-script /cgi-bin/php4

    If I change the Action, whatever change I make is just added to the end of the error message.
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Please post your vhost configuration here.
     
  3. standk

    standk New Member

    <VirtualHost *:80>
    ServerName www.server1.com
    ServerAlias www.server1.com server1.com
    DocumentRoot /home/server1/public_html
    Options Indexes FollowSymLinks ExecCGI
    </VirtualHost>

    Where server1 is the actual server.

    AddHandler php-script .php4
    Action php-script /cgi-bin/php4
    ==

    File does not exist: /home/server1/public_html/cgi-bin
     
  4. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    ls -la /var/www
    ?
     
  5. standk

    standk New Member

    ls -la /var/www
    total 16
    drwxr-xr-x 3 www-data www-data 4096 2006-08-08 00:11 .
    drwxr-xr-x 15 root root 4096 2006-08-07 02:45 ..
    drwxr-xr-x 2 root root 4096 2006-08-07 03:54 apache2-default
    -rw-r--r-- 1 root root 3586 2006-08-08 00:11 index.html
    lrwxrwxrwx 1 root root 21 2006-08-07 02:44 phpmyadmin -> /usr/share/phpmyadmin
     
  6. falko

    falko Super Moderator ISPConfig Developer

    Ok, and the output of
    Code:
    updatedb
    locate php4
    ?
     
  7. standk

    standk New Member

    /usr/bin/php4-cgi
     
  8. falko

    falko Super Moderator ISPConfig Developer

    What happens if you put

    Code:
    AddHandler php-script .php4
    Action php-script /cgi-bin/php4
    into the vhost configuration?
     

Share This Page