Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Regular Coder saeed's Avatar
    Join Date
    Oct 2002
    Location
    West Yorkshire
    Posts
    343
    Thanks
    32
    Thanked 0 Times in 0 Posts

    Server Error - Error 500

    I've running a PHP link indexing script on my home computer.

    Windows XP Pro SP 2
    XAMPP

    Error Message:

    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
    02/27/08 13:04:31
    Apache/2.2.6 (Win32) DAV/2 mod_ssl/2.2.6 OpenSSL/0.9.8e mod_autoindex_color PHP/5.2.4


    I believe its something to do with .htaccess file (source google)
    any idea about this error and how to solve this ?

    thanks,
    Don't click on this!

    #!/usr/bin/saeed

  • #2
    Senior Coder kbluhm's Avatar
    Join Date
    Apr 2007
    Location
    Philadelphia, PA, USA
    Posts
    1,509
    Thanks
    3
    Thanked 258 Times in 254 Posts
    Right out of the gate, .htaccess files are useless on Windows machines.

  • #3
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by saeed View Post
    I believe its something to do with .htaccess file (source google)
    any idea about this error and how to solve this ?

    thanks,
    I don't know if this is available on windows, you must find yourself
    there is a a script named 'apachectl', you can run it using:

    apachectl configtest

    this can give some usefull info, if is .htaccess faoult will complain but looking to kbluhm replay this seems useless.

    another way:

    you must have somewhere some logs file, access and error, look inside to see what happend.

    good luck and best regards

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Mod_rewrite needs to be enabled on xampp for htaccess to work. Its an apache server by the way so htaccess does work.

    Find the file called httpd.conf, it should be located in
    XAMPPInstallDirectory\apache\conf\

    Open with notepad and find this line
    Code:
    #LoadModule rewrite_module modules/mod_rewrite.so
    Remove the #, save it, restart apache (if running).
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #5
    Senior Coder kbluhm's Avatar
    Join Date
    Apr 2007
    Location
    Philadelphia, PA, USA
    Posts
    1,509
    Thanks
    3
    Thanked 258 Times in 254 Posts
    Ah, sorry about that. I saw Windows and IIS popped into my head without even thinking.

  • #6
    Regular Coder saeed's Avatar
    Join Date
    Oct 2002
    Location
    West Yorkshire
    Posts
    343
    Thanks
    32
    Thanked 0 Times in 0 Posts
    thanks for your reply guys .. honestly I dont know why it was not working but after spending an hour on google. all i did just rename the file .htaccess to htaccess.txt

    thats it!

    and its working fine now
    Don't click on this!

    #!/usr/bin/saeed

  • #7
    Senior Coder
    Join Date
    Jan 2007
    Posts
    1,648
    Thanks
    1
    Thanked 58 Times in 54 Posts
    Quote Originally Posted by saeed View Post
    thanks for your reply guys .. honestly I dont know why it was not working but after spending an hour on google. all i did just rename the file .htaccess to htaccess.txt

    thats it!

    and its working fine now
    That would disable the .htaccess file... I'm not sure if that means it is working (I suppose you no longer get an error).


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •