FreeBSD 6 Apache Port
Hi all, I am quite proficient at installing Apache, mod_ssl, mysql php (as a static module) on FreeBSD < 5.0. I always do this from source as I do not understand how to use the ports system ... as far as linking all the mods together. I have recently installed a new server using FreeBSD 6.0. Does anyone know a good tutorial or guide on how to compile Apache 2.x mod_ssl and php to gether from the ports collection? I know how to cd /usr/ports/port_name_here , make , [make test] , make install, but have never understood how to tie the mods together to procuce a complete setup. Also, what is the prefered method for adding ./configure args to a port? FYI, all I am looking to do is to compile Apache 2.x mod_ssl and php together so as to have a ports build of the apache webserver. Any help will be appreciated. -Grant ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: FreeBSD 6 Apache Port
On Tuesday 29 November 2005 20:15, Grant Peel wrote: > Hi all, > > I am quite proficient at installing Apache, mod_ssl, mysql php (as a static > module) on FreeBSD < 5.0. I always do this from source as I do not > understand how to use the ports system ... as far as linking all the mods > together. > > I have recently installed a new server using FreeBSD 6.0. > > Does anyone know a good tutorial or guide on how to compile Apache 2.x > mod_ssl and php to gether from the ports collection? I know how to cd > /usr/ports/port_name_here , make , [make test] , make install, but have > never understood how to tie the mods together to procuce a complete setup. > > Also, what is the prefered method for adding ./configure args to a port? > > FYI, all I am looking to do is to compile Apache 2.x mod_ssl and php > together so as to have a ports build of the apache webserver. > > Any help will be appreciated. > > -Grant Depending on which version of Apache you're trying to build depends on the different modules you'll need to add in. Apache 2 has native ssl included so no mod needed. If you want php support in your apache, then simply install the /usr/ports/www/mod_php(4_5) port. DONE.. here is an excerpt from a google search: "I recommend lang/php4 When you install it should come up with a menu allowing you to choose your options (GD support, CLI, etc). After it is done, it will tell you what to add to your httpd.conf file to get .php files working (apache restart required). To test, make a file like: " "Just a quick note. /usr/ports/lang/php4 also includes command line interface beside the apache module. if you only need mod_php, you can cd to /usr/ports/www/mod_php4 instead/" Aaron Martinez ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: FreeBSD 6 Apache Port
Aaron, Thanks for the advice. I tool it and the install went flawlessly. Two quick questions though: For testing, I want to use the snake oil cert, so am I limited to using open ssl now to comple the cert, as oppsed to the old apache make make certificate make install ? And, the php (cli version) went fine, but it did come up with a few gui questions, but non about --with-gd -enable-mysql etc etc. How to do I deal with that? I was thinking, after make, do I go to the work directory and add them to the configure line? then make again, and install again? OR can you add them directly to the make line? The above is the part about ports that has always confused me. And to be honest, I have never gotten a straight answer. Thanks again, -Grant - Original Message - From: "Aaron Martinez" <[EMAIL PROTECTED]> To: ; "Grant Peel" <[EMAIL PROTECTED]> Sent: Tuesday, November 29, 2005 11:46 PM Subject: Re: FreeBSD 6 Apache Port On Tuesday 29 November 2005 20:15, Grant Peel wrote: Hi all, I am quite proficient at installing Apache, mod_ssl, mysql php (as a static module) on FreeBSD < 5.0. I always do this from source as I do not understand how to use the ports system ... as far as linking all the mods together. I have recently installed a new server using FreeBSD 6.0. Does anyone know a good tutorial or guide on how to compile Apache 2.x mod_ssl and php to gether from the ports collection? I know how to cd /usr/ports/port_name_here , make , [make test] , make install, but have never understood how to tie the mods together to procuce a complete setup. Also, what is the prefered method for adding ./configure args to a port? FYI, all I am looking to do is to compile Apache 2.x mod_ssl and php together so as to have a ports build of the apache webserver. Any help will be appreciated. -Grant Depending on which version of Apache you're trying to build depends on the different modules you'll need to add in. Apache 2 has native ssl included so no mod needed. If you want php support in your apache, then simply install the /usr/ports/www/mod_php(4_5) port. DONE.. here is an excerpt from a google search: "I recommend lang/php4 When you install it should come up with a menu allowing you to choose your options (GD support, CLI, etc). After it is done, it will tell you what to add to your httpd.conf file to get .php files working (apache restart required). To test, make a file like: " "Just a quick note. /usr/ports/lang/php4 also includes command line interface beside the apache module. if you only need mod_php, you can cd to /usr/ports/www/mod_php4 instead/" Aaron Martinez ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: FreeBSD 6 Apache Port
On 11/30/05, Grant Peel <[EMAIL PROTECTED]> wrote: > And, the php (cli version) went fine, but it did come up with a few gui > questions, but non about --with-gd -enable-mysql etc etc. How to do I deal > with that? I was thinking, after make, do I go to the work directory and add > them to the configure line? then make again, and install again? OR can you > add them directly to the make line? These are both available as php4 modules and plugin to php just like apache modules do: databases/php4-mysql graphics/php4-gd A nice way to get these is to just run a 'make install' on lang/php4-extensions which will give you a menu to select which extensions you would like installed in one shot, with common defaults already selected. Aaron ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"