From owner-freebsd-ports Wed Jun 28 18: 2:51 2000 Delivered-To: freebsd-ports@freebsd.org Received: from mail.westbend.net (ns1.westbend.net [209.224.254.131]) by hub.freebsd.org (Postfix) with ESMTP id C390137BA37 for ; Wed, 28 Jun 2000 18:02:43 -0700 (PDT) (envelope-from hetzels@westbend.net) Received: from admin (admin.westbend.net [209.224.254.141]) by mail.westbend.net (8.9.3/8.9.3) with SMTP id UAA98308; Wed, 28 Jun 2000 20:02:32 -0500 (CDT) (envelope-from hetzels@westbend.net) Message-ID: <01d201bfe165$b5310b60$8dfee0d1@westbend.net> From: "Scot W. Hetzel" To: "Jonathan Smith" , "Michael" Cc: References: Subject: Re: Bad apache ports on stable 4.0 Date: Wed, 28 Jun 2000 20:02:31 -0500 Organization: West Bend Internet MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4029.2901 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4029.2901 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org From: "Jonathan Smith" > CC'd to ports where it belongs. > (Please respond only there as I don't think this is a -stable issue). > > I'd like to suggest they add this to the messages that says to hadd the > handler lines, it certainly would have saved me grief -- and you. > > I had the same problems (and a few worse ones). > It's not needed as APXS adds those lines automatically to the httpd.conf file. The following command will add the [Add|Load]Module info to the httpd.conf file, if it doesn't exist. If it exists and there is a "#" at the begining of the line, then the "#" is removed. If it exists and there is no "#" at the beginning of the line, then the line is left unchanged. /usr/local/sbin/apxs -e -a -n php4 libphp4.so The following command will comment out the [Add|Load]Module info by adding a "#" to the beginning of the line. /usr/local/sbin/apxs -e -A -n php4 libphp4.so I just did an install of mod_php4 on my system and it added the [Add|Load]Module info to the httpd.conf file automatically. Before install: # Example: # LoadModule foo_module libexec/mod_foo.so LoadModule vhost_alias_module libexec/apache/mod_vhost_alias.so : : LoadModule unique_id_module libexec/apache/mod_unique_id.so LoadModule setenvif_module libexec/apache/mod_setenvif.so LoadModule frontpage_module libexec/apache/mod_frontpage.so # make install ===> Installing for mod_php-4.0.0 ===> mod_php-4.0.0 depends on file: /usr/local/sbin/apxs - found Making install in Zend : : Making install in apache Making install in . /usr/local/sbin/apxs -i -a -n php4 libs/libphp4.so install -c -m 555 -o root -g wheel libs/libphp4.so /usr/local/libexec/apache/libphp4.so [activating module `php4' in /usr/local/etc/apache/httpd.conf] ===> Generating temporary packing list After install: # Example: # LoadModule foo_module libexec/mod_foo.so LoadModule vhost_alias_module libexec/apache/mod_vhost_alias.so : : LoadModule unique_id_module libexec/apache/mod_unique_id.so LoadModule setenvif_module libexec/apache/mod_setenvif.so LoadModule frontpage_module libexec/apache/mod_frontpage.so LoadModule php4_module libexec/apache/libphp4.so After pkg_delete mod_php-4.0.0 apxs is used to disable the [Add|Load]Module lines: (/usr/local/sbin/apxs -e -A -n php4 libphp4.so) # Example: # LoadModule foo_module libexec/mod_foo.so LoadModule vhost_alias_module libexec/apache/mod_vhost_alias.so : : LoadModule unique_id_module libexec/apache/mod_unique_id.so LoadModule setenvif_module libexec/apache/mod_setenvif.so LoadModule frontpage_module libexec/apache/mod_frontpage.so #LoadModule php4_module libexec/apache/libphp4.so One interesting thing is that APXS inserted the [Add|Load]Module between the ... section. Scot To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message