LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   configuring apache2 (https://www.linuxquestions.org/questions/debian-26/configuring-apache2-280428/)

bob_man_uk 01-21-2005 03:17 AM

configuring apache2
 
hi all,

last night i upgraded my installation with apt-get and along with it I wanted it to install apache2, no i cant remember how I configured the first one but everytime I start the service it comes up saying

Code:

apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
httpd (pid 4226) already running

now i know what is causing the error but cant remember where the file is to change,

any help is appreciated,

mattyG

wimdh 01-21-2005 09:18 AM

Hey,

Is your /etc/hosts correct?

bob_man_uk 01-24-2005 04:16 AM

yeah it is,

Code:

127.0.0.1      debian  localhost
i remember there was a file that allowed you to change the domain name and allowed apache to function but i cant find it anywhere, if anyone knows please tell me,

thanks

mattyG

wimdh 01-24-2005 04:43 AM

Do you mean servername in httpd.conf?
Code:

#
# ServerName allows you to set a host name which is sent back to clients for
# your server if it's different than the one the program would get (i.e., use
# "www" instead of the host's real name).
#
# Note: You cannot just invent host names and hope they work. The name you
# define here must be a valid DNS name for your host. If you don't understand
# this, ask your network administrator.
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address (e.g., http://123.45.67.89/)
# anyway, and this will make redirections work in a sensible way.
#
# 127.0.0.1 is the TCP/IP local loop-back address, often named localhost. Your
# machine always knows itself by this address. If you use Apache strictly for
# local testing and development, you may use 127.0.0.1 as the server name.
#
#ServerName www.example.com

Or did you configure virtual hosts?

DeathlessOne 01-27-2005 10:17 AM

Did you configure your permissions correctly to allow/deny hosts trying to connect?


All times are GMT -5. The time now is 09:49 PM.