• Home
  • Downloads
  • Contact Us
  • Report Broken Link
Wednesday, May 14, 2025
  • Login
lessons4you.info
  • Videos
  • Downloads
  • Help
    • Contact Us
    • Report Broken Link
No Result
View All Result
  • Videos
  • Downloads
  • Help
    • Contact Us
    • Report Broken Link
No Result
View All Result
Lessons4you.info
No Result
View All Result

Convert .dmg to .iso File

Change Root Directory of Httpd - CentOS

How to fix Apache – “httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName”

by
December 11, 2021
in Uncategorized
Reading Time: 2 mins read
A A
Share on FacebookShare on Twitter

RedHat/CentOS:

You might probably faced the same following error while you were restarting the Apache/httpd server on CentOS/RedHat.

1
2
3
4
5
 
Starting httpd: httpd: apr_sockaddr_info_get() failed for iLabSK.localhost
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
                                                           [  OK  ]
 

To fix that problem, you need to edit the httpd.conf file. Open the terminal and type,

1
2
3
 
# vi /etc/httpd/conf/httpd.conf
 

Note: You need to be a root or super user access to edit this file.

Add the following line to top of the httpd.conf file.

1
2
3
 
ServerName localhost
 

Save the file and exit from vi editor. Finally restart the httpd server.

1
2
3
 
# service httpd restart
 

Result:

1
2
3
4
 
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
 

Ubuntu/Debian:

You might probably faced the same following error while you were restarting the Apache/httpd server on CentOS, RedHat, ubuntu or debian.

1
2
3
4
5
 
$ sudo /etc/init.d/apache2 restart
* Restarting web server apache2                 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
 

To fix that problem, you need to edit the httpd.conf file. Open the terminal and type,

1
2
3
 
$ sudo vi /etc/apache2/httpd.conf
 

Note: You need to be a root or super user access to edit this file.

By default httpd.conf file will be blank. Now, simply add the following line to the file.

1
2
3
 
ServerName localhost
 

Save the file and exit from vi editor. Finally restart the apache server.

1
2
3
 
sudo /etc/init.d/apache2 restart
 

Tags: ApacheErrorsFixHTTPD
Previous Post

Convert .dmg to .iso File

Next Post

Change Root Directory of Httpd – CentOS

Related Posts

How To Install The TWRP Recovery on Xiaomi Redmi 1s
Uncategorized

How To Install The TWRP Recovery on Xiaomi Redmi 1s

May 14, 2022
MIUI Collection Of Gapps (2.3.x – 5.0.x)
Uncategorized

MIUI Collection Of Gapps (2.3.x – 5.0.x)

May 14, 2022
Download Android 5.1.x Lollipop PA Gapps
Uncategorized

Download Android 5.1.x Lollipop PA Gapps

May 15, 2022
Download gapps for Android 5.1 Lollipop Cyanogemod 12.1
Uncategorized

Download gapps for Android 5.1 Lollipop Cyanogemod 12.1

May 14, 2022
Reddit AMA with OxygenOS Team OnePlus
Uncategorized

Reddit AMA with OxygenOS Team OnePlus

May 14, 2022
How to Remove Adobe Updater from OS X Menu Bar?
Uncategorized

How to Remove Adobe Updater from OS X Menu Bar?

July 19, 2023
Next Post

Change Root Directory of Httpd - CentOS

  • Home
  • Downloads
  • Contact Us
  • Report Broken Link

© 2022 lessons4you.info

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • Videos
  • Downloads
  • Help
    • Contact Us
    • Report Broken Link

© 2022 lessons4you.info