PHP: No php.ini file

前端 未结 4 881
醉话见心
醉话见心 2021-02-08 08:43

I just started to learn PHP and in order to do that I installed wampserver on my windows 8.1. When I try to launch, it works properly but I have two problems:

1) I have

4条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-08 09:26

    I just solve this problem.

    1. to be sure to start Wampserver "As an administrator," :

      right-click the shortcuts, Properties, tab Shortcut:

      • Select "Run as administrator"
      • OK
      • Apply
    2. Leave Wampmanager and ursing win+x+a or others ways to open a cmd administrator command window.( attention:it should run the cmd as an administrator)

    3. In this window, access to your apache installed path for exemple, my path: D:\wamp64\bin\apache\apache2.4.17\bin

    4. then type

      D:\wamp64\bin\apache\apache2.4.17\bin> mklink php.ini d:\wamp\bin\php\php5.6.15\phpForApache.ini

      and you will see a message likes"php.ini << === >> d:\wamp\bin\php\php5.6.15\phpForApache.ini symlink created"

    5. close the cmd and restart Wampmanager as an administrator

    I hope that my solution also works for you.

提交回复
热议问题