Page 1 of 1

error in a CGI script

PostPosted: 09. December 2006 20:37
by maxi
This is no very serious problem.

Server error!

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

If you think this is a server error, please contact the webmaster.
Error 500
localhost
12/09/06 20:15:33
Apache/2.2.3 (Win32) DAV/2 mod_ssl/2.2.3 OpenSSL/0.9.8d mod_autoindex_color PHP/5.2.0


I cant open and edit my mod_cgi file and I can know where is a problem.

PostPosted: 09. December 2006 22:51
by Izzy
When ever you get a server error, check the server's log file. It will usually give you more clues than the error message returned to your browser.

xampp\apache\logs\error.log

PostPosted: 09. December 2006 23:37
by maxi
[Sat Dec 09 20:03:01 2006] [alert] [client 127.0.0.1] C:/Program Files/xampp/xampp/htdocs/wbb2/archive/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration


[Sat Dec 09 23:37:10 2006] [alert] [client 127.0.0.1] C:/Program Files/xampp/xampp/htdocs/astrum/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration

PostPosted: 09. December 2006 23:51
by Izzy
You need to activate mod_rewrite in your xampp\apache\conf\httpd.conf file.

Open the above file in your preferred text editor (notepad perhaps).

Find this line and remove the # from the beginning of the line:
#LoadModule rewrite_module modules/mod_rewrite.so

To this:
LoadModule rewrite_module modules/mod_rewrite.so

Save the file then restart Apache for the changes to take effect.
Now see if your problem has gone.

Please not that you should always make a backup of any configuration file before making any changes.
It is very easy to revert to your known working copy if Apache won't restart.

PostPosted: 10. December 2006 00:09
by maxi
Thankes. It resolve my problem.