RE: Zend with chrooted apache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Axl.

-----Original Message-----
From: linux-admin-owner@xxxxxxxxxxxxxxx
[mailto:linux-admin-owner@xxxxxxxxxxxxxxx] On Behalf Of Matias Lopez Bergero
Sent: Thursday, February 16, 2006 12:59 AM
To: anup.purushu@xxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxx
> [mailto:linux-admin-owner@xxxxxxxxxxxxxxx] On Behalf Of Matias Lopez
Bergero
> Sent: Thursday, February 16, 2006 12:24 AM
> To: anup.purushu@xxxxxxxxxxxxxxxxxxxx
> 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@xxxxxxxxxxxxxxx
>>[mailto:linux-admin-owner@xxxxxxxxxxxxxxx] 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.
>>-
>>: send the line "unsubscribe linux-admin" in
>>the body of a message to majordomo@xxxxxxxxxxxxxxx
>>More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>>
> 
> 
> -
> : send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 

-
: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


-
: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux