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