1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Solved: XAMPP "Internal server error"

Discussion in 'Web Design & Development' started by Gesp, Mar 26, 2010.

Thread Status:
Not open for further replies.
Advertisement
  1. Gesp

    Gesp Account Closed Thread Starter

    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
     
  2. MMJ

    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
     
  3. Gesp

    Gesp Account Closed Thread Starter

    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?
     
  4. MMJ

    MMJ Guest

    Joined:
    Oct 15, 2006
    Messages:
    3,625
    What's the document root?
     
  5. Gesp

    Gesp Account Closed Thread Starter

    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
     
  6. MMJ

    MMJ Guest

    Joined:
    Oct 15, 2006
    Messages:
    3,625
    Doy you have an htdocs folder?
     
  7. Gesp

    Gesp Account Closed Thread Starter

    Joined:
    Nov 29, 2008
    Messages:
    270
    yes
     
  8. Gesp

    Gesp Account Closed Thread Starter

    Joined:
    Nov 29, 2008
    Messages:
    270
    yes I`ve got an htdocs folder
     
  9. Gesp

    Gesp Account Closed Thread Starter

    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?
     
  10. ehymel

    ehymel

    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.
     
  11. Gesp

    Gesp Account Closed Thread Starter

    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?
     
  12. ehymel

    ehymel

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

    Gesp Account Closed Thread Starter

    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?
     
  14. ehymel

    ehymel

    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...
     
  15. Gesp

    Gesp Account Closed Thread Starter

    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?
     
  16. Sponsor

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 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/912741

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice