1.编辑虚拟主机文件

vim /usr/local/apache2/conf/extra/httpd-vhosts.conf

<Directory "/data/www">

        php_admin_flag engine off

        <filesmatch "(.*)php">

                   Order deny,allow

                   Deny from all

         </filesmatch>

</Directory>

------禁止解析php