Re: Help... Installing from Port
On 11/23/06, VeeJay [EMAIL PROTECTED] wrote: On 11/23/06, Frank Staals [EMAIL PROTECTED] wrote: VeeJay wrote: Hi If I will install Apache2 from the Port, how can I configure to add module or disable modules? Like if I want to enable following modules, how can I do them VIA Ports? Please find below the text from this Step-by-Step guide I am using. But that procedure is for manually downloading the archive, checking signatures and then configuring But how can I use Port system to get the same results? snip make install chown -R root:sys /usr/local/apache2 - If we can configure in Port, so where it could be done and how? and if its in a file, where it would be placed? go to the apache2 dir in your portstree ( generally /usr/ports/www/apache2/ ) run 'make config' to set options, if the specific options aren't there: copy the Makefile to Makefile.orig and add the '--enable-OPTION' and '--disable-OPTION' with the other compile options. Not sure though: but aren't a lot of those options also settable in the apache config file ? it might be a better idea to check that out first, so if you ever change your mind about a setting you don't have to recompile your intire apache2 port. -- -Frank Staals ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Hi When I give make config command I get error as follow: # make config === No options to configure I have also tried --enable-OPTION and --disable-OPTION... but didn't had any luck :( -- Thanks! BR / vj Hi How about to write like this? make WITHOUT_MODULES=charset-lite include env setenvif status autoindex asis cgi negotiation imap actions userdir alias so WITH_MODULES=mpm=prefork access auth log_config mime dir And after compiling with above command, I am getting this error when running apache # /usr/local/sbin/apachectl start Syntax error on line 41 of /usr/local/etc/apache2/httpd.conf: Invalid command 'Order', perhaps mis-spelled or defined by a module not included in the server configuration Even though I have added access, auth modules already in the make command... Please help!!! -- Thanks! BR / vj ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Help... Installing from Port
Hi If I will install Apache2 from the Port, how can I configure to add module or disable modules? Like if I want to enable following modules, how can I do them VIA Ports? Please find below the text from this Step-by-Step guide I am using. But that procedure is for manually downloading the archive, checking signatures and then configuring But how can I use Port system to get the same results? - Compiling and installing the software In this step we will configure, compile, and install the Apache web server as follows: ./configure \ --prefix=/usr/local/apache2 \ --with-mpm=prefork \ --disable-charset-lite \ --disable-include \ --disable-env \ --disable-setenvif \ --disable-status \ --disable-autoindex \ --disable-asis \ --disable-cgi \ --disable-negotiation \ --disable-imap \ --disable-actions \ --disable-userdir \ --disable-alias \ --disable-so make su umask 022 make install chown -R root:sys /usr/local/apache2 - If we can configure in Port, so where it could be done and how? and if its in a file, where it would be placed? -- -- Thanks! BR / vj ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Help... Installing from Port
VeeJay wrote: Hi If I will install Apache2 from the Port, how can I configure to add module or disable modules? Like if I want to enable following modules, how can I do them VIA Ports? Please find below the text from this Step-by-Step guide I am using. But that procedure is for manually downloading the archive, checking signatures and then configuring But how can I use Port system to get the same results? snip make install chown -R root:sys /usr/local/apache2 - If we can configure in Port, so where it could be done and how? and if its in a file, where it would be placed? go to the apache2 dir in your portstree ( generally /usr/ports/www/apache2/ ) run 'make config' to set options, if the specific options aren't there: copy the Makefile to Makefile.orig and add the '--enable-OPTION' and '--disable-OPTION' with the other compile options. Not sure though: but aren't a lot of those options also settable in the apache config file ? it might be a better idea to check that out first, so if you ever change your mind about a setting you don't have to recompile your intire apache2 port. -- -Frank Staals ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Help... Installing from Port
Frank Staals wrote: VeeJay wrote: If I will install Apache2 from the Port, how can I configure to add module or disable modules? If we can configure in Port, so where it could be done and how? and if its in a file, where it would be placed? go to the apache2 dir in your portstree ( generally /usr/ports/www/apache2/ ) run 'make config' to set options, if the specific options aren't there: copy the Makefile to Makefile.orig and add the '--enable-OPTION' and '--disable-OPTION' with the other compile options. For apache22 make show-options gives you instructions. It is highly unlikely you would need to do anything to the Makefile. You can place the configuration options in /etc/make.conf, or in /usr/local/etc/pkgtools.conf if you use portupgrade, exactly as any other port. For example, I use the following in pkgtools.conf in the MAKE_ARGS section: 'apache-2*' = [ 'WITHOUT_IPV6=1', 'WITH_AUTH_MODULES=1', 'WITH_LDAP_MODULES=1', 'WITH_MISC_MODULES=1', 'WITH_PROXY_MODULES=1', 'WITH_THREADS_MODULES=1', 'WITH_SUEXEC_MODULES=1', 'WITH_DBM=bdb', 'WITH_BERKELEYDB=FreeBSD', ], Not sure though: but aren't a lot of those options also settable in the apache config file ? it might be a better idea to check that out first, so if you ever change your mind about a setting you don't have to recompile your intire apache2 port. AFAIK, You can use the apache config file to leave out a module which you have compiled, but you can't make use of a module which you haven't compiled. --Alex PS Simply reading /usr/ports/apache22/Makefile would have answered your question about how to set which modules to use. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Help... Installing from Port
On 11/23/06, Frank Staals [EMAIL PROTECTED] wrote: VeeJay wrote: Hi If I will install Apache2 from the Port, how can I configure to add module or disable modules? Like if I want to enable following modules, how can I do them VIA Ports? Please find below the text from this Step-by-Step guide I am using. But that procedure is for manually downloading the archive, checking signatures and then configuring But how can I use Port system to get the same results? snip make install chown -R root:sys /usr/local/apache2 - If we can configure in Port, so where it could be done and how? and if its in a file, where it would be placed? go to the apache2 dir in your portstree ( generally /usr/ports/www/apache2/ ) run 'make config' to set options, if the specific options aren't there: copy the Makefile to Makefile.orig and add the '--enable-OPTION' and '--disable-OPTION' with the other compile options. Not sure though: but aren't a lot of those options also settable in the apache config file ? it might be a better idea to check that out first, so if you ever change your mind about a setting you don't have to recompile your intire apache2 port. -- -Frank Staals ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Hi When I give make config command I get error as follow: # make config === No options to configure I have also tried --enable-OPTION and --disable-OPTION... but didn't had any luck :( -- Thanks! BR / vj ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]