From: Matias Lopez Bergero Subject: Re: Zend with chrooted apache Date: Thu, 16 Feb 2006 11:32:45 -0300 Message-ID: <43F48D0D.1000009@udesa.edu.ar> References: <20060215194018.37F6132C089@smtpauth00.csee.siteprotect.com> <43F3884F.7030108@udesa.edu.ar> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <43F3884F.7030108@udesa.edu.ar> Sender: linux-admin-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii" To: 'Linux Mail List' Cc: anup.purushu@katalystpartners.com Hello, I had solved the problem. Looks like php knew where was the php.ini file (it was shown in the phpinfo) but it wasn't reading the config file. bug? I changed the configure options, I just let an unspecified config file path in order to let PHP look for the config file in the default path. This worked for me, I copied the php.ini file to the default location and "magic". HTH someone! BR, Matias. Matias Lopez Bergero wrote: > Hi Axl, > > Axl Purushu wrote: > >>Hi Matias, >> >>I hope you have restarted apache and you are accessing phpinfo page using a >>browser. That will have apache process the php instead of the command line >>php -i. > > > Yes, I did that. And trough php command line also, just for aditional > checking. > > Matias. > > >>-----Original Message----- >>From: linux-admin-owner@vger.kernel.org >>[mailto:linux-admin-owner@vger.kernel.org] On Behalf Of Matias Lopez Bergero >>Sent: Thursday, February 16, 2006 12:59 AM >>To: anup.purushu@katalystpartners.com >>Cc: 'Linux Mail List' >>Subject: Re: Zend with chrooted apache >> >>Axl Purushu wrote: >> >> >>>Hi Matias, >>> >>>In the phpinfo webpage at the top you can see the php.ini config file that >>>apache/php is actually using. >>>Confirm that and check if that particular config file has Zend enabled. >>>Also, after these change have you restarted apache ? >> >> >>Yes, I had checked all that. >>It's quite weird, the config file shown in the phpinfo page it is >>properly configure to use Zend: >> >># tail -10 php.ini >> >>[Zend] >>zend_optimizer.optimization_level=15 >>zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-2_6_0 >>zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-2_6_0 >>zend_optimizer.version=2.6.0 >>zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so >>zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so >># >> >>Wen I run php -m the Zend modules are not shown in the output: >> >># chroot /export/jail/apache/ /usr/local/php/bin/php -m >>[PHP Modules] >>ctype >>ftp >>mysql >>overload >>pcre >>posix >>session >>standard >>tokenizer >>xml >> >>[Zend Modules] >># >> >>But, if I specify the php.ini file they are shown: >> >># chroot /export/jail/apache/ /usr/local/php/bin/php -m -c /etc/php/php.ini >>[PHP Modules] >>ctype >>ftp >>mysql >>overload >>pcre >>posix >>session >>standard >>tokenizer >>xml >>Zend Optimizer >> >>[Zend Modules] >>Zend Extension Manager >>Zend Optimizer >># >> >>Funny, because looks like php know where is the configuration file: >> >># chroot /export/jail/apache/ /usr/local/php/bin/php -i | grep Configuration >> >>Configuration File (php.ini) Path => /etc/php/php.ini >># >> >>I don't understand what is wrong. >>Any idea? >> >>Thanks! >> >>BR, >>Matias. >> >> >> >>>-----Original Message----- >>>From: linux-admin-owner@vger.kernel.org >>>[mailto:linux-admin-owner@vger.kernel.org] On Behalf Of Matias Lopez >> >>Bergero >> >> >>>Sent: Thursday, February 16, 2006 12:24 AM >>>To: anup.purushu@katalystpartners.com >>>Cc: 'Linux Mail List' >>>Subject: Re: Zend with chrooted apache >>> >>>Hello Axl, >>> >>>Axl Purushu wrote: >>> >>> >>> >>>>If you have command line php, then use "php -m". In the output >>>>at the bottom you should be able to see Zend modules. >>> >>> >>>Running the php -m turns that there are no Zend modules compiled, but >>>wen I specify the php.ini file with -c flag, it returns that the Zend >>>Extension Manager and the Zend Optimizer modules are installed. >>> >>>I don't know why do I need to specify the location of the php.ini file, >>>I put that information during configure time using the >>>--with-config-file-path flag before building PHP, and also it's shown in >>>the output of php -i... what I'm missing here? >>> >>>Thank you, >>> >>>BR, >>>Matias. >>> >>> >>> >>> >>>>-----Original Message----- >>>>From: linux-admin-owner@vger.kernel.org >>>>[mailto:linux-admin-owner@vger.kernel.org] On Behalf Of Matias Lopez >>> >>>Bergero >>> >>> >>> >>>>Sent: Wednesday, February 15, 2006 11:43 PM >>>>To: 'Linux Mail List' >>>>Subject: Zend with chrooted apache >>>> >>>>Hello, >>>> >>>>I testing the Zend software to improve the PHP performance (4.4.x), but >>>>seems that the installation didn't completely work, because I can't see >>>>the info about the Zend optimizer with the phpinfo funcion. >>>> >>>>The Zend software is installed, and the configuration in the php.ini >>>>it's ok, but till can check if it's working. Maybe some kind of issue >>>>with the chrooted apache? >>>> >>>>Comments are most welcome. >>>>TIA! >>>> >>>>BR, >>>>Matias. >>>>- >>>>To unsubscribe from this list: send the line "unsubscribe linux-admin" in >>>>the body of a message to majordomo@vger.kernel.org >>>>More majordomo info at http://vger.kernel.org/majordomo-info.html >>>> >>>> >>> >>> >>>- >>>To unsubscribe from this list: send the line "unsubscribe linux-admin" in >>>the body of a message to majordomo@vger.kernel.org >>>More majordomo info at http://vger.kernel.org/majordomo-info.html >>> >>> >> >> >>- >>To unsubscribe from this list: send the line "unsubscribe linux-admin" in >>the body of a message to majordomo@vger.kernel.org >>More majordomo info at http://vger.kernel.org/majordomo-info.html >> >> > > > - > To unsubscribe from this list: send the line "unsubscribe linux-admin" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >