You are here: Re: php mail scripts & cgi-bin « All PHP « IT news, forums, messages
Re: php mail scripts & cgi-bin

Posted by stillman on 10/10/61 11:45

On Wed, 19 Apr 2006 02:13:35 GMT, Bwona wrote...
>
>hello,
>
>is there a problem with running php scripts from cgi-bins?
>i had someone write a form-mail script for me in php; it runs fine from my
>root web folder, but when I move it up one heirarchy to the cgi-bin, it
>generates internal server errors.
>
>the server error log reads the following:
>
>[Tue Apr 18 18:43:33 2006] [error] [client 155.5.24.161] Premature end of
>script headers: formmail.php, referer:
>http://www.mydomain.com/sample_form.html
>
>[Tue Apr 18 18:43:33 2006] [error] [client 155.5.24.161] failed to open log
>file /var/log/httpd/suexec_log, referer:
>http://www.mydomain.com/sample_form.html
>
>[Tue Apr 18 18:43:33 2006] [error] [client 155.5.24.161] fopen: Permission
>denied, referer: http://www.mydomain.com/sample_form.html
>
>thanks for any advice on this...
>
>don
>
>

I think PHP files are setup to run from your regular web root, and are processed
based on their file extension. Since cgi-bin directories are usually setup as a
ScriptAlias, I'm guess those directories are treated differently and may not be
compatible for storing and running your PHP scripts.


--
NewsGuy.Com 30Gb $9.95 Carry Forward and On Demand Bandwidth

 

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

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