*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
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.
First, apologies if this is in the wrong area. Also, reading previous posts didn't seem to answer my question, so here goes...
Attempting to run Apache 2.0.47 running on FreeBSD 4.9.
Using apachectl, which is located in my /usr/local/sbin directory, (httpd is also located there), I can get the version, do a configtest, blah blah, but as soon as I attempt to do a Apachectl start, I get
httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
I receive the above message when using the httpd command as well.
I am able to ping to the internet, having successfully tested Yahoo.com and I can even ping 127.0.0.1 , both of these from my Konsole. However, my Konqueror browser will not ping either of the above, which some instructions told me to try to see if Apache was running.
I also noticed that whenever I go to /stand/sysinstall and enter post-configuration mode and then set DHCP to on, it turns off as soon as I exit the install. Not sure if this is the problem.
What I've tried to do here is give the reader as much info as possible. Again, apologies if there is overkill, but I'm just not sure what's going on.
My question is, how do I actually get Apache to start running? Please respond as if to a noobie, which I am!
My total Apache installation/startup was quite simple.
As mentioned above, this is on FreeBSD 4.9.
I installed Apache 2.0.47 from the command line with just two commands:
cd /usr/ports/apache2
make install && clean
The first line goes and picks up Apache2 from the port.
The second line installs it into my system.
Once there, I went into Konsole (I'm using KDE for my desktop)
and ran
# /usr/local/sbin/apachectl start
Which at first, sent me back a message as mentioned above:
"httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName"
So, from Konqueror (Again, using KDE), I browsed to /etc/hosts and in this file, I replaced the example with the fully qualified domain name and IP address of the box running Apache. This had to be done as I was not running a nameserver.
My intent in this post was to make this as simple for someone else as it was made for me. Good luck!
you need to adjust /etc/hosts and /etc/sysconfig/network to something unique. if you dont youll probably run into errors because the systemname localhost exists all over your network.
my /etc/hosts
Code:
#do not remove the following line, or various progams
#that require network functionality will fail.
192.168.1.X linuxserver.localdomain localhost
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.