apache安裝前常見錯誤:

apache常見錯誤總結:
1、./configure報錯
Configuring Apache Portable Runtime library ...

checking for APR... configure: error: the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file.
解決辦法:
下載安裝
apr:http://apache.etoak.com//apr/apr-1.4.6.tar.gz
apr-utils:http://apache.etoak.com//apr/apr-util-1.4.1.tar.gz
或者yum -y install apr apr-util

checking for pcre-config... false
configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/
解決辦法:
[[email protected] httpd-2.4.1]# yum -y install pcre-devel
2、啓動報錯:
[[email protected] bin]# service apache start
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message
httpd (pid 912) already running
其實在這裏並不是報錯,只是個提醒信息,解決辦法比較多
(1)、在/etc/hosts寫下當前ip與主機名的對應關係
(2)、在本機指能解析本機主機名的DNS
(3)、修改主配置文件,找到ServerName這一行寫入本機主機名

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章