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,590 points
408 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,380 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 in Linux Administration by Harish
• 130 points
110 views
0 votes
1 answer

Name or service not known error

Seems like there is no nameserver set. Run ...READ MORE

answered Apr 1, 2019 in Linux Administration by Rohit
2,460 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
156 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,280 points
152 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,380 points
609 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,380 points
72 views