Operating System - HP-UX
1823959 Members
4074 Online
109667 Solutions
New Discussion юеВ

Re: Installing PHP-4.2.2 + Apache/2.0.35 in HP-UX 10.20

 
SOLVED
Go to solution
Mauro_8
Frequent Advisor

Installing PHP-4.2.2 + Apache/2.0.35 in HP-UX 10.20

Does anyone know how to install PHP-4.2.2 + Apache/2.0.35 in HP-UX 10.20? I installed Apache/2.0.35 with a depot file but PHP is not working...

Any advices ?

Regards,
Mauro
10 REPLIES 10
harry d brown jr
Honored Contributor

Re: Installing PHP-4.2.2 + Apache/2.0.35 in HP-UX 10.20

Mauro,

There is a feature in your profile that allows you to find previous Questions you have posted, which makes it easier to take care of this:

This member has assigned points to 5 of 79 responses to his/her questions.

http://forums.itrc.hp.com/cm/TopSolutions/1,,CA745685!1!questions,00.html

live free or die
harry


Live Free or Die
Mauro_8
Frequent Advisor

Re: Installing PHP-4.2.2 + Apache/2.0.35 in HP-UX 10.20

Do I have to install Apache with no depot file ? After install Apache what I have to do to accept PHP files ?

Thanks once more,
Mauro
benoit Bruckert
Honored Contributor
Solution

Re: Installing PHP-4.2.2 + Apache/2.0.35 in HP-UX 10.20

Hi,
Follow this URL to php++++ install on HP UX (from sources..)
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x531c36e69499d611abdb0090277a778c,00.html

hope that help
Benoit
Une application mal pans├йe aboutit ├а une usine ├а gaze (GHG)
Mauro_8
Frequent Advisor

Re: Installing PHP-4.2.2 + Apache/2.0.35 in HP-UX 10.20

Hi,

I installed Apache using a depot file, so I can??t re-configure it or I don??t know how to do it. I thing this installed apache does not has support for PHP. Do I have to install Apache againg with no depot file ?
Apache is working fine, the problem is I am not getting success trying to configure the PHP. :-(

Regards,
Mauro
benoit Bruckert
Honored Contributor

Re: Installing PHP-4.2.2 + Apache/2.0.35 in HP-UX 10.20

I don't know if the depot you installed is configured with mode_so, if it's the case, you can compile just PHP with apxs option (apxs2 for Apache2). Then you have to change httpd.conf to load at startup the Php share library.
But I think it's easier to compile Apache and PHP together (statical) because you don't have to make changes in some sources (see the above url i posted, with the complete description of how to compile...)

regards
Benoit

PS to check if mod so is enabled, run by hand httpd -l
you should have :
Compiled-in modules:
http_core.c
mod_so.c
Une application mal pans├йe aboutit ├а une usine ├а gaze (GHG)
Mauro_8
Frequent Advisor

Re: Installing PHP-4.2.2 + Apache/2.0.35 in HP-UX 10.20

Hi,

I have these :

Compiled in modules:
core.c
prefork.c
http_core.c
mod_so.c

What I have to change in httpd.conf to load php shared libraries ?

I tryed to run apxs but I have these error messages :
# ./apxs
script interpreter "/opt/archive/bin/perl" not found
./apxs: Command not found.

Any ideas ?

Regards,
Mauro
benoit Bruckert
Honored Contributor

Re: Installing PHP-4.2.2 + Apache/2.0.35 in HP-UX 10.20

Well,
You don't have to run apxs by hand !
You have to compile PHP (I don't think there's a depot for it).
Then dowload tar gzip sources from www.php.net.
gunzip the file,
untar the file;
You will have a php source directory
cd to it,
At this level, you have to run the configure script !
./configure --help will give you all the options.
For apache2 you have to do this :
./configure --with-apxs2=/opt/httpd2/bin/apxs
or where ever is stored your apxs software from apache2.

Warning : apxs is an perl script, then you have to install perl 5.6.1 from any depot (http://hpux.cs.utah.edu/hppd/hpux/Languages/perl-5.6.1/ for axample) and create a link to the perl binary in /usr/contrib/bin/perl
(that's why you have an error).


After the configure if you have no errors, type :
make
Go take a coffee
If you have no errors, then :
make install (as root)

I suggest you to install gcc and binutils for the compilation (search it in http://hpux.cs.utah.edu).

For some case of error, see the URL on the previous post where I explain changes to do for HP-UX 11.00, I don't know if it applies for 10.20 and I don't know if you have an SMP system.
In the next release of PHP changes should be included (I posted the bug to the php team).

I place a notify on this post, then tell me if you have still troubles...
Une application mal pans├йe aboutit ├а une usine ├а gaze (GHG)
benoit Bruckert
Honored Contributor

Re: Installing PHP-4.2.2 + Apache/2.0.35 in HP-UX 10.20

oups !!
forgot to write that in httpd.conf you have these lines :
LoadModule php4_module modules/libphp4.so

But the make install should add automatically these lines...

and also for some version of Apache :
AddType application/x-httpd-php .php

SetOutputFilter PHP
SetInputFilter PHP

with 2.0.34 may be i'm not sure for 2.0.35 search on php mailing list you should finf some post about it,
And I have 2.0.39 which need just the LoadModule line
Une application mal pans├йe aboutit ├а une usine ├а gaze (GHG)
Mauro_8
Frequent Advisor

Re: Installing PHP-4.2.2 + Apache/2.0.35 in HP-UX 10.20

Hi,

You told about gcc but in php sources we have a file called config_vars.mk and there you see that the C compiler is cc and not gcc. Is this right or I have to change the PHP sources to use gcc instead of cc ?

Regards,
Mauro
benoit Bruckert
Honored Contributor

Re: Installing PHP-4.2.2 + Apache/2.0.35 in HP-UX 10.20

Place gcc in the path before cc it should be enough.
the ./configure script check all this and change the make file with all the proper values.
can you post the output of the configure ?

Une application mal pans├йe aboutit ├а une usine ├а gaze (GHG)