歡迎您光臨本站 註冊首頁

出錯了

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

出錯了

httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
執行問令/usr/local/apache2/bin/apachectl start
《解決方案》

修改httpd.conf這個文件
找到ServerName
寫上你的伺服器的IP地址和埠號
ServerName  12.34.56.78:80

不過根據啟動的錯誤提示,你的APACHE事實上已經啟動了
《解決方案》

對,但php模塊沒加上
已添加了這句話了
AddType application/x-httpd-php .php .phtml
《解決方案》

錯誤日誌





Init: Session Cache is not configured
pid file /usr/local/apache2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apach
e run?
Apache/2.2.2 (Unix) mod_ssl/2.2.2 OpenSSL/0.9.7a configured -- resuming normal operations
caught SIGTERM, shutting down
Init: Session Cache is not configured
Apache/2.2.2 (Unix) mod_ssl/2.2.2 OpenSSL/0.9.7a configured -- resuming normal operations
SIGHUP received.  Attempting to restart
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
Apache/2.2.2 (Unix) mod_ssl/2.2.2 OpenSSL/0.9.7a configured -- resuming normal operations
caught SIGTERM, shutting down
Init: Session Cache is not configured
Apache/2.2.2 (Unix) mod_ssl/2.2.2 OpenSSL/0.9.7a configured -- resuming normal operations
caught SIGTERM, shutting down
Init: Session Cache is not configured
Apache/2.2.2 (Unix) mod_ssl/2.2.2 OpenSSL/0.9.7a configured -- resuming normal operations
SIGHUP received.  Attempting to restart
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
Apache/2.2.2 (Unix) mod_ssl/2.2.2 OpenSSL/0.9.7a configured -- resuming normal operations
SIGHUP received.  Attempting to restart
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
Apache/2.2.2 (Unix) mod_ssl/2.2.2 OpenSSL/0.9.7a configured -- resuming normal operations
SIGHUP received.  Attempting to restart
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
Apache/2.2.2 (Unix) mod_ssl/2.2.2 OpenSSL/0.9.7a configured -- resuming normal operations
caught SIGTERM, shutting down
《解決方案》

原帖由 pclinuxhelp 於 2006-5-20 18:38 發表
對,但php模塊沒加上
已添加了這句話了
AddType application/x-httpd-php .php .phtml

還沒有明白我在2樓說的話嗎?
《解決方案》

我的意思說是,已經在httpd.conf 里添加了AddType application/x-httpd-php .php .phtml
但沒還是不支持PHP,以前運行沒出錯時是支持的
《解決方案》

問題解決了,
修改httpd.conf這個文件
ServerName  127.0.01:80
php 呢不知是撒問題,重新裝了一次就沒有問題了
《解決方案》

不明白:D
《解決方案》

《解決方案》

FreeBSD6.0 如果安裝php5-extensions中選擇了record模塊,也會導致Session Cache is not configured 錯誤
最近一次安裝時就碰到這問題,後來在/usr/local/etc/php/extensions.ini中將extension=record.so禁用就解決了

[火星人 ] 出錯了已經有591次圍觀

http://coctec.com/docs/service/show-post-26908.html