From owner-freebsd-apache@FreeBSD.ORG Sun Mar 20 22:34:05 2005 Return-Path: Delivered-To: freebsd-apache@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4716016A4CE for ; Sun, 20 Mar 2005 22:34:05 +0000 (GMT) Received: from outgoing.redshift.com (outgoing.redshift.com [207.177.231.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 41D4543D5D for ; Sun, 20 Mar 2005 22:34:04 +0000 (GMT) (envelope-from ray@redshift.com) Received: from workstation (216-228-19-21.dsl.redshift.com [216.228.19.21]) by outgoing.redshift.com (Postfix) with SMTP id 7E9C097016; Sun, 20 Mar 2005 14:34:03 -0800 (PST) Message-Id: <3.0.1.32.20050320143411.00a5f3f8@pop.redshift.com> X-Mailer: na X-Sender: redshift.com Date: Sun, 20 Mar 2005 14:34:11 -0800 To: Lorenzo Perone , freebsd-apache@freebsd.org From: ray@redshift.com In-Reply-To: <492ee5b059cb94091b734985f6f8246d@yellowspace.net> References: <3.0.1.32.20050319124237.00aa3268@pop.redshift.com> <3.0.1.32.20050319124237.00aa3268@pop.redshift.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: Re: mmcache problem X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Mar 2005 22:34:05 -0000 Hi Lorenzo, Thanks for the thorough run down. I don't think I had session.so running, so that may have been the problem. I compiled PHP4.3.10 from source and configured it with very limited support (e.g --disable-all). Same with Apache - so it probably wasn't in there. I ended up switching to APC and was able to get it working with much fewer headaches. It also only required a couple of modules in order to allow the install program to run. For now I think APC is fitting the bill. Thanks again! Ray At 02:54 PM 3/20/2005 +0100, Lorenzo Perone wrote: | Hi, I've had this problem before, actually with apache 1 and 2. | | Did you verify if the the php session module (session.so) | is installed and loaded? | | Have a look at | /usr/local/php/extensions.ini and make sure there is a | extension=session.so | if not, you may have to install it depending on what you did | until now. | | If you installed php via the port lang/php4, it might be just | enough to cd /usr/ports/www/php4-session and make install. | The module ports usually also add the extension= line in | /usr/local/php/extensions.ini. However, always verify that file, | as the ports tend to mess it up with multiple entries when you do | reinstalls. | | If you will use the extensions.ini to load mmcache, | also take care that its line has to be _before_ session.so's. | | It _may_ be possible to do without the session module, possibly with a | mmcache.sessions="0" or similar. I did not try this. | | Also, consider trying eAccelerator 0.92a, which is the successor | of mmcache, particularly with php 4.3.10. | I've had some weird situations with mmcache and php 4.3.10. | I've not had the time yet to verify them thoroughly, but it seems to | me that php 4.3.10 exposes some bugs in mmcache that 4.3.9 did not | expose that roughly (apache core dumps), some of which seem to be | resolved in eaccelerator (at least for what i can see). | | | Hope this helps, | | Lorenzo | | | On 19.03.2005, at 21:42, ray@redshift.com wrote: | | > Hi List, | > | > I'm having problems getting mmcache to work with Apache 1.3.33 & | > PHP4.3.10. I've tried building mmcache from source and also building it | > from /usr/ports/www | > | > Get the following error message in my apache logs no matter what I | > do: | > | > /libexec/ld-elf.so.1: /usr/local/lib/php/20020429/mmcache.so: Undefined | > symbol "php_session_register_module" | > | > I've tried compiling apache with full module support, as well as | > stripped down with just mod_so support. I've tried getting mmcache to | > work with PHP4 loaded as a DSO and also with PHP4 statically compiled | > into apache. Still always the same error message. I've tried | > everything I can think of. I have tried loading mmcache.so directly | > via a LoadModule statement in httpd.conf as well as allowing PHP to | > load it via the PHP.INI file. I get the error message above when I run | > PHP from the command line and also when Apache tries to run. | > | > My php.ini file has the following in it: | > | > [mmcache] | > zend_extension="/usr/local/lib/php/20020429/mmcache.so" | > mmcache.shm_size="16" | > mmcache.cache_dir="/tmp/mmcache" | > mmcache.enable="1" | > mmcache.optimizer="1" | > mmcache.check_mtime="1" | > mmcache.debug="0" | > mmcache.filter="" | > mmcache.shm_max="0" | > mmcache.shm_ttl="0" | > mmcache.shm_prune_period="0" | > mmcache.shm_only="0" | > mmcache.compress="1" | > mmcache.keys="shm_and_disk" | > mmcache.sessions="shm_and_disk" | > mmcache.content="shm_and_disk" | > | > I'm at a loss. I can't seem to get it working. The only information | > on the web I can find shows mmcache being installed no problem and I | > don't seem to be able to find much information regarding any of the | > error messages, etc. | > | > Does anyone have any ideas and/or has anyone gotten it to work with | > Apache 1.3.33 and PHP4.3.10 - either with PHP as a module or when | > statically compiled? | > | > Thanks! | > | > Ray | > | > _______________________________________________ | > freebsd-apache@freebsd.org mailing list | > http://lists.freebsd.org/mailman/listinfo/freebsd-apache | > To unsubscribe, send any mail to | > "freebsd-apache-unsubscribe@freebsd.org" | | |