PHP:Internal Server Error using WAMP (at startup)

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

提交回复
热议问题