• Register
0 votes
40 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

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 206 views
206 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 13 views
13 views
Problem: When do you need to use a fully qualified URL in a hyperlink?
asked Jul 21 sstones 830 points
0 votes
1 answer 56 views
56 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 8 views
8 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 Daniel Anderson 4k points
0 votes
1 answer 23 views
23 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 mphil 2.3k points