Yosemite Apache, PHP info page not shown

后端 未结 1 913
孤独总比滥情好
孤独总比滥情好 2020-12-20 23:30

Not sure if this question applies to SO so don\'t yell at me if it doesn\'t...

I\'ve gotten rid of XAMPP and trying to do everything in os x. I followed many guides

相关标签:
1条回答
  • 2020-12-21 00:07

    You must have the following configuration in /etc/apache2/httpd.conf in order to have PHP working:

    LoadModule php5_module libexec/apache2/libphp5.so
    AddType application/x-httpd-php .php
    

    After that run sudo apachectl restart and PHP should start working. Note that the file /usr/libexec/apache2/libphp5.so must be present as well.

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