• Register
0 votes
61 views

Problem :

I have just installed the Apache 2.2.17, and I am using it first time.

Now when I try to start my server using a command service httpd start it gives me the below message:

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

Now I guess I have to set ServerName and a IP address as I search through Google. But I don't know in which file I have to set it.

How can I fix above problem?

7 5 2
3,870 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

I had also faced the similar issue in the recent past. I did lot of research on it and found the solution on it. This is the very common problem with the people getting started.

Please follow the procedure:

1.    sudo vim /etc/apache2/httpd.conf

2.    Insert a following line at the httpd.conf: ServerName localhost

3.    Finally just restart your Apache: sudo /etc/init.d/apache2 restart

OR

I was also NOT getting my Server Name. Inside your VirtualHost configuration that was causing this warning message, it is a generic one near a top of your httpd.conf which is by default commented out.

Change below code to

#ServerName www.example.com:80

To following one:

#ServerName 127.0.0.1:80

Hope it solves your issue.

9 7 4
38,600 points

Related questions

0 votes
2 answers 516 views
516 views
Problem : I am trying to restart my apache from terminal using the following command: sudo service apache2 restart But when executing above command I am facing below error: Job for apache2.service failed. See "systemctl status apache2.service" and "journalctl -xe" for ... AH00489: Apache/2.4.12 (Unix) configured -- resuming normal operations AH00094: Command line: '/usr/local/apache2/bin/httpd'
asked Dec 18, 2019 alecxe 7.5k points
0 votes
1 answer 7 views
7 views
Problem: I tried to find out the solution on the web when I face this problem but I did not get any fruitful information that I can continue if you read the above question and understand what is the solution of this please cooperate with me- Thanks
asked Mar 24 rubelkhan 20.4k points
0 votes
1 answer 4 views
4 views
Problem: Error is occurring: Not Found The requested URL /phpmyadmin was not found on this server. Apache/2.2.22 (Ubuntu) Server at myclassbook.in Port 80 Where am I going wrong?
asked Mar 20 ummesalma 25.2k points
0 votes
1 answer 5 views
5 views
Problem: Error cannot retrieve repository metadata repomd xml. How to resolve this error.
asked Mar 14 Ethan ross 2.7k points
0 votes
1 answer 4 views
4 views
Problem: Can anyone tell me the solution of this problem?
asked Mar 12 Ifra 24.4k points
1 vote
1 answer 4 views
4 views
Problem: I am unable to find out the solution, Please solve it : which is a risk of using fully qualified class names when importing?
asked 6 days ago MUHAMMAD MUNEEB 83k points
0 votes
1 answer 6 views
6 views
Problem: namevirtualhost *:80 has no virtualhosts. make me clear what is this all about.
asked Mar 14 Ethan ross 2.7k points
0 votes
1 answer 13 views
13 views
Problem: invalid mutex directory in argument file:${apache_lock_dir}
asked Feb 17 charles mathews 5.5k points
0 votes
1 answer 14 views
14 views
when do you need to use a fully qualified url in a hyperlink?
asked Feb 16 ArifulIslam 7.5k points
0 votes
1 answer 17 views
17 views
This issue appears in the server after i upgrading PHP and also i am obtaining the following error with PHP Version 5.6.2 on Apache 2.0. Why this is happening in my case and how to solve it.
asked Sep 14, 2020 Daniel Anderson 4k points