Httpd Can't start

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Httpd Can't start

Post by slansing »

However, like I said twice, we need to make the changes that lmiltchev suggested.

We can re-create the log by hand:

Code: Select all

vi /var/log/httpd/error_log
When the editor opens type the following to save it:

Code: Select all

:wq
IMPORTANT***************** MAKE SURE:

That you make the changes suggested by lmiltchev to /etc/hosts:

Code: Select all

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
zik
Posts: 26
Joined: Wed Feb 13, 2013 4:01 am

Re: Httpd Can't start

Post by zik »

excuse me in the path : /var/log/ in didn't find folder httpd so I must also create a folder httpd after the log file is creted automaticly when I start the service but the small problem that now give me is:

Code: Select all

[root@server ~]# service httpd start
Démarrage de httpd : httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
                                                           [  OK  ]
I m under fedora .

Many Thanks
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Httpd Can't start

Post by yancy »

zik
Posts: 26
Joined: Wed Feb 13, 2013 4:01 am

Re: Httpd Can't start

Post by zik »

Thank you Yancy

but in the hots i didn't change it more than two years and it's working fine just when I delete logs I have this problem

Realy I m lost

Many Thanks
zik
Posts: 26
Joined: Wed Feb 13, 2013 4:01 am

Re: Httpd Can't start

Post by zik »

excuse me ,

can someone help me , realy I m lost

I success to modify the file httpd.confto add ServerName localhost and service httpd is running but the web page not working

Code: Select all


Not Found

The requested URL /nagios was not found on this server.
Apache/2.2.14 (Fedora) Server at 10.5.5.1 Port 80

Many Thanks

All The best
zik
Posts: 26
Joined: Wed Feb 13, 2013 4:01 am

Re: Httpd Can't start

Post by zik »

the problem is fixed

Many Thanks

All The Best
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Httpd Can't start

Post by slansing »

Excellent, thanks for letting us know.
Locked