PDA

View Full Version : Php4-cgi


standk
5th August 2006, 07:29
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 (http://www.howtoforge.com/apache2_with_php5_and_php4_p2) 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.

falko
6th August 2006, 14:35
Please post your vhost configuration here.

standk
7th August 2006, 12:25
Please post your vhost configuration here.

<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

falko
8th August 2006, 18:43
What's the output of ls -la /var/www?

standk
8th August 2006, 20:02
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

falko
9th August 2006, 17:36
Ok, and the output of
updatedb
locate php4?

standk
9th August 2006, 20:54
Ok, and the output of
updatedb
locate php4?

/usr/bin/php4-cgi

falko
10th August 2006, 19:19
What happens if you put

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

into the vhost configuration?