装好LAMP环境后,还要做下整合Apache与PHP相关配置,在apache配置文件里找到:AddType application/x-gzip .gz .tgz在该行下面添加AddType application/x-httpd-php .php添加默认的php首页,找到:DirectoryIndex index.html将该行改为:DirectoryIndex index.html index.htm index.php