|
|
|
| |||||||||
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
||||
|
||||
|
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 |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
||||
|
||||
|
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 |
|
#4
|
|||
|
|||
|
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.
|
|
#5
|
||||
|
||||
|
You mean /usr/pkg/bin should be set in my path already/automatically? or do I need to "set PATH $PATH;/usr/pkg/bin"?
|
|
#6
|
||||
|
||||
|
/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 |
|
#7
|
||||
|
||||
|
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." |
|
#8
|
|||
|
|||
|
Try accessing it; look to see if an httpd process is running
|
|
#9
|
||||
|
||||
|
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. |
|
#10
|
||||
|
||||
|
Okay, it's not automatically running. I can start it, but how do I put it in the "startup" or boot run list?
|
|
#11
|
||||
|
||||
|
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 |
|
#12
|
||||
|
||||
|
>>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 ![]() |
| Viewing: Dev Shed Forums > Operating Systems > BSD Help > Installing Apache on NetBSD |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|