Cgi problem

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

Cgi problem

Postby acido255 » 04. January 2008 10:00

Hi i have already installed mod perl and XAMPP successfully

but there a script Its (PHPmyrealty) that i bought

its in PHP so made transfered(im running it on Local machine) all the file htttpdoc folder but when i tries to open it in browser its give me a 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. Error 500
everytime
:evil:
can any one guide me???

let me include the error log file for further reference


[Fri Jan 04 13:33:52 2008] [crit] (2)No such file or directory: unable to replace stderr with /dev/null
[Fri Jan 04 13:33:58 2008] [notice] Apache/2.2.4 (Win32) DAV/2 mod_ssl/2.2.4 OpenSSL/0.9.8e mod_autoindex_color PHP/5.2.3 mod_perl/2.0.3 Perl/v5.8.8 configured -- resuming normal operations
[Fri Jan 04 13:33:58 2008] [notice] Server built: Mar 5 2007 11:23:00
[Fri Jan 04 13:33:58 2008] [notice] Parent: Created child process 628
[Fri Jan 04 13:34:05 2008] [notice] Child 628: Child process is running
[Fri Jan 04 13:34:05 2008] [notice] Child 628: Acquired the start mutex.
[Fri Jan 04 13:34:05 2008] [notice] Child 628: Starting 250 worker threads.
[Fri Jan 04 13:34:05 2008] [notice] Child 628: Starting thread to listen on port 443.
[Fri Jan 04 13:34:05 2008] [notice] Child 628: Starting thread to listen on port 80.
[Fri Jan 04 13:36:10 2008] [crit] (22)Invalid argument: unable to replace stderr with error_log
[Fri Jan 04 13:36:10 2008] [crit] (2)No such file or directory: unable to replace stderr with /dev/null
[Fri Jan 04 13:36:14 2008] [crit] (22)Invalid argument: unable to replace stderr with error_log
[Fri Jan 04 13:36:14 2008] [crit] (2)No such file or directory: unable to replace stderr with /dev/null
[Fri Jan 04 13:36:17 2008] [notice] Apache/2.2.4 (Win32) DAV/2 mod_ssl/2.2.4 OpenSSL/0.9.8e mod_autoindex_color PHP/5.2.3 mod_perl/2.0.3 Perl/v5.8.8 configured -- resuming normal operations
[Fri Jan 04 13:36:17 2008] [notice] Server built: Mar 5 2007 11:23:00
[Fri Jan 04 13:36:17 2008] [notice] Parent: Created child process 1816
[Fri Jan 04 13:36:23 2008] [notice] Child 1816: Child process is running
[Fri Jan 04 13:36:23 2008] [notice] Child 1816: Acquired the start mutex.
[Fri Jan 04 13:36:23 2008] [notice] Child 1816: Starting 250 worker threads.
[Fri Jan 04 13:36:23 2008] [notice] Child 1816: Starting thread to listen on port 443.
[Fri Jan 04 13:36:23 2008] [notice] Child 1816: Starting thread to listen on port 80.
[Fri Jan 04 13:36:23 2008] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/phpy
[Fri Jan 04 13:36:28 2008] [alert] [client 127.0.0.1] C:/xampp/htdocs/phpMy/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Fri Jan 04 13:52:20 2008] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/modpearl
[Fri Jan 04 13:52:45 2008] [error] Can't locate GD.pm in @INC (@INC contains: C:/xampp/perl/site/lib/ C:/xampp/perl/site/lib C:/xampp/perl/lib . C:/xampp/apache) at C:/xampp/htdocs/modperl/testgd.pl line 7.\nBEGIN failed--compilation aborted at C:/xampp/htdocs/modperl/testgd.pl line 7.\n
'whereis' is not recognized as an internal or external command,
operable program or batch file.
'whereis' is not recognized as an internal or external command,
operable program or batch file.
[Fri Jan 04 13:53:42 2008] [error] Can't locate GD.pm in @INC (@INC contains: C:/xampp/perl/site/lib/ C:/xampp/perl/site/lib C:/xampp/perl/lib . C:/xampp/apache) at C:/xampp/htdocs/modperl/testgd.pl line 7.\nBEGIN failed--compilation aborted at C:/xampp/htdocs/modperl/testgd.pl line 7.\n
[Fri Jan 04 13:55:00 2008] [error] [client 127.0.0.1] script not found or unable to stat: C:/xampp/cgi-bin/script.cgi
[Fri Jan 04 13:57:20 2008] [error] [client 127.0.0.1] script not found or unable to stat: C:/xampp/cgi-bin/script.cgi
[Fri Jan 04 13:57:30 2008] [alert] [client 127.0.0.1] C:/xampp/htdocs/phpMy/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Fri Jan 04 14:02:41 2008] [alert] [client 127.0.0.1] C:/xampp/htdocs/phpMy/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
acido255
 
Posts: 2
Joined: 04. January 2008 09:38

Postby Izzy » 04. January 2008 11:08

Lets do one thing at a time then we can clear some of the error log clutter.

[Fri Jan 04 14:02:41 2008] [alert] [client 127.0.0.1] C:/xampp/htdocs/phpMy/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration

This may need you to uncomment the rewrite module in the httpd.conf file.

Open xampp\apache\conf\httpd.conf in your text editor and find this line and uncomment it:

From this:
#LoadModule rewrite_module modules/mod_rewrite.so
To this:
LoadModule rewrite_module modules/mod_rewrite.so

Save the file after editing then restart Apache to get the edits recognized - always make a backup of conf and ini files before editing.

Now do what ever you were doing again to get any errors and just include the errors from the log file at the date and time they occurred in a paste - we will take them one at a time till we have no errors, hopefully ;).
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Hey

Postby acido255 » 05. January 2008 12:45

Thanx man
Thank you very much

Its work :lol: :o :lol:
acido255
 
Posts: 2
Joined: 04. January 2008 09:38


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 102 guests