By hypertextsol
I have just installed lamp stack on centos, according to the tutorials on DO. Now when I give the command "sudo service httpd restart " it gives the following message " Stopping httpd: [ OK ] Starting httpd: httpd: apr_sockaddr_info_get() failed for cent httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName "
BUT when i go to the ip address or the domainname.com it show that apache is installed and even the info.php file which i have created for testing purpose is also being showed in both the IP and domainname.com
Can someone please explain me this message. I am using linux for the first time.
Thanks for the help in advance.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
It’s just a warning that your hostname is probably not set up properly. You can safely ignore it as it doesn’t affect anything.
This is the content in /etc/hosts <br>127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 <br>::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 <br> <br>
You either need to configure DNS correctly, or put your hostname into /etc/hosts. It’s not a fatal error, but it does betray poor attention to configuration details. <br> <br>
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.