Operating System - HP-UX
1830898 Members
3630 Online
110017 Solutions
New Discussion

HPUX 11.0 + Apache 1.3.26 + PHP 4.2.2

 
Kathryn A. Miller
New Member

HPUX 11.0 + Apache 1.3.26 + PHP 4.2.2

I have two HP 11.0 servers; one I use for development and testing of web pages, and one is the production web server. I want to use PHP. I've gotten the installation down to a science on the dev box; wrote down my step by step instructions, tested them again, it worked fine. Tried the installation on the production server, and it doesn't work. I've searched everywhere I could find, and can't find anything that tells me something I haven't tried.

Here's the steps I'm taking. Please let me know what I might be missing, or if there's any additional information that I can provide. Any help you can give will be much appreciated!

Install Apache 1.3.26:

cd /opt
gzip -d /opt/apache_1.3.26.tar.gz
tar -xvf apache_1.3.26.tar
cd apache_1.3.26
./configure --prefix=/opt/apache_php --enable-module=rewrite --enable-shared=rewrite --enable-shared=max
make
make install



Install PHP:

cd /opt
gzip -d php-4.2.2.tar.gz
tar -xvf php-4.2.2.tar
cd php-4.2.2
./configure --with-mysql=/opt/db/mysql --with-apxs=/opt/apache_php/bin/apxs --enable-libgcc
make
make install
NOTE: it will dcrash!
cp libs/libphp4.sl libs/libphp4.so
/opt/apache_php/bin/apxs -i -a -n php4 libs/libphp4.so
cp php.ini-dist /usr/local/lib/php.ini
6 REPLIES 6
inactive account
Frequent Advisor

Re: HPUX 11.0 + Apache 1.3.26 + PHP 4.2.2

Hi,
We installed PHP4.2 on differents servers but not as modules because of problems of generation on HPUX with apache modules.
So we linked PHP as static library and it works ok.

Can you precise how it crashes?

Laurent
Kathryn A. Miller
New Member

Re: HPUX 11.0 + Apache 1.3.26 + PHP 4.2.2

How do I install it as a static library?


Here's the error message (truncated due to it's length):

$ ./apachectl configtest
/usr/lib/dld.sl: Unresolved symbol: mysql_list_dbs (code) from /opt/apache_php/libexec/libphp4.so
Syntax error on line 223 of /opt/apache_php/conf/httpd.conf:
Cannot load /opt/apache_php/libexec/libphp4.so into server: No such file or directory
$



Thanks,

Kathryn
Sean OB_1
Honored Contributor

Re: HPUX 11.0 + Apache 1.3.26 + PHP 4.2.2

What's different between your dev and prod boxes?

Do they have the same version of the compiler?
Kathryn A. Miller
New Member

Re: HPUX 11.0 + Apache 1.3.26 + PHP 4.2.2

The prod box is a couple years old; it was here when I started. The dev box is new as of April.

Gcc on prod is 2.95.2 and gcc on dev is 3.1. Is that what you're asking for?


Kathryn
Sean OB_1
Honored Contributor

Re: HPUX 11.0 + Apache 1.3.26 + PHP 4.2.2

Yes that is what I was asking for. I would upgrade the gcc compiler to the same level and remake the php mod.

You said the make fails? If so what exact error message are you seeing when it fails?
Kathryn A. Miller
New Member

Re: HPUX 11.0 + Apache 1.3.26 + PHP 4.2.2

The gcc install fails. Here's the last few lines, the rest is in an attachment:

(Bundled) cc: "tradcpp.c", line 2628: error 1532: Reference through a non-pointer.
(Bundled) cc: "tradcpp.c", line 2628: error 1549: Modifiable lvalue required for assignment operator.
gmake[2]: *** [tradcpp.o] Error 1
gmake[2]: Leaving directory `/opt/gcc-3.1/gcc/gcc'
gmake[1]: *** [install-gcc] Error 2
gmake[1]: Leaving directory `/opt/gcc-3.1/gcc'
gmake: [install] Error 2 (ignored)



Thanks for the help,

Kathryn