1830340 Members
2625 Online
110001 Solutions
New Discussion

Re: PHP 5 on HPUX 11

 
Mike Lynch_4
Occasional Contributor

PHP 5 on HPUX 11

Hi All
I've been trying to compile PHP 5.02 on HPUX 11.0 for 2 days now and what with needing to firstly get gcc,libxml2,zlib and all that its been a real hoot. It still won't compile.
I've just read on the PHP site that you cannot compile PHP as a DSO module on HPUX but that it needs to be compiled statically with Apache.

Is this true ? I've been using the enable-dso option and have been pointing to the apxs that comes with the HPWS Webserver.

Does anyone know where I can get a working PHP5-Apache1.x/2.x build for HPUX 11.0 ?

Thanks

Mike
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: PHP 5 on HPUX 11

http://hpux.connect.org.uk/hppd/cgi-bin/search

HP or someone will eventually port PHP 5.

You may be better off waiting for the port and the depots.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Bart Paulusse
Respected Contributor

Re: PHP 5 on HPUX 11

Hi Mike, the only way I've been able to get PHP5 working on HP-UX is to use a apache1.x version and compile PHP as a static module.
I used apache 1.3.33 and PHP version 5.0.4

I couldn't get PHP compiled as DSO module for apache2.

regards,

Bart
Ermin Borovac
Honored Contributor

Re: PHP 5 on HPUX 11

It's possible to compile PHP 5.0.4 with Apache 2.0.53 and have PHP module as DSO.

Here are some notes on how to do it with HP's ANSI cc.

The key is to modify configure file in PHP source directory as follows.

$ perl -pi.orig -e 's,^SAPI_SHARED=libs/libphp4)..*$,$1.so,g' configure
$ perl -pi -e 's,(libname[^\.]*)\.sl,$1.so,g' configure
$ export CCOPTS="+Z -DIEEE_BIG_ENDIAN"
$ export CC=cc
$ ./configure --prefix= --with-apxs2=
$ make
# make install
Mike Lynch_4
Occasional Contributor

Re: PHP 5 on HPUX 11

Thanks for the replies.

The route I eventually took was to compile on Apache 1.x as a static module.

I could never really work out if it was safe to run PHP 5 on Apache 2 as anything I've read has advised againt it.

I did come across a site www.thewrittenword.com where you can buy precompiled binaries of a lot of open source software for a variety of platforms.
Mauro Scarlata
Frequent Advisor

Re: PHP 5 on HPUX 11

HI,

I'm trying to compile PHP 5.0.3 as a static module on HP-UX 11.11 with apache 1.3.33.

The SHLIB_PATH is set.
libxml2 is istalled.

This is the compiling error:
...
Configuring extensions
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
checking whether libxml build works... no
configure: error: build test failed. Please check the config.log for details.


The config.log write:
...
configure:17818: checking libxml2 install dir
configure:17978: checking whether libxml build works
configure:18005: gcc -o conftest -g -O2 -Wl,-rpath,/usr/local/lib -L/usr/local/lib conftest.c

-lm -lnsl -lxml2 -lz -liconv -lm 1>&5
/usr/local/lib/libxml2.sl: file not recognized: File format not recognized
collect2: ld returned 1 exit status
configure: failed program was:
#line 17994 "configure"
#include "confdefs.h"


char xmlInitParser();
int main() {
xmlInitParser();
return 0;
}



what can I have to do?
thanks.
Mauro