:: error
the error log:
:: how to fix
o myhostname.tld - your servers domain name
o myhostname - your servers host name
:: restarting httpd
:: checking the httpd port
:: links
+ googlelinux
+ rasyid
[ myhostname: ~ ]# apachectl restart
/usr/local/sbin/apachectl restart: httpd could not be started
the error log:
[alert] mod_unique_id: unable to hostbyname("myhostname")
:: how to fix
[ myhostname: ~ ]# vi /etc/hosts
add line like this :
192.168.0.100 myhostname.tld myhostname
o 192.168.0.100 - your servers ip addresso myhostname.tld - your servers domain name
o myhostname - your servers host name
:: restarting httpd
[ myhostname: ~ ]# apachectl start
:: checking the httpd port
[ myhostname: ~ ]# netstat -tlupn | grep 80
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 30391/httpd
:: links
+ googlelinux
+ rasyid
Comments
Post a Comment