You are here: Re: .htaccess troubles... « PHP Programming Language « IT news, forums, messages
Re: .htaccess troubles...

Posted by Mike Willbanks on 11/25/05 03:41

John,

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)
AllowOverride Options
Options +ExecCGI
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..

Mike


> I'm having a problem using the .htaccess file to point my local installation
> 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)...
>
> <start quote>
> #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
> <end quote>
>
> ...but when I run the sysinfo.php test script
> (www.mydomain.com/horde/sysinfo.php) I get the following error...
>
> <start quote>
> Not Found
> The requested URL /cgi-bin/php5.cgi/horde/sysinfo.php was not found on this
> server.
> <end quote>
>
> Why is it sticking /cgi-bin/php5.cgi into the URL?
>
> Thanks,
> John
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация