系統偏好設定>共享>個人網頁共享 啟用結果失敗
$ cat /etc/hostconfig
WEBSERVER=-YES-也還正常的,
$ sudo apachectl restart
Password:
/usr/sbin/apachectl restart: httpd not running, trying to start
Syntax error on line 243 of /etc/httpd/httpd.conf:
Cannot load /usr/libexec/httpd/lidphp4.so into server: (reason unknown)
/usr/sbin/apachectl restart: httpd could not be started
追查的結果是安裝php5時打錯字,用vi修卻無法儲存,請問該如何搶救?
$ vi /etc/httpd/httpd.conf
LoadModule php5_module libexec/httpd/lidphp4.so
LoadModule php5_module libexec/httpd/libphp5.so
去掉錯的一行:w!
出現
"/private/etc/httpd/httpd.conf" E212: Can't open file for writing
Hit ENTER or type command to continue
請各方高手指教,謝謝!!javascript:emoticon(':?:')javascript:emoticon(':(')
|