[root@S102722 ~]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 8 of /www/wdlinux/httpd-2.2.24/conf/vhost/xxxxx.com.conf:
Invalid command 'php_admin_value', perhaps misspelled or defined by a module not included in the server configuration
最近虚拟机上安装lanmp的时候出现
Invalid command 'php_admin_value', perhaps misspelled or defined by a module not included in the server configuration
QQ图片20130909175543.jpg 的错误提示,httpd无法启动,出现这种情况是因为没有完整安装lanmp环境,导致Apache/modules里没有libphp5.so,配置文件httpd.conf里也没有加载libphp5.so,
从wdapache里复制一个进去,在httpd.conf里加上
<IfModule prefork.c>
LoadModule php5_module modules/libphp5.so
</IfModule>
重启服务即可
补充:php_admin_value用来实现PHP脚本对目录访问的权限控制!