General
cancel
Showing results for 
Search instead for 
Did you mean: 

Apache altroot.sh gone in Apache 2.2

Trace Lowe
Occasional Visitor

Apache altroot.sh gone in Apache 2.2

We need to move the generic installation directory for our Apache 2.2 install. Apache 2.0 installs provided an "altroot.sh" script we used to move the installation to an alternate directory. This script does not appear to be available in Apache 2.2. How can we choose an alternate install directory?
11 REPLIES
Steven E. Protter
Exalted Contributor

Re: Apache altroot.sh gone in Apache 2.2

Shalom,

To fully answer your question, you will have to tell me whether you are using the depot version of apache from HP or the one provided by apache.

If you are using the apache provided version unzip/untar the file and read the readme file, it will provide this information.

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
Trace Lowe
Occasional Visitor

Re: Apache altroot.sh gone in Apache 2.2

Hi!
We are using the .depot from HP.
Trace
Dennis Handly
Acclaimed Contributor

Re: Apache altroot.sh gone in Apache 2.2

>How can we choose an alternate install directory?

swinstall provides a ,l=location option. This may work if not disabled.

swlist -s $PWD/depot software_selection,l=location
Dennis Handly
Acclaimed Contributor

Re: Apache altroot.sh gone in Apache 2.2

I downloaded HPUXWSATW220 but it appears you can't use ,l=:
* Could not apply the software selection "hpuxwsAPACHE.APACHE,r=B.2.0.59.07.01,a=HP-UX_B.11.23_IA/PA,v=HP".
This software can not be relocated.
Trace Lowe
Occasional Visitor

Re: Apache altroot.sh gone in Apache 2.2

Thank you for trying.
The depot I am working with is:
HPUXWS22ATW-B310-64.depot

This contains Apache 2.2.8.

Still searching for a solution...
Shinji Teragaito_1
Respected Contributor

Re: Apache altroot.sh gone in Apache 2.2

# swlist -l file -s /var/tmp/HPUXWS22ATW-B309-64.depot | grep altroot
hpuxws22WEBMIN.HPDOCS: /opt/hpws22/util/altroot.sh
#
# swlist -l file -s /var/tmp/HPUXWS22ATW-B310-64.depot | grep altroot
hpuxws22WEBMIN.HPDOCS: /opt/hpws22/util/altroot.sh
#

It's likely the depot contains altroot.sh.
Did you check /var/adm/sw/swagent.log when you installed the depot ?

On my 11.31 test server with hpuxws22Webmin A.1.070.11,
altroot.sh is available.

# swlist | grep hpuxws22
hpuxws22Apache B.2.2.8.04 HP-UX Apache-based Web Server
hpuxws22Tomcat B.5.5.27.02 HP-UX Tomcat-based Servlet Engine
hpuxws22Webmin A.1.070.11 HP-UX Webmin-based Admin
# swlist -l file hpuxws22Webmin | grep altroot
hpuxws22Webmin.hpuxws22WEBMIN.HPDOCS: /opt/hpws22/util/altroot.sh
# ll /opt/hpws22/util/
total 80
-r-xr-xr-x 1 bin bin 29665 Dec 16 2008 altroot.sh
-r-xr-xr-x 1 bin bin 8162 Dec 16 2008 ports.sh
#

NOTE: the above HP-UX Web Server Suite was installed from 11.31
0909 APPL media.
Trace Lowe
Occasional Visitor

Re: Apache altroot.sh gone in Apache 2.2

Sigh... how embarrassing... I had not installed the 'hpuxws22Webmin' package.
It looks much better now.

We are getting the following output when altroot.sh runs. I'm assuming this is ok, as I believe we've seen this in the past. Can someone confirm?

Moving /opt/hpws22/apache to /opt/webhost_sw/apache2.2.8.10...
Modifying HP-UX Apache-based Web Server files
chatr(warning): the embedded path cannot be disabled in an ELF file
chatr(error): invalid -l argument: /opt/hpws22/apache/lib/libaprutil-1.sl.2
chatr(warning): the embedded path cannot be disabled in an ELF file
chatr(error): invalid -l argument: /opt/hpws22/apache/lib/libaprutil-1.sl.2
chatr(warning): the embedded path cannot be disabled in an ELF file
chatr(error): invalid -l argument: /opt/hpws22/apache/lib/libaprutil-1.sl.2
chatr(warning): the embedded path cannot be disabled in an ELF file
chatr(error): invalid -l argument: /opt/hpws22/apache/lib/libaprutil-1.sl.2
chatr(warning): the embedded path cannot be disabled in an ELF file
chatr(error): invalid -l argument: /opt/hpws22/apache/lib/libaprutil-1.sl.2
chatr(warning): the embedded path cannot be disabled in an ELF file
chatr(error): invalid -l argument: /opt/hpws22/apache/lib/libaprutil-1.sl.2
chatr(warning): the embedded path cannot be disabled in an ELF file
chatr(error): invalid -l argument: /opt/hpws22/apache/lib/libaprutil-1.sl.2
Updating HP-UX Apache-based Web Server links
Apache installation is moved to '/opt/webhost_sw/apache2.2.8.10'
Shinji Teragaito_1
Respected Contributor

Re: Apache altroot.sh gone in Apache 2.2

You should comment the "-l" option lines as follows:

/usr/bin/chatr +s enable \
+b disable \
# -l /opt/hpws22/apache/lib/libaprutil-1.sl.2 \
# -l /opt/hpws22/apache/lib/libapr-1.sl.2 \
# -l /opt/hpws22/apache/lib/libexpat.sl.1 \
$FILE > /dev/null
Dennis Handly
Acclaimed Contributor

Re: Apache altroot.sh gone in Apache 2.2

>Shinji: You should comment the "-l" option lines as follows:

I was not aware you could comment lines like that and it appears you can't.
The lines must be moved/deleted for ELF files which don't support the -l or +l options, unless +compat is used at link time.
Trace Lowe
Occasional Visitor

Re: Apache altroot.sh gone in Apache 2.2

Thanks for the feedback.
Are the '-l' options for PA-RISC architecture?
Dennis Handly
Acclaimed Contributor

Re: Apache altroot.sh gone in Apache 2.2

>Are the '-l' options for PA-RISC architecture?

Actually they are only for PA32, unless you link with +compat.