PHP:Internal Server Error using WAMP (at startup)

后端 未结 9 1098
一向
一向 2021-02-01 07:29

i had a problem wth php.It display error like below. It work well in other computer, but when i tried to run it in another computer it display error like below. I think i had a

9条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-01 07:43

    Although everyone says the same, I want to add the answer based on some information I collected from this site.

    This kind of error is happened if apache mod_rewrite feature of your server is not enabled. By default WAMP server does not load this Apache Mod Rewrite module. It is disabled by default. You have to enable a this option to load this module. There is line in WAMP Apache configuration file about this but that is commented by default. To enable this mod_rewrite feature follow this instruction.

    • Look at Wamp icon in notification area on system tray (near Clock in Windows OS)
    • Click on the WAMP icon
    • Go to Apache>httpd.config
    • A Configuration file will be opened in “Note Pad” or your default text editor.
    • Search the text “mod_rewrite” , you will find a line “#LoadModule rewrite_module modules/mod_rewrite.so“
    • Uncomment this line by removing the Hash “#” from the beginning of the line.
    • Save the file Restart WAMP Server by clicking “Restart All Services” from WAMP menu. YOU ARE DONE!

提交回复
热议问题