What changes did you make to /etc/httpd/conf/httpd.conf ?
The only change is made was server name directive. Initially, i put the server name, later I changed it to ip. either case gives the same error
#ServerName nisserv.server.com:80
ServerName 192.168.1.4:80
What is the output of "rpm -q httpd" ?
bash-4.1# rpm -qa httpd
httpd-2.2.15-39.el6.centos.x86_64
problem in starting interface and httpd services
-
- Posts: 46
- Joined: 2015/02/27 14:30:54
-
- Posts: 6
- Joined: 2015/04/28 15:02:38
- Location: Cyprus
- Contact:
Re: problem in starting interface and httpd services
Hello.
Your ifup eth0 command returns errors because eth0 is already Up when you are running that command. If the interface is Up when you don't expect it to be, it might be the NetworkManager service that is bringing it Up, in which case you might need to disable it in favour of the network service, as suggested earlier. In fact, many people argue that disabling NetworkManager and enabling network should be a standard practice for CentOS6, unless running it on a laptop with a wireless interface. Personally I usually do:
Furthermore, in my ifcfg-ethX files, I specify:
With regards to Apache, it seems that somewhere in your configuration files there is a reference of 192.168.1.0. Can you show us the output of the following command?
Hope it helps!
Your ifup eth0 command returns errors because eth0 is already Up when you are running that command. If the interface is Up when you don't expect it to be, it might be the NetworkManager service that is bringing it Up, in which case you might need to disable it in favour of the network service, as suggested earlier. In fact, many people argue that disabling NetworkManager and enabling network should be a standard practice for CentOS6, unless running it on a laptop with a wireless interface. Personally I usually do:
Code: Select all
chkconfig NetworkManager off
chkconfig network on
service NetworkManager stop
service network restart
Code: Select all
NM_CONTROLLER=no
Code: Select all
grep -r 192.168 /etc/httpd/conf*