Operating System - HP-UX
1834150 Members
2289 Online
110064 Solutions
New Discussion

Re: Compiling Apache/1.3.24 and PHP 4.0.4 on ux 10.20

 
SOLVED
Go to solution
Daniel Crow
Occasional Advisor

Compiling Apache/1.3.24 and PHP 4.0.4 on ux 10.20

I decided the other day to try and get a version of apache running on my 10.20 hp-ux box. Apache compiled fine and with no errors but when I went to compile PHP I couldn't find anything other then errors.

Here are some of the errors I get. Just a note .. I did look through the user forums here and found some solutions but they just lead to more problems.

Configure errors:

There don't appear to be any.

Make errors:

Under Making all in .:

*** Warning: This library needs some functionality provided by -lcrypt.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.

*** Warning: This library needs some functionality provided by -lcrypt.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.


Make install errors:

apxs:Error: file libs/libphp4.sl is not a DSO
*** Error exit code 1

Stop.
*** Error exit code 1

The problem with the make install error was supposedly to copy it from libphp4.sl to libphp4.so and run it manually. This works but when you try to start apache back up it gives you errors and apache doesn't start.

My question is just this. Is it even possable to compile php 4.x.x on 10.20? (I got 3.x.x to compile fine but I need the functionality that 4.x.x provides)

If there is anyone out there that has gotten this to compile please let me know how!

Thanks in advance

Dan
5 REPLIES 5
Pete Randall
Outstanding Contributor

Re: Compiling Apache/1.3.24 and PHP 4.0.4 on ux 10.20

Daniel,

You can get a pre-compiled version of Apache with built in PHP from HP at:
http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=B9416AAPA2000

Hope this helps,
Pete

Pete
Daniel Crow
Occasional Advisor

Re: Compiling Apache/1.3.24 and PHP 4.0.4 on ux 10.20

I did run into that link while trying to solve my problem but there are two things wrong with that download.

1. I need to have Postgresql compiled in. There is also the fact that it is a Version 11/11i depot and the server I am attempting to install it on is a 10.20 server. (I would upgrade but am unable to at this time)

It is a very good suggestion though ...
Jim Marsden
Occasional Advisor

Re: Compiling Apache/1.3.24 and PHP 4.0.4 on ux 10.20

I remeber reading somwhere that Dynamically Shared Objects in Apache will only work on UX 11.00 up - therefore you will need to statically link the module into httpd.

Not sure about the libcrypt, I have a libcrypt.a on my 10.20 - you may to statically link also.

Jim
There are ten kinds of people in this world, those that understand binary - and those that don't.
Paul Bowen
Advisor
Solution

Re: Compiling Apache/1.3.24 and PHP 4.0.4 on ux 10.20

Yes, I got it to work - eventually. as previously suggested, HPUX 10.2 does not support DSO for php/apache.
Here's what I had to do:
remove php and apache directories there from previous attempts.
unzip and swinstall gcc-2.95.3 from http://hpux.cict.fr/hppd/Gnu/gcc-2.95.3/
unzip and swinstall binutils-2.11.2, bison-1.35 and flex-2.5.4 from http://hpux.connect.org.uk/hppd/hpux/Gnu/alpha.html
ensure the paths to these are in /etc/PATH, log off and log on again
unzip and untar apache-1.3.24-ss-11.00
http://hpux.connect.org.uk/hppd/hpux/Networking/WWW/apache-1.3.24/
unzip and untar php-4.2.1 from http://www.php.net/downloads.php
in the php directory - vi configure and remove the 3 occurences of '/src' in lines 3847, 3849 and 3855 (those were the lines in mine, anyway)
Then follow the QUICK INSTALL (Static) section of http://cvs.php.net/co.php/php4/INSTALL
All seems to work fine now
shit happens - just deal with it
Paul Bowen
Advisor

Re: Compiling Apache/1.3.24 and PHP 4.0.4 on ux 10.20

hello again - the link to gcc has moved to http://hpftp.cict.fr/hppd/hpux/Gnu/gcc-2.95.3/
good luck
shit happens - just deal with it