Error with xampp

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

Error with xampp

Postby poiuyt1234 » 19. November 2008 15:42

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
127.0.0.1
11/19/08 16:30:27
Apache/2.2.8 (Win32) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.8g mod_autoindex_color PHP/5.2.5


Many scripts request to change permissions(chmod 777 etc.)
How I can do it?

No one script which request chmod change don't work with XAMPP for Windows on my XP. :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :x :x :x :x :x :x :x
poiuyt1234
 
Posts: 7
Joined: 19. November 2008 15:34

Postby Wiedmann » 19. November 2008 15:49

Error 500

Read the "error.log" from Apache.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby Nobbie » 19. November 2008 16:51

>Many scripts request to change permissions(chmod 777 etc.)
>How I can do it?

You cannot do it, as chmod is linux world, not windows.
Nobbie
 
Posts: 8766
Joined: 09. March 2008 13:04

Postby poiuyt1234 » 19. November 2008 19:56

Nobbie wrote:>Many scripts request to change permissions(chmod 777 etc.)
>How I can do it?

You cannot do it, as chmod is linux world, not windows.


So I can't to install php engines which require chmode change on xampp for win??
poiuyt1234
 
Posts: 7
Joined: 19. November 2008 15:34

Postby Dave_L » 19. November 2008 21:24

With Apache on Windows, just ignore the instructions about "chmod". The scripts should still work.

The error you got is probably due to something else.

If it's CGI, make sure you have the correct path in the #! line at the beginning of the files(s).

Error 500 could also result from a mistake in httpd.conf or in an .htaccess file.

P.S. See Wiedmann's post above.
User avatar
Dave_L
 
Posts: 212
Joined: 23. October 2004 00:43

Postby poiuyt1234 » 20. November 2008 10:48

Part of error.log :
Code: Select all
[Wed Nov 19 16:06:58 2008] [alert] [client 127.0.0.1] D:/xampp/htdocs/datalife/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Wed Nov 19 16:08:08 2008] [alert] [client 127.0.0.1] D:/xampp/htdocs/datalife/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Wed Nov 19 16:08:10 2008] [alert] [client 127.0.0.1] D:/xampp/htdocs/datalife/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Wed Nov 19 16:08:57 2008] [alert] [client 127.0.0.1] D:/xampp/htdocs/datalife/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Wed Nov 19 16:09:05 2008] [alert] [client 127.0.0.1] D:/xampp/htdocs/datalife/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Wed Nov 19 16:21:56 2008] [alert] [client 127.0.0.1] D:/xampp/htdocs/datalife/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Wed Nov 19 16:23:26 2008] [alert] [client 127.0.0.1] D:/xampp/htdocs/datalife/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Wed Nov 19 16:23:29 2008] [alert] [client 127.0.0.1] D:/xampp/htdocs/datalife/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Wed Nov 19 16:26:58 2008] [alert] [client 127.0.0.1] D:/xampp/htdocs/datalife/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Wed Nov 19 16:27:01 2008] [alert] [client 127.0.0.1] D:/xampp/htdocs/datalife/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Wed Nov 19 16:27:56 2008] [alert] [client 127.0.0.1] D:/xampp/htdocs/datalife/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Wed Nov 19 16:30:27 2008] [alert] [client 127.0.0.1] D:/xampp/htdocs/datalife/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration


htaccess file:

Code: Select all
DirectoryIndex index.php

RewriteEngine On

#
RewriteRule ^page/(.*)$ index.php?cstart=$1 [L]

#
RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/page,([0-9]+),([0-9]+),(.*).html(/?)+$ index.php?subaction=showfull&year=$1&month=$2&day=$3&news_page=$4&cstart=$5&news_name=$6 [L]
RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/page,([0-9]+),(.*).html(/?)+$ index.php?subaction=showfull&year=$1&month=$2&day=$3&news_page=$4&news_name=$5 [L]
RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/print:page,([0-9]+),(.*).html(/?)+$ engine/print.php?subaction=showfull&year=$1&month=$2&day=$3&news_page=$4&news_name=$5 [L]
RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/(.*).html(/?)+$ index.php?subaction=showfull&year=$1&month=$2&day=$3&news_name=$4 [L]

RewriteRule ^([^.]+)/page,([0-9]+),([0-9]+),([0-9]+)-(.*).html(/?)+$ index.php?newsid=$4&news_page=$2&cstart=$3 [L]
RewriteRule ^([^.]+)/page,([0-9]+),([0-9]+)-(.*).html(/?)+$ index.php?newsid=$3&news_page=$2 [L]
RewriteRule ^([^.]+)/print:page,([0-9]+),([0-9]+)-(.*).html(/?)+$ engine/print.php?news_page=$2&newsid=$3 [L]
RewriteRule ^([^.]+)/([0-9]+)-(.*).html(/?)+$ index.php?newsid=$2 [L]

RewriteRule ^page,([0-9]+),([0-9]+),([0-9]+)-(.*).html(/?)+$ index.php?newsid=$3&news_page=$1&cstart=$2 [L]
RewriteRule ^page,([0-9]+),([0-9]+)-(.*).html(/?)+$ index.php?newsid=$2&news_page=$1 [L]
RewriteRule ^print:page,([0-9]+),([0-9]+)-(.*).html(/?)+$ engine/print.php?news_page=$1&newsid=$2 [L]
RewriteRule ^([0-9]+)-(.*).html(/?)+$ index.php?newsid=$1 [L]

#
RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})(/?)+$ index.php?year=$1&month=$2&day=$3 [L]
RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/page/([0-9]+)(/?)+$ index.php?year=$1&month=$2&day=$3&cstart=$4 [L]
#
RewriteRule ^([0-9]{4})/([0-9]{2})(/?)+$ index.php?year=$1&month=$2 [L]
RewriteRule ^([0-9]{4})/([0-9]{2})/page/([0-9]+)(/?)+$ index.php?year=$1&month=$2&cstart=$3 [L]
#
RewriteRule ^([0-9]{4})(/?)+$ index.php?year=$1 [L]
RewriteRule ^([0-9]{4})/page/([0-9]+)(/?)+$ index.php?year=$1&cstart=$2 [L]
#
RewriteRule ^tags/([^/]*)(/?)+$ index.php?do=tags&tag=$1 [L]
RewriteRule ^tags/([^/]*)/page/([0-9]+)(/?)+$ index.php?do=tags&tag=$1&cstart=$2 [L]
#
RewriteRule ^user/([^/]*)/rss.xml$ engine/rss.php?subaction=allnews&user=$1 [L]
RewriteRule ^user/([^/]*)(/?)+$ index.php?subaction=userinfo&user=$1 [L]
RewriteRule ^user/([^/]*)/news(/?)+$ index.php?subaction=allnews&user=$1 [L]
RewriteRule ^user/([^/]*)/news/page/([0-9]+)(/?)+$ index.php?subaction=allnews&user=$1&cstart=$2 [L]
RewriteRule ^user/([^/]*)/news/rss.xml(/?)+$ engine/rss.php?subaction=allnews&user=$1 [L]
#
RewriteRule ^lastnews/(/?)+$ index.php?do=lastnews [L]
RewriteRule ^lastnews/page/([0-9]+)(/?)+$ index.php?do=lastnews&cstart=$1 [L]
#
RewriteRule ^catalog/([^/]*)(/?)+$ index.php?catalog=$1 [L]
RewriteRule ^catalog/([^/]*)/page/([0-9]+)(/?)+$ index.php?catalog=$1&cstart=$2 [L]
#
RewriteRule ^newposts(/?)+$ index.php?subaction=newposts [L]
RewriteRule ^newposts/page/([0-9]+)(/?)+$ index.php?subaction=newposts&cstart=$1 [L]
#
RewriteRule ^static/(.*).html(/?)+$ index.php?do=static&page=$1 [L]
#
RewriteRule ^favorites(/?)+$ index.php?do=favorites [L]
RewriteRule ^favorites/page/([0-9]+)(/?)+$ index.php?do=favorites&cstart=$1 [L]

RewriteRule ^rules.html$ index.php?do=rules [L]
RewriteRule ^statistics.html$ index.php?do=stats [L]
RewriteRule ^addnews.html$ index.php?do=addnews [L]
RewriteRule ^rss.xml$ engine/rss.php [L]
RewriteRule ^sitemap.xml$ uploads/sitemap.xml [L]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^.]+)/page/([0-9]+)(/?)+$ index.php?do=cat&category=$1&cstart=$2 [L]
RewriteRule ^([^.]+)/?$ index.php?do=cat&category=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^<]+)/rss.xml$ engine/rss.php?do=cat&category=$1 [L]
RewriteRule ^page,([0-9]+),([^/]+).html$ index.php?do=static&page=$2&news_page=$1 [L]
RewriteRule ^([^/]+).html$ index.php?do=static&page=$1 [L]
poiuyt1234
 
Posts: 7
Joined: 19. November 2008 15:34

Postby Sharley » 20. November 2008 11:06

Open .\xampp\apache\conf\httpd.conf file in your text editor and find this line:
#LoadModule rewrite_module modules/mod_rewrite.so

Remove the # from in front so it looks like this:
LoadModule rewrite_module modules/mod_rewrite.so

Save the file and then restart Apache (stop then start again) to have your edit recognized.

Now try your script again.


When ever you get a server error always check the server's error.log file first as it usually contains some very good clues to what caused the error, which makes it very easy to troubleshoot an issue - in your case this error is the clue to the problem
Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Postby poiuyt1234 » 20. November 2008 11:36

Many thanks! :D :D :D :D :D :P :P :P :P :P :P :P
poiuyt1234
 
Posts: 7
Joined: 19. November 2008 15:34


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 59 guests