Jaws
15th July 2004, 05:26 AM
Hey all. Running Fedora Core 2 here, using Apache.
When I try to run a .php file on my server, i get 500 Internal Server Error.
This is what turns up in my error logs:
[Tue Jul 13 23:15:03 2004] [error] [client 192.168.1.100] attempt to invoke directory as script: /var/www/cgi-bin/
[Tue Jul 13 23:15:08 2004] [error] [client 192.168.1.100] (8)Exec format error: exec of '/var/www/cgi-bin/index.php' failed
[Tue Jul 13 23:15:08 2004] [error] [client 192.168.1.100] Premature end of script headers: index.php
I have CHMODDED the file index.php with all permissions, and still getting this error.
I have this in my httpd.conf file:
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
ScriptAlias /cgi-bin/ "/usr/bin/"
AddType application/x-httpd.php .php
Action application/x-httpd.php "/php"
#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/var/www/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
If you have any solutions to this problem it is GREATLY appreciated. :)
When I try to run a .php file on my server, i get 500 Internal Server Error.
This is what turns up in my error logs:
[Tue Jul 13 23:15:03 2004] [error] [client 192.168.1.100] attempt to invoke directory as script: /var/www/cgi-bin/
[Tue Jul 13 23:15:08 2004] [error] [client 192.168.1.100] (8)Exec format error: exec of '/var/www/cgi-bin/index.php' failed
[Tue Jul 13 23:15:08 2004] [error] [client 192.168.1.100] Premature end of script headers: index.php
I have CHMODDED the file index.php with all permissions, and still getting this error.
I have this in my httpd.conf file:
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
ScriptAlias /cgi-bin/ "/usr/bin/"
AddType application/x-httpd.php .php
Action application/x-httpd.php "/php"
#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/var/www/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
If you have any solutions to this problem it is GREATLY appreciated. :)