1845992 Members
3672 Online
110252 Solutions
New Discussion

HPWS problem with PHP

 
Hervé Marcy
Occasional Contributor

HPWS problem with PHP

Hello,

I have a problem with a server running HP-UX 11v3, Apache 2.0.58 and
PHP 5.0.4.

My application requires some PHP extensions : calendar, xml, zlib and
other ones...

My goal is to install the Calendar extension.

I wanted to do it with the PEAR package system, so I needed first the
zlib extension. It is included in the Apache/PHP bundle so I installed
the zlib library 1.2.3 (as required for the dependencies), in the
file /opt/hpws/apache/conf/php.ini I removed the ';' at the beginning of
the line
extension = zlib.sl

and I restarted the Apache server.

But whenever I try to use the PEAR package manager, I get the following
error :

# ./pear install Calendar-0.5.3.tgz
The extension 'zlib' couldn't be found.
Please make sure your version of PHP was built with 'zlib' support.

Moreover, the phpinfo() function does not mention zlib at all.

Fyi :
# cat /opt/hpws/apache/conf/php.ini | fgrep zlib
zlib.output_compression = 1
extension = zlib.sl

As far as I know, the zlib extension only works when the parameter
--enable-zlib is appended at the ./configure step of the PHP-compilation
and it is not mentioned on the phpinfo() page at the "Configure Command"
row. Are there other flavors of PHP compiled for HP-UX ? Or do you have
any other solution in order us to let the zlib extension work ?

Thanks in advance for your help