当前位置: 技术问答>linux和unix
我的Apache服务刚装就不能启动怎么回事:(
来源: 互联网 发布时间:2015-08-31
本文导语: 我的服务器上安装了Apache,但是不能正启动,不知道什么原因。提示错误如下 启动 httpd:(98)!!!!!!!!!!!!: make_sock: could not bind to address 0.0.0.0:443 no listening sockets available, shutting down [失败] | 你没有...
我的服务器上安装了Apache,但是不能正启动,不知道什么原因。提示错误如下
启动 httpd:(98)!!!!!!!!!!!!: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
[失败]
启动 httpd:(98)!!!!!!!!!!!!: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
[失败]
|
你没有配置服务器的地此和端号
|
cd /usr/local/apache2/conf
vi httpd.conf
尋找 LoadModule php4_module modules/libphp4.so
下一行加入:
AddType application/x-httpd-php .hs
尋找 CustomLog logs/access_log common
改為 #CustomLog logs/access_log common
cd /usr/src/php-4.2.3
cp php.ini-dist /usr/local/lib/php.ini
cd /usr/local/lib
chmod o+r php.ini
vi php.ini
尋找:disable_functions =
改為:disable_functions = phpinfo
尋找:mysql.default_host =
改為:mysql.default_host =localhost
尋找:mysql.default_user =
改為:mysql.default_user =root
尋找:mysql.default_password =
改為:mysql.default_password = ******
vi httpd.conf
尋找 LoadModule php4_module modules/libphp4.so
下一行加入:
AddType application/x-httpd-php .hs
尋找 CustomLog logs/access_log common
改為 #CustomLog logs/access_log common
cd /usr/src/php-4.2.3
cp php.ini-dist /usr/local/lib/php.ini
cd /usr/local/lib
chmod o+r php.ini
vi php.ini
尋找:disable_functions =
改為:disable_functions = phpinfo
尋找:mysql.default_host =
改為:mysql.default_host =localhost
尋找:mysql.default_user =
改為:mysql.default_user =root
尋找:mysql.default_password =
改為:mysql.default_password = ******
|
up
|
/etc/apache/下面找找看