[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的時候出現(xiàn)
Invalid command 'php_admin_value', perhaps misspelled or defined by a module not included in the server configuration
QQ圖片20130909175543.jpg 的錯誤提示,httpd無法啟動,出現(xiàn)這種情況是因為沒有完整安裝lanmp環(huán)境,導致Apache/modules里沒有l(wèi)ibphp5.so,配置文件httpd.conf里也沒有加載libphp5.so,
從wdapache里復制一個進去,在httpd.conf里加上
<IfModule prefork.c>
LoadModule php5_module modules/libphp5.so
</IfModule>
重啟服務即可
補充:php_admin_value用來實現(xiàn)PHP腳本對目錄訪問的權限控制!