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 in Linux Administration by Upasana
• 8,530 points
141 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 by Shubham
• 13,300 points

Related Questions In Linux Administration

0 votes
1 answer

Name or service not known error

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

answered Apr 1 in Linux Administration by Rohit
83 views
0 votes
1 answer
+1 vote
1 answer

Not able to install npm on Ubuntu

Try installing npm using aptitude: sudo apt install aptitude sudo ...READ MORE

answered Nov 28, 2018 in Linux Administration by Omkar
• 67,660 points
1,889 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
91 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,260 points
84 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 in Linux Administration by Shubham
• 13,300 points
134 views
0 votes
1 answer

What is the meaning of 'errno'?

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

answered May 20 in Linux Administration by Shubham
• 13,300 points
36 views