Apache禁止php解析
# vim /usr/local/apache2/conf/extra/httpd-vhosts.confphp_admin_flag engine off
Order deny,allow
Deny from all
Allow from 127.0.0.1
https://app.yinxiang.com/shard/s53/res/e935360d-b51e-4435-bff1-bf54be4df0fd.jpg?search=%E7%A6%81%E6%AD%A2PHP
测试重启
# /usr/local/apache2/bin/apachectl -t
Syntax OK
# /usr/local/apache2/bin/apachectl restart
页:
[1]