How do you get php working on Mac OS X?

后端 未结 6 1671
余生分开走
余生分开走 2020-12-07 11:27

I have recently updated to Lion and enabled Web Sharing in the System Preferences but I am unable to get php working.

I added an info file to the web root directory

6条回答
  •  渐次进展
    2020-12-07 11:53

    After upgrading the MAC OSX to 10.14.5 My Apache config file was new and all my previous settings were replaced with default settings.

    I was not able to open any PHP files in my browser. I followed the above steps and it resolved the issue.

    Note - In OSX 10.14.5 there is Php7.1.23

    Steps I followed -

    1. Edit the httpd.conf file located under /etc/apache2/httpd.conf
    2. This below given live was commented. I uncommented it by removing the # sign and saved the httpd.conf file and restarted the apache service.

    LoadModule php7_module libexec/apache2/libphp7.so

    1. sudo apachectl restart

    Thank you for the solution, appreciated your help friends.

    Regards,

    Vicky Jadhav (India - pune)

提交回复
热议问题