500 Internal Server Error On WAMPS

Discussion in 'PHP' started by YIAM, Jan 3, 2007.

  1. #1
    I have just installed WAMP on my PC. But I can't open any php file(even blank). When ever I tries to open a file ( say localhos/myfiles/indes.php) it shows "500 Internal Server Error" No. problem with phpMyAdmin.
     
    YIAM, Jan 3, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    Is there an .htaccess file? That might be causing the error if it's not enabled correctly. Try removing it temoprary.
     
    nico_swd, Jan 3, 2007 IP
  3. YIAM

    YIAM Notable Member

    Messages:
    2,480
    Likes Received:
    240
    Best Answers:
    0
    Trophy Points:
    280
    #3
    Yes that works. How to enable htaccess files ?
     
    YIAM, Jan 3, 2007 IP
  4. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #4
    Without seeing the actual file, my guess is that the rewrite module isn't loaded.

    Uncomment this line in httpd.conf.

    
    LoadModule rewrite_module modules/mod_rewrite.so
    
    Code (markup):
    And restart apache.
     
    nico_swd, Jan 3, 2007 IP
    YIAM likes this.
  5. YIAM

    YIAM Notable Member

    Messages:
    2,480
    Likes Received:
    240
    Best Answers:
    0
    Trophy Points:
    280
    #5
    Thanks for your great help. Given you some greens.
     
    YIAM, Jan 3, 2007 IP