Solved: XAMPP "Internal server error"

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Gesp

Thread Starter
Account Closed
Joined
Nov 29, 2008
Messages
270
Hi there

I`m using XAMPP to test a blog.

However, this message shows to me now every time I try to access the blogs pages and in doesn`t let me in XAMPP`s user mains page.

Whats happening? What can i do to solve this?

Thanks
 

MMJ

Guest
Joined
Oct 15, 2006
Messages
3,625
Most probably you have something bad in your .htaccess. Take a look at /apache/logs/error.log
 

Gesp

Thread Starter
Account Closed
Joined
Nov 29, 2008
Messages
270
the error.log has a message that says:

.htaccess: RewriteEngine not allowed here

What happens here? I`ve gone to the .htaccess and it has a single sentence like this:


# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /xampp/mywebsite/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /xampp/mywebsite/index.php [L]
</IfModule>

# END WordPress


What should I do in order to solve the problem?
 

Gesp

Thread Starter
Account Closed
Joined
Nov 29, 2008
Messages
270
what you mean the "document root"?

It`s a XAMPP php database, so it`s in the xampp main folder
 

Gesp

Thread Starter
Account Closed
Joined
Nov 29, 2008
Messages
270
Well, I`ve found a solution to my probem: Deleting the .htaccess file.

Is there a problem with this?
 
Joined
Aug 12, 2007
Messages
696
Not a problem unless you need WordPress.

To eliminate the original error, you should modify the apache config file to allow the RewriteEngine to work from the .htaccess file with the AllowOverride directive.
 

Gesp

Thread Starter
Account Closed
Joined
Nov 29, 2008
Messages
270
Well now I`ve got another problem, it gives me a 404 error when I try to go to another page besides the home page.

What is the problem?
 
Joined
Aug 12, 2007
Messages
696
What step did you take to get the new error... eliminating the .htaccess or modifying the AllowOverride directive?
 

Gesp

Thread Starter
Account Closed
Joined
Nov 29, 2008
Messages
270
I don`t know. I actually never tryed to move to another page before the error 500. To solve the error 500 I deleted the .htaccess file.

Could this be the cause of the problem?
 
Joined
Aug 12, 2007
Messages
696
Yes and no.

Before you deleted the .htaccess, the server was complaining that you can't run the statements in the .htaccess file, so the whole thing was bombing.

Now without that file, the server is telling you that it can't find the files you are linking to. The missing .htaccess file is *not* the problem. You're links are simply pointed to files that don't exist, at least not in the place the server is looking.

The statements in the (now deleted) .htaccess file would have caught the error of the missing files and re-directed to the home page so your website wouldn't look broken (like it is now).

Hope this helps...
 

Gesp

Thread Starter
Account Closed
Joined
Nov 29, 2008
Messages
270
The big probelm is that the solutions I had found at the time for the error 500 where about oweriting some statements, but in my .htaccess file they where just right, there was no problem with those statements but the problem persisted.

So, when I create a new post on the blog thats attached to my xampp server, doesn`t the blog system create automatically a page? so when I click on the post it is viewed in its entire structure?

I mean like: You have a blog and you create a post that has just a sentence of home page thats an introduction. And when you click on its title you wanted to go to the page where its entirely showed. Doesn`t that other page be created automatically?
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Members online

Top