BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Try It Free
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Closed Thread
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old April 30th, 2004, 03:24 PM
yanno's Avatar
yanno yanno is offline
Reinvent the Circle
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Location: Jonesville, MI
Posts: 218 yanno User rank is Sergeant (500 - 2000 Reputation Level)yanno User rank is Sergeant (500 - 2000 Reputation Level)yanno User rank is Sergeant (500 - 2000 Reputation Level)yanno User rank is Sergeant (500 - 2000 Reputation Level)yanno User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 23 h 34 m 50 sec
Reputation Power: 10
Send a message via AIM to yanno Send a message via MSN to yanno Send a message via Yahoo to yanno
Exclamation Installing Apache on NetBSD

Primer-> I just started at NetBSD, and really not very good at *nix's anyway, though I'm quite computer-smart.

I have set up NetBSD 1.6.1 fine.
Did pkg_add <etc...>/apache-2.0.44.tgz, ran fine.
Now I don't know what to do.
I've searched all over (perhaps missed a bit) for a setup file or startapache file or something, and I can't find anything.

Would anyone know where it is or what I need to do next to get my NetBSD apache server going?

This is my first time in these forums so I'll see what their worth.

~Yanno

Reply With Quote
  #2  
Old May 1st, 2004, 01:26 PM
John5788's Avatar
John5788 John5788 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: 127.0.0.1
Posts: 442 John5788 User rank is Corporal (100 - 500 Reputation Level)John5788 User rank is Corporal (100 - 500 Reputation Level)John5788 User rank is Corporal (100 - 500 Reputation Level)John5788 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 h 10 m 16 sec
Reputation Power: 7
Send a message via ICQ to John5788 Send a message via AIM to John5788 Send a message via Yahoo to John5788
well first u need to edit the httpd.conf. dont where thats located in NetBSD but in FreeBSD its in /usr/local/etc/apache/httpd.conf so you could check there. after ur done setting that up, start the service, apachectl start
__________________
John5788
EMail: john5788@x5788.net
URL: http://www.x5788.net
AIM: John57881, John57883
ICQ: 74077537
MSN: John@5788.zzn.com
YIM: John5788

Reply With Quote
  #3  
Old May 1st, 2004, 02:16 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is online now
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,442 Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 h 18 m 43 sec
Reputation Power: 797
Do a whereis apachectl and it'll tell you where apachectl is located (should be /usr/pkg/bin or something like that).
__________________
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne

Puzzle of the Month solved by sizeablegrin, etienne141 and L7Sqr, superior C/C++ programmers of the month

Reply With Quote
  #4  
Old May 2nd, 2004, 06:05 PM
NetBSD NetBSD is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Location: Canada
Posts: 229 NetBSD Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 7 h 53 m 57 sec
Reputation Power: 0
Send a message via MSN to NetBSD
Like Scorpions said, it will be located in /usr/pkg/bin and that should be in your $PATH so a simple apachectl start at your prompt should get it running. It's config is probably somewhere in /usr/pkg/etc.

Reply With Quote
  #5  
Old May 3rd, 2004, 09:05 AM
yanno's Avatar
yanno yanno is offline
Reinvent the Circle
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Location: Jonesville, MI
Posts: 218 yanno User rank is Sergeant (500 - 2000 Reputation Level)yanno User rank is Sergeant (500 - 2000 Reputation Level)yanno User rank is Sergeant (500 - 2000 Reputation Level)yanno User rank is Sergeant (500 - 2000 Reputation Level)yanno User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 23 h 34 m 50 sec
Reputation Power: 10
Send a message via AIM to yanno Send a message via MSN to yanno Send a message via Yahoo to yanno
You mean /usr/pkg/bin should be set in my path already/automatically? or do I need to "set PATH $PATH;/usr/pkg/bin"?

Reply With Quote
  #6  
Old May 3rd, 2004, 12:14 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is online now
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,442 Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 h 18 m 43 sec
Reputation Power: 797
/usr/pkg/bin should be in your path. If not, set it like this:

for csh, tcsh etc:
setenv PATH ${PATH}:/usr/pkg/bin

for bash, ksh, sh etc:
export PATH=${PATH}:/usr/pkg/bin

Reply With Quote
  #7  
Old May 13th, 2004, 09:57 AM
yanno's Avatar
yanno yanno is offline
Reinvent the Circle
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Location: Jonesville, MI
Posts: 218 yanno User rank is Sergeant (500 - 2000 Reputation Level)yanno User rank is Sergeant (500 - 2000 Reputation Level)yanno User rank is Sergeant (500 - 2000 Reputation Level)yanno User rank is Sergeant (500 - 2000 Reputation Level)yanno User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 23 h 34 m 50 sec
Reputation Power: 10
Send a message via AIM to yanno Send a message via MSN to yanno Send a message via Yahoo to yanno
Okay, so when I do apachectl start, it does something but how can I tell that it is running? Should I switch over to the apache forum yet?
__________________
-Yanno

"If it will have to be done more than once, don't do it. Make something that does it for you."

"If you want to get out of the box, you must not think outside the box, you must think about the box. In fact, think about destroying the box."

Reply With Quote
  #8  
Old May 13th, 2004, 05:45 PM
mttatkns mttatkns is offline
Got source?
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Mar 2003
Location: Laguna Niguel, California, USA
Posts: 2,332 mttatkns User rank is Private First Class (20 - 50 Reputation Level)mttatkns User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Try accessing it; look to see if an httpd process is running

Reply With Quote
  #9  
Old May 14th, 2004, 03:48 AM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is online now
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,442 Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 h 18 m 43 sec
Reputation Power: 797
ps -xa | grep httpd

If you see multiple lines with httpd in them, then it is running. If you only see the "grep httpd" line, then it isn't running.

Reply With Quote
  #10  
Old May 17th, 2004, 10:18 AM
yanno's Avatar
yanno yanno is offline
Reinvent the Circle
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Location: Jonesville, MI
Posts: 218 yanno User rank is Sergeant (500 - 2000 Reputation Level)yanno User rank is Sergeant (500 - 2000 Reputation Level)yanno User rank is Sergeant (500 - 2000 Reputation Level)yanno User rank is Sergeant (500 - 2000 Reputation Level)yanno User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 23 h 34 m 50 sec
Reputation Power: 10
Send a message via AIM to yanno Send a message via MSN to yanno Send a message via Yahoo to yanno
Okay, it's not automatically running. I can start it, but how do I put it in the "startup" or boot run list?

Reply With Quote
  #11  
Old May 18th, 2004, 04:00 AM
Silverlokk's Avatar
Silverlokk Silverlokk is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Manila, Philippines
Posts: 39 Silverlokk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 32 m 15 sec
Reputation Power: 6
Send a message via ICQ to Silverlokk
One other way to check if apache is running is to open up your browser and point it to http://localhost -- you should get a page which congratulates you on a successful Apache install. If, OTOH, Apache isn't running, your browser will complain about not being able to connect to the (local) server.

<edit> IIRC, you can use a light browser such as lynx, should work as well </edit>

As to starting it up on bootup, there should be a filed named apachectl.sh.<something> somewhere off your /usr/bin tree. Sorry I can't tell you which directory, my FreeBSD drive died some months back . There should be someone in this forum whose memory is better than mine.

Regards.

Last edited by Silverlokk : May 18th, 2004 at 04:03 AM. Reason: additional suggestion

Reply With Quote
  #12  
Old May 18th, 2004, 12:27 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is online now
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,442 Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 h 18 m 43 sec
Reputation Power: 797
>>how do I put it in the "startup" or boot run list?
http://www.netbsd.org/guide/en/chap-rc.html
There's even an example here for apache

Reply With Quote
Closed Thread

Viewing: Dev Shed ForumsOperating SystemsBSD Help > Installing Apache on NetBSD


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump