配置httpd.conf
# ee /usr/local/etc/apache22/httpd.conf
添加index.php和php扩展名支持
<IfModule dir_module>
DirectoryIndex index.php index.html
</IfModule>
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
转载于:https://blog.51cto.com/rockjz/1657314