Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- John MacLeod
November 24, 2005, 4:14 pm
rate this thread
of php5 (located at www.mydomain.com/horde/cgi-bin/php5.cgi). As per the
instructions I was following I added the following to the .htaccess file
(located at www.mydomain.com/horde)...
#PHP 5.0.5 FINAL without security wrap
Action application/x-httpd-phpx /cgi-bin/php5.cgi
AddType application/x-httpd-phpx php php3 phtml php4 php5
...but when I run the sysinfo.php test script
(www.mydomain.com/horde/sysinfo.php) I get the following error...
The requested URL /cgi-bin/php5.cgi/horde/sysinfo.php was not found on this
Why is it sticking /cgi-bin/php5.cgi into the URL?
Re: .htaccess troubles...
Simple... It wants to reference everything off of /cgi-bin/php5.cgi
Pretty much you are telling it to have that action within the .htaccess
file. You can not specify an "Action" within a .htaccess file.
The correct way would be to add:
Apache 1.3 (.htacess file)
AddType application/x-httpd-phpx php php3 (...)
AddHandler application/x-httpd-phpx /cgi-bin/php5.cgi
I believe that is correct, however it might be otherwise..
- » php script to filter a text file and extract lines starting with keyword?
- — Previous thread in » PHP Scripting Forum