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.
<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
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
What happens if you put Code: AddHandler php-script .php4 Action php-script /cgi-bin/php4 into the vhost configuration?