apache啟動後看不到網頁,該怎麼做? - BBS
By Lily
at 2005-03-04T16:52
at 2005-03-04T16:52
Table of Contents
※ 引述《[email protected] (淡)》之銘言:
: ※ 引述《[email protected] (jiing)》之銘言:
: > 我以ports安裝了phpBB於FreeBSD 5.3上
: > 它一併安裝了Apache, mySQL等....
: Apache 的設定檔要改才行啊..
: Apache 1.3.xx
: /usr/local/etc/apache/httpd.conf
: Apache 2.x
: /usr/local/etc/apache2/httpd.conf
: /usr/local/etc/apache2/ssl.conf
: 改好後先 apachectl configtest 以確定寫法正確,再 apachectl graceful
: 另外 MySQL 記得把裡頭 mysql database 的 root 帳號跟權限改一改,不然很危險
[恕刪]
謝謝您詳盡的回答
之前我用
/usr/local/etc/rc.d/apache.sh start
後來看網路上的資料,才知道這是Apache 1.2.x的用法
我的版本是1.3.33於是改用
/usr/local/sbin/apachectl start
得到了錯誤訊息
[Fri Mar 4 15:57:15 2005] [alert] httpd: Could not determine the
server's fully qualified domain name, using 127.0.0.1 for ServerName
/usr/local/sbin/apachectl start: httpd could not be started
於是我修改了/usr/local/etc/apache/httpd.conf中的ServerName,
改成ServerName http://127.0.0.1/(也改過用http://真實ip和只有127.0.0.1),
然後再啟動Apache
/usr/local/sbin/apachectl start
結果都是:
/usr/local/sbin/apachectl start: httpd could not be started
我也把 /etc/rc.conf中加上了 apache_enable="YES"
不過仍是無法開啟,
請問我現在該怎麼做來開啟Apache呢?
謝謝!
--
: ※ 引述《[email protected] (jiing)》之銘言:
: > 我以ports安裝了phpBB於FreeBSD 5.3上
: > 它一併安裝了Apache, mySQL等....
: Apache 的設定檔要改才行啊..
: Apache 1.3.xx
: /usr/local/etc/apache/httpd.conf
: Apache 2.x
: /usr/local/etc/apache2/httpd.conf
: /usr/local/etc/apache2/ssl.conf
: 改好後先 apachectl configtest 以確定寫法正確,再 apachectl graceful
: 另外 MySQL 記得把裡頭 mysql database 的 root 帳號跟權限改一改,不然很危險
[恕刪]
謝謝您詳盡的回答
之前我用
/usr/local/etc/rc.d/apache.sh start
後來看網路上的資料,才知道這是Apache 1.2.x的用法
我的版本是1.3.33於是改用
/usr/local/sbin/apachectl start
得到了錯誤訊息
[Fri Mar 4 15:57:15 2005] [alert] httpd: Could not determine the
server's fully qualified domain name, using 127.0.0.1 for ServerName
/usr/local/sbin/apachectl start: httpd could not be started
於是我修改了/usr/local/etc/apache/httpd.conf中的ServerName,
改成ServerName http://127.0.0.1/(也改過用http://真實ip和只有127.0.0.1),
然後再啟動Apache
/usr/local/sbin/apachectl start
結果都是:
/usr/local/sbin/apachectl start: httpd could not be started
我也把 /etc/rc.conf中加上了 apache_enable="YES"
不過仍是無法開啟,
請問我現在該怎麼做來開啟Apache呢?
謝謝!
--
Tags:
BBS
All Comments
Related Posts
有關freebsd5.3系統的檔案???
By Jessica
at 2005-03-04T01:13
at 2005-03-04T01:13
有關openwebmail寄信的問題???
By Jake
at 2005-03-03T23:46
at 2005-03-03T23:46
有關openwebmail寄信的問題???
By Yuri
at 2005-03-03T23:40
at 2005-03-03T23:40
DNS的觀念問題 :)
By Tracy
at 2005-03-03T23:22
at 2005-03-03T23:22
有關freebsd5.3系統的檔案???
By Kumar
at 2005-03-03T21:21
at 2005-03-03T21:21