Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
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 July 27th, 2001, 06:22 AM
yhcmarc's Avatar
yhcmarc yhcmarc is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: Heemskerk, The Netherlands
Posts: 254 yhcmarc User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 53 m 49 sec
Reputation Power: 8
apache freebsd port

does the freebsd port of apache support dso modules and if not how do I configure the port that it does support it. I'm going to replace my webserver with a new one and this time I only want to use the ports instead of compiling the source code myself. I want need to use php on the system and would like to compile it as a dso module so I can keep everything up to date easily.

Thanks,

Marc van Duivenvoorde.

ps. I will use the freebsd 4.3 installcd and probably use cvsup to update to the stable version. Or would netbsd be a good choice since I also order a netbsd 1.5.?? cd.

Reply With Quote
  #2  
Old July 27th, 2001, 06:43 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> does the freebsd port of apache support dso modules

Yes and always. So as NetBSD.

>> I only want to use the ports instead of compiling the source code myself

Unlike Linux, which don't have the BSD's ports system, when installing program from your ports tree, it's equivalent to compiling from src yourself. There is a Makefile which you can altered to your liking or you can even send additional options to make.

Say the Makefile set the $PREFIX to /usr/local and you wanted it to be /var/www. When compiling from src, you would run ./configure --prefix=/var/www....make...make install. In any BSD's port system, the Makefile already specified all the configure options plus whatever patches required to make that port run well on your system. So you would do:
1) cd /usr/ports/www/apache13
2) make PREFIX=/var/www #default to /usr/local (the standard)
3) make install

That's it.

To uninstall it, you just need to cd there and make deinstall or cd to /var/db/pkg and find the name of apache-1.3.20 (make sure it's there), then run pkg_delete apache-1.3.20.

That's it!! Neat and clean!!

As mentioned above, you can specify options you normally send to ./configure to make, they are equivalent. Just be sure to check out the Makefile for the default options.

>> Or would netbsd be a good choice since I also order a netbsd 1.5.?

1.5? 1.5.1 has been out for a while already. Anyhow, FreeBSD would be a better choice for you in this case.

Reply With Quote
  #3  
Old July 27th, 2001, 08:07 AM
yhcmarc's Avatar
yhcmarc yhcmarc is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: Heemskerk, The Netherlands
Posts: 254 yhcmarc User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 53 m 49 sec
Reputation Power: 8
Ok thanks, I've been working with freebsd for a while and I never could find the info you just provided. Thanks.

so I could use make --enable-module=most --enable-shared=max so I can use dso, thanks. Last time I compiled it myself from source code and I could not get the httpd deamon to be started at boot time, not even from the rc.local file. I think I should read more about it. I edited the /etc/rc.conf and changed the httpd executable (just like /etc/defaults/rc.conf) to my executable and it did not start.

I'll use netbsd on my testing machine first then I guess.

Thanks again.

Last edited by yhcmarc : July 27th, 2001 at 08:09 AM.

Reply With Quote
  #4  
Old July 27th, 2001, 08:52 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> so I could use make --enable-module=most

Yup

>> --enable-shared=max so I can use dso

BTW, to enable mod_dso, you just need to specify one module as a share module, then mod_so will be automatically enabled. For example, --enable-module=auth_db. Anyway, read the Makefile first, and don't redefine any options (just change or add).

>> I could not get the httpd deamon to be started at boot time

The Apache start/stop boot script can be found in -> /usr/ports/www/apache13/files/apache.sh
Unlike Linux, in BSD's port system, the port maintainer already placed all the boot script and patches to the appropriate location, all the hard+time consuming works already done for you automatically.

>> not even from the rc.local file

In NetBSD, you would start/stop from rc.local. In Open/Free, put them to /usr/local/etc/rc.d/script_here.sh

Run this: cat /etc/defaults/rc.conf | grep local_startup
local_startup="/usr/local/etc/rc.d /usr/X11R6/etc/rc.d" # startup script dirs.

As you can see, FreeBSD by default already added /usr/local/etc/rc.d directory for your convenience. Since the line local_startup is already defined in /etc/defaults/rc.conf, so you don't need to redefine it in /etc/rc.conf. UNLESS you wanted to override the default, say to /opt/etc/rc.d, you then have to append (not replace) it to /etc/rc.conf like so:

local_startup="/usr/local/etc/rc.d /usr/X11R6/etc/rc.d /opt/etc/rc.d"

>> I'll use netbsd on my testing machine first then I guess

OpenBSD's codes was based on NetBSD, supposely their system and directory layout is very close, but that's not the case. Open's directory layout is closer to FreeBSD. In NetBSD, your ports tree (default) to /usr/pkgsrc.

Reply With Quote
  #5  
Old July 27th, 2001, 09:22 AM
yhcmarc's Avatar
yhcmarc yhcmarc is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: Heemskerk, The Netherlands
Posts: 254 yhcmarc User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 53 m 49 sec
Reputation Power: 8
Thanks, you're helping out bigtime here, this is the stuff I was unable to find in the handbook.

Marc

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > apache freebsd port


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


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway