127 0 0 1 Could not Determine the server s fully qualified domain name

0 votes

So, I tried to restart my Apache server on CentOS 5.0 and the following error got thrown at me;

httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

The following is the /etc/hosts file:

127.0.0.1    server4-245    server4-245.com    localhost.localdomain localhost
::1        localhost6.localdomain6 localhost6

The following is the /etc/sysconfig/network file:

NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=server4-245

What can I do?

Jun 12, 2019 in Linux Administration by Upasana
• 8,620 points
2,013 views

1 answer to this question.

0 votes

If you don't have httpd.conf in folder /etc/apache2, you should have apache2.conf - you can go ahead and add:

ServerName localhost

Then restart the apache2 service.

answered Jun 12, 2019 by Shubham
• 13,490 points

Related Questions In Linux Administration

0 votes
1 answer
+1 vote
0 answers

Could not start the machine edureka_host_vm because the following physical network interfaces were not found:

Could not start the machine edureka_host_vm because ...READ MORE

Jan 28, 2020 in Linux Administration by Harish
• 130 points
1,118 views
0 votes
2 answers

Name or service not known error

use ping google.com dont add www or https READ MORE

answered Nov 28, 2020 in Linux Administration by CISUR101
9,347 views
0 votes
1 answer
0 votes
1 answer

How do I set variable if a specific package version is installed in CFEngine?

Here is what you can do.Just use packagesmatching to ...READ MORE

answered Jul 12, 2018 in Other DevOps Questions by Atul
• 10,240 points
1,180 views
0 votes
1 answer
0 votes
1 answer

Using FIWARE to start Cygnus as a Service in IoT Solution

Cygnus is supposed to create /var/run/cygnus/ when started. You ...READ MORE

answered Aug 13, 2018 in IoT (Internet of Things) by anonymous2
• 4,240 points
939 views
0 votes
1 answer

Input file name in the mapper in a Hadoop program

Try this inside your mapper : FileSplit fileSplit ...READ MORE

answered Jul 23, 2019 in Linux Administration by Shubham
• 13,490 points
3,241 views
0 votes
1 answer

What is the meaning of 'errno'?

you can retrieve a complete list of ...READ MORE

answered May 20, 2019 in Linux Administration by Shubham
• 13,490 points
950 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP