apache添加php支持

在php编译安装好后,需要在apache中添加对php的支持,方法:
找到“#AddType application/x-gzip .gz .tgz”
并在后面加入
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
这两行的目的是让apache识别php。

再找到“DirectoryIndex index.html”
加上 index.php 让它把index.php做为默认页

原文地址:https://www.cnblogs.com/fjping0606/p/4429284.html