|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
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
|
||||
|
||||
|
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. |
|
#2
|
|||
|
|||
|
>> 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. |
|
#3
|
||||
|
||||
|
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. |
|
#4
|
|||
|
|||
|
>> 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. |
|
#5
|
||||
|
||||
|
Thanks, you're helping out bigtime here, this is the stuff I was unable to find in the handbook.
Marc |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > apache freebsd port |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|