How to run a script in WAMP? Please advice

Discussion in 'PHP' started by sitemasters, Jan 18, 2009.

  1. #1
    I need someone to help me with WAMP.

    The root directory is wamp/www/ which is default and I tried to load a script which I downloaded from the net. I tried copying the entire contents of the script to wamp/www/ folder and then accessing http://localhost/myscript/install/index.php . I just get the following error message:

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    I have configured WAMP properly. I'm able to see the test page when I goto http://localhost.

    What is the problem? Am I doing something wrong?

    Please help.


    Thanks in advance.
     
    sitemasters, Jan 18, 2009 IP
  2. artiskool

    artiskool Peon

    Messages:
    34
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Check the file/folder permission
     
    artiskool, Jan 18, 2009 IP
  3. jemekite

    jemekite Well-Known Member

    Messages:
    273
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    138
    #3
    I think it htaccess problem. you can try to see apache log, maybe it could solve your problem
     
    jemekite, Jan 18, 2009 IP
  4. sitemasters

    sitemasters Peon

    Messages:
    66
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    File/folder permissions are set correctly. All files and folders have read/write permissions. Still i'm getting the same error. :(
     
    sitemasters, Jan 18, 2009 IP
  5. sitemasters

    sitemasters Peon

    Messages:
    66
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Just found this out. My apache error log shows the following error.

    [Sun Jan 18 17:09:55 2009] [alert] [client 127.0.0.1] D:/wamp/www/myscript/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration

    Any suggestions??
     
    sitemasters, Jan 18, 2009 IP
  6. TwistMyArm

    TwistMyArm Peon

    Messages:
    931
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Looking at my installation of WAMP it seems as though mod_rewrite is not enabled by default.

    Click on your WAMPServer icon in the toolbar tray, click 'Apache' then 'Apache Modules'. Scroll down the list and see if 'rewrite_module' is ticked or not. If it's not, click it, let WAMP restart Apache and see if that helps.
     
    TwistMyArm, Jan 18, 2009 IP
  7. sitemasters

    sitemasters Peon

    Messages:
    66
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Thanks a million.

    That solved my issue. You are great.. :)
     
    sitemasters, Jan 18, 2009 IP
  8. jemekite

    jemekite Well-Known Member

    Messages:
    273
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    138
    #8
    glad to see your problem solved ;)
     
    jemekite, Jan 26, 2009 IP
  9. sitemasters

    sitemasters Peon

    Messages:
    66
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    That is cool thanks for your help
     
    sitemasters, May 6, 2009 IP