View Single Post
Old 22nd June 2007, 16:11
melwood melwood is offline
Join Date: Jun 2007
Location: Edling, Germany
Posts: 37
Thanks: 5
Thanked 1 Time in 1 Post

Originally Posted by till
This will only work depends if you have a binary named php in your global cgi-bin directory.

For example the php4 binary might be named php4 or php4-cgi and not php, so the rsulting code will be:

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


Action php4-cgi /cgi-bin/php4-cgi
AddHandler php4-cgi .php
Okay, there is a /usr/lib/cgi-bin/php4 on my system, so I added

Action php4-cgi /usr/lib/cgi-bin/php4
AddHandler php4-cgi .php

But now I get a 404: Fehler 404 - Datei nicht gefunden!

Also tried

Action php4-cgi /cgi-bin/php4

as I'm not sure if I have to use the full path there, but the same result...

There is also a /usr/bin/php4-cgi but this isn't working either.

HTML-files are shown correctly...

The error log says: [Fri Jun 22 15:48:13 2007] [error] [client] File does not exist: /var/www/web17/web/cgi-bin


Last edited by melwood; 22nd June 2007 at 16:57.
Reply With Quote