PHP:Internal Server Error using WAMP (at startup)

后端 未结 9 1051
一向
一向 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:39

    Definitely do what hunzaboy suggests first. Then if you're still getting the error, I found that one of my directives in my httpd-vhosts.conf file was causing the same error to persist even after taking his advice. I commented the line: "Require all granted" (which worked using a newer version of Apache) and everything was fine.

    0 讨论(0)
  • 2021-02-01 07:42

    this must be commented in: LoadModule rewrite_module modules/mod_rewrite.so

    0 讨论(0)
  • 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!
    0 讨论(0)
  • 2021-02-01 07:47

    This is because mod_rewrite module is disabled in your Apache's configuration:

    1. If your website is hosted at local machine you can simply open httpd.conf in Apaches's conf folder and search for "mod_rewrite". If mod_rewrite line is having a # in front of it, just remove this #, save file, and restart Apache.

    2. If your website is hosted at shared hosting server then you may not have privileges to make changes in Apache's configuration. So you have to ask your hosting administrator to enable mod_rewrite module for you. This is already enabled by almost every shared hosting provider.

    0 讨论(0)
  • 2021-02-01 07:47

    Check the Wampserver log files, this issue is related to something in your Apache configuration.

    0 讨论(0)
  • 2021-02-01 07:48

    This is mod_rewrite problem, just enable mod_rewrite in your apache server or tell your website hosting company to enable it for you. This will make your site work.

    0 讨论(0)
提交回复
热议问题