Operating System - HP-UX
1834382 Members
1829 Online
110066 Solutions
New Discussion

Re: Help with Upgrade Apache

 
SOLVED
Go to solution
Lory_1
Frequent Advisor

Help with Upgrade Apache

Hi,

I'm trying to upgrade Apache from version 1.3.12 to 1.3.27. Is it better to uninstall 1.3.12 first then install 1.3.27?

How do you uninstall?

Thanks in advance!!

-Lory
10 REPLIES 10
Steven E. Protter
Exalted Contributor

Re: Help with Upgrade Apache

I would go as follows:

make a copy of httpd.conf and httpd.conf.orig


If you installed of hp depots just swinstall over it.

swinstall -s /path_to_apache_depot \*

I do not believe if you compiled it yourself you need to remove the old version either.

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
Lory_1
Frequent Advisor

Re: Help with Upgrade Apache

Hi,

I have actually installed Apache version 1.3.12 from source with PHP. So as you said, all I need to do is copy the config files and just install another version and recompile PHP?

Thanks again!
benoit Bruckert
Honored Contributor

Re: Help with Upgrade Apache

Hi,
there shouldn't be big differences between 1.3.12 and 1.3.27 in the conf file.
I made some upgrade from 1.3.14 to 1.3.19 and later from 1.3.19 to 1.3.27 without changing httpd.conf.
I built it from sources, and to go very quickly, after configure / make, i didn't made the make install.
I stopped apache, copy the httpd binary to httpd.sav (never mind !) , copy the new binary (built from sources) to the httpd production location, start apache.
In fact this is just 10 seconds (time for the 2 cp) without internet, which is
few. Of course by this way, other binaries are not installed (httppasswd, modules....) but if you build a static apache binary, you have no problems..
If you are using the depot , I don't know !
hth
Benoit
Une application mal pansée aboutit à une usine à gaze (GHG)
benoit Bruckert
Honored Contributor

Re: Help with Upgrade Apache

Hey, you wrote PHP,
In this case you can follow the way I used .
Did you compile PHP as a module or statically ?
If it's static, then this is exactly what I wrote.
If it's dynamical, you will have to copy also the mod_php.so to the binary directory before starting Apache.

hope that help
Benoit
Une application mal pansée aboutit à une usine à gaze (GHG)
Elena Leontieva
Esteemed Contributor

Re: Help with Upgrade Apache

Lory,

Here you'll find all you need. You just have to stop the previous version before an install, you do not need to remove it.

http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=B9415AA132702&oper=install

Elena.
Lory_1
Frequent Advisor

Re: Help with Upgrade Apache

Hi,

I am sorry, I am really new to this. How can you tell if you installed it statically or as a module?
benoit Bruckert
Honored Contributor

Re: Help with Upgrade Apache

try httpd -l in your apache bin directory.
Here's the output from one of my host :
Compiled-in modules:
http_core.c
mod_so.c
mod_php4.c

which mean that the module loader is included (mod_so), but php4 is built-in , which means that it's static.
if you have just mod_so.c, without mod_php4.c, then it's dynamic.

modules are installed in /lib/modules,
binaries (httpd) are in
/bin

hth
Benoit
Une application mal pansée aboutit à une usine à gaze (GHG)
Lory_1
Frequent Advisor

Re: Help with Upgrade Apache

This is what shows:
http_core.c
mod_env.c
mod_log_config.c
mod_mime.c
mod_negotiation.c
mod_status.c
mod_include.c
mod_autoindex.c
mod_dir.c
mod_cgi.c
mod_asis.c
mod_imap.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_access.c
mod_auth.c
mod_setenvif.c
mod_php4.c
mod_perl.c
Lory_1
Frequent Advisor

Re: Help with Upgrade Apache

Hi, I have upgraded my apache server from 1.3.12 to 1.3.27. When I run:

httpd -v

it says it is Apache version 1.3.27

However, when I use info().php and under the Apache configuration, it still says Apache is version 1.3.12. Why is PHP not recognizing Apache has been upgraded?

I have recompiled both the apache and php source code.

Thanks in advance!
benoit Bruckert
Honored Contributor
Solution

Re: Help with Upgrade Apache

Hi,
I already get such a pb.
the best thing to do in your case is to start from scratch...
I.E.
remove your apache source tree (Hope you kept the downloaded tar file).
remove your php source tree (hope you kept the downloaded tar file).
untar the Apache source tree,
untar the PHP source tree,
follow the procedure to build Apache+PHP in the INSTALL text file from the PHP source tree (the static way !).
If i remember the procedure is :
in APAche sources : ./configure
Then in PHP sources :
./configure --with-apache=
make
make install
YOU cd now in the php source tree :
./configure --activate-module=src/modules/php4/libphp4.a
make
Don't run at this level the make install.
You can run httpd -l to see built-in modules, and httpd -v to see version.

copy your httpd to the binary place,
and run your phpinfo() script.
You should have the proper page.

(I already had such a trouble, and a "make clean" in php sources and apache sources wasn't enough, i had to rebuild from scratch. And I don't know why !).
hth
Benoit
Une application mal pansée aboutit à une usine à gaze (GHG)