error in a CGI script

Problems with the Windows version of XAMPP, questions, comments, and anything related.

error in a CGI script

Postby maxi » 09. December 2006 20:37

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.
maxi
 
Posts: 3
Joined: 09. December 2006 20:29

Postby Izzy » 09. December 2006 22:51

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
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby maxi » 09. December 2006 23:37

[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
maxi
 
Posts: 3
Joined: 09. December 2006 20:29

Postby Izzy » 09. December 2006 23:51

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.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby maxi » 10. December 2006 00:09

Thankes. It resolve my problem.
maxi
 
Posts: 3
Joined: 09. December 2006 20:29


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 41 guests