• Register
0 votes

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


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:


Hope it solves your issue.

9 7 4
38,600 points

Related questions

0 votes
2 answers 295 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
2 answers 29 views
Problem: When do you need to use a fully qualified URL in a hyperlink?
asked Jul 21, 2020 sstones 830 points
0 votes
1 answer 24 views
Could not find the server in sys servers I tried to get data from a database, and I got this error: “Could not find server 'server name' in sys.servers in SQL Server." How to resolve this?
asked Nov 3, 2020 miki 1.9k points
0 votes
1 answer 79 views
Problem : Facing following error related to class path error:could not determine the class-path for interface com.android.builder.model.androidproject.
asked Nov 12, 2019 peterlaw 6.9k points
0 votes
1 answer 11 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
0 votes
1 answer 36 views
Problem : I have recently upgraded my PHP on Apache. Before upgrading everything was good. But after I upgraded my server PHP I am regularly facing the below error with my latest PHP Version 5.6.2 on Apache 2.0. A PHP Error was encountered Severity: Notice Message ... returned by reference Filename: core/Common.php Line Number: 257 What could have caused the above error? How can I fix this error?
asked Feb 14, 2020 mphil 2.3k points
0 votes
1 answer 9 views
How I solve this error?
asked Dec 19, 2020 TeamScript 9.5k points
0 votes
1 answer 43 views
Problem : Unable to find solution for bellow error the type or namespace name `unityeditor' could not be found. are you missing an assembly reference?
asked Nov 7, 2019 peterlaw 6.9k points
0 votes
2 answers 114 views
Problem: I am new, I need help, can anyone help me? Which of the following is not true about a server? a. stores data and software that can be accessed by the client. b. may be a personal computer or a mainframe on the network. c. in client/server ... the business application. d. can only perform one function on a network. e. stores documents and graphics that can be accessed from any Web browser.
asked Feb 23, 2020 maddi86 5.4k points
0 votes
1 answer 115 views
Problem : I am using my home network to share my files between devices in my household with no problem, but very recently I had to re-install the Windows 10, after that, no devices were shown under the Network in File Explorer. I can surely ping my devices ... Home network System error 6118 has occurred. The list of servers for this workgroup is not currently available. What seems to be a problem?
asked Feb 3, 2020 jwilliam 3.9k points