LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 02-25-2004, 01:09 PM   #1
dmedici
Member
 
Registered: Aug 2003
Posts: 57

Rep: Reputation: 15
apache startup


Hi folks!

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!

Many thanks in advance!
 
Old 02-25-2004, 09:17 PM   #2
dmedici
Member
 
Registered: Aug 2003
Posts: 57

Original Poster
Rep: Reputation: 15
OK, I got it!

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!
 
Old 02-29-2004, 04:38 AM   #3
rehab junkie
Member
 
Registered: Nov 2003
Location: /var/local/pub/bar
Distribution: OSX 10.4.9
Posts: 259

Rep: Reputation: 30
Thank you, you just reminded me that I needed to update /etc/hosts.
 
Old 02-29-2004, 09:30 PM   #4
dmedici
Member
 
Registered: Aug 2003
Posts: 57

Original Poster
Rep: Reputation: 15
Glad you could use the tip!

NOTE - Not sure if some systems are different, but where I mentioned above

cd /usr/ports/apache2

some may want to change that to:

cd /usr/ports/www/apache2

Thanks!
 
Old 03-23-2004, 11:59 AM   #5
sporkit
Member
 
Registered: Feb 2004
Posts: 71

Rep: Reputation: 15
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
my /etc/sysconfig/network
Code:
NETWORKING=yes
HOSTNAME=linuxserver.localdomain

Last edited by sporkit; 03-23-2004 at 12:05 PM.
 
Old 03-23-2004, 12:18 PM   #6
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
edit httpd.conf
add this line
ServerName localhost
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apache/mysql startup robyne *BSD 1 07-11-2005 01:34 AM
Apache/1.3.31 (Unix) Startup, NEED help w0lv3rin3 Linux - Software 1 10-24-2004 11:11 AM
Automatic Startup of Apache m2azer Linux - General 6 09-20-2004 07:39 AM
Apache on startup mikeshn Linux - Software 7 09-22-2002 03:59 PM
Apache startup Question jester_69 Linux - General 7 05-21-2002 08:45 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 06:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration