Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When I click "Start Apache" in webmin I get the following error:
Code:
Failed to start apache :
Starting httpd: httpd: apr_sockaddr_info_get() failed for dhcppc3
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[FAILED]
Apache was working before, until I faced alot of problems and ended up creating a new user.
What can I do to resolve this problem?
Can you post the contents of /etc/apache2/apache2.conf or whatever the name of your file might be.
- Jim
The file I edited:/etc/httpd/conf/httpd.conf (I hope it is the correct file)
This file is too long and nearly 20000 characters will be lost if I posted the whole file
can you tell me a specific portion of the file to post to you?
thanks.
The file I edited:/etc/httpd/conf/httpd.conf (I hope it is the correct file)
This file is too long and nearly 20000 characters will be lost if I posted the whole file
can you tell me a specific portion of the file to post to you?
thanks.
FYI another good place to see is the apache error logs.
The file I edited:/etc/httpd/conf/httpd.conf (I hope it is the correct file)
This file is too long and nearly 20000 characters will be lost if I posted the whole file
can you tell me a specific portion of the file to post to you?
thanks.
Can you post
Code:
cat /etc/httpd/conf/httpd.conf | grep ServerName
I want to see if you have a directive 'ServerName' that specifies your server name.
[linux@dhcppc3 ~]$ cat /etc/httpd/conf/httpd.conf | grep ServerName
# ServerName gives the name and port that the server uses to identify itself.
#ServerName www.example.com:80
ServerName ahmad:80
# ServerName directive.
# ServerName dummy-host.example.com
[linux@dhcppc3 ~]$
[linux@dhcppc3 ~]$ cat /etc/httpd/conf/httpd.conf | grep ServerName
# ServerName gives the name and port that the server uses to identify itself.
#ServerName www.example.com:80
ServerName ahmad:80
# ServerName directive.
# ServerName dummy-host.example.com
[linux@dhcppc3 ~]$
Hey AGazzaz,
I just commented out the ServerName Directive in my apache2.conf file and after reloading, I got this message
Code:
root@empire:/etc/apache2# /etc/init.d/apache2 reload
* Reloading web server config... 5884
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
I suggest that you add this line to the start of your configuration file but replace myfqndomain.com with your fqn.
I just commented out the ServerName Directive in my apache2.conf file and after reloading, I got this message
Code:
root@empire:/etc/apache2# /etc/init.d/apache2 reload
* Reloading web server config... 5884
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
I suggest that you add this line to the start of your configuration file but replace myfqndomain.com with your fqn.
Code:
ServerName myfqndomain.com
but I do not have a fully qualified domain name as it is a local developing server I used to type http://localhost
Sorry for a very late feedback.
But I had an intention to switch eaither to SUSE or Mandriva 2008.1 but I did not like both so I am back to this problem.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.