Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jun 2000 20:17:37 -0500 (EST)
From:      Jonathan Smith <jonsmith@dragonstar.dhs.org>
To:        "Scot W. Hetzel" <hetzels@westbend.net>
Cc:        Michael <enews@michaelvince.com>, freebsd-ports@FreeBSD.ORG
Subject:   Re: Bad apache ports on stable 4.0
Message-ID:  <Pine.BSF.4.21.0006282016130.89132-100000@dragonstar.dhs.org>
In-Reply-To: <01d201bfe165$b5310b60$8dfee0d1@westbend.net>

next in thread | previous in thread | raw e-mail | index | archive | help
I believe where it inserted it is wrong.

Further, I had to do this myself.  I tried the apxs (as root ;) and it
didn't work...  Maybe that's been fixed since my ports were generated.

j


--
Close your eyes.  Now forget what you see.  What do you feel? --
My heart. --  Come here. --  Your heart. --  See?  We're exactly the same.

	Jon Smith -- Senior Math Major @ Purdue

On Wed, 28 Jun 2000, Scot W. Hetzel wrote:

> From: "Jonathan Smith" <jonsmith@dragonstar.dhs.org>
> > 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
> <IfDefine FRONTPAGE>
> LoadModule frontpage_module   libexec/apache/mod_frontpage.so
> </IfDefine>
> 
> # 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
> <IfDefine FRONTPAGE>
> LoadModule frontpage_module   libexec/apache/mod_frontpage.so
> LoadModule php4_module        libexec/apache/libphp4.so
> </IfDefine>
> 
> 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
> <IfDefine FRONTPAGE>
> LoadModule frontpage_module   libexec/apache/mod_frontpage.so
> #LoadModule php4_module        libexec/apache/libphp4.so
> </IfDefine>
> 
> One interesting thing is that APXS  inserted the [Add|Load]Module between the <IfDefine XXX>...</IfDefine> section.
> 
> Scot
> 
> 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0006282016130.89132-100000>