You are here: CGI's on Apache « PHP « IT news, forums, messages
CGI's on Apache

Posted by Rory Browne on 05/26/05 15:10

Hi all.
I know this isn't php related, but I'm not subscribed to an apache
mailing list, and this is probably the closest of all the mailing
lists I'm subscribed to, to the topic.

I tried to enable CGI in my $HOME/public_html directory, by adding the
ExecCGI option, to the <Directory /home/*/public_html> section of the
httpd.conf file. Any CGI's I ran resulted in an "Internal Server
Error" on screen, and a "Premature end of script headers" in the error
log.

When I change to using a ScriptAlias the CGI's work fine, but I need
to have other non-cgi's in the same directory, and using ScriptAlias,
means that everything is considered a CGI, including Images, and CSS,
which as a result don't work.

That fact that ScriptAlias works suggests that my scripts are okay -
but why don't they work with ExecCGI?

I'm using Fedora Core 3, with "Apache/2.0.52 (Fedora) Server at
localhost Port 80", and otherwise default settings.

Regards
Rory

 

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

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