- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- problem with apache's rotatelog
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2004 04:23 AM
09-08-2004 04:23 AM
In a virtual host container:
CustomLog "|/opt/devhpws/apache/bin/rotatelogs /var/logs/foo 86400" combined
Errors from the error_log (note that it's looking for the lib in the old hpws directory):
/usr/lib/dld.sl: Can't open shared library: /opt/hpws/apache/lib/libapr-0.sl.9
/usr/lib/dld.sl: No such file or directory
/usr/lib/dld.sl: Can't open shared library: /opt/hpws/apache/lib/libapr-0.sl.9
/usr/lib/dld.sl: No such file or directory
/usr/lib/dld.sl: Can't open shared library: /opt/hpws/apache/lib/libapr-0.sl.9
/usr/lib/dld.sl: No such file or directory
/usr/lib/dld.sl: Can't open shared library: /opt/hpws/apache/lib/libapr-0.sl.9
/usr/lib/dld.sl: No such file or directory
/usr/lib/dld.sl: Can't open shared library: /opt/hpws/apache/lib/libapr-0.sl.9
/usr/lib/dld.sl: No such file or directory
/usr/lib/dld.sl: Can't open shared library: /opt/hpws/apache/lib/libapr-0.sl.9
/usr/lib/dld.sl: No such file or directory
/usr/lib/dld.sl: Can't open shared library: /opt/hpws/apache/lib/libapr-0.sl.9
/usr/lib/dld.sl: No such file or directory
/usr/lib/dld.sl: Can't open shared library: /opt/hpws/apache/lib/libapr-0.sl.9
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2004 04:42 AM
09-08-2004 04:42 AM
SolutionQ: How can I install HP-UX Web Server Suite into a different directory?
This assumes that you start Apache the standard way by using the "apachectl" script. You will need to become "root" user to do this.
Automatic method
A. Install the entire depot into /opt/hpws
B. Move it to the desired location by typing:
/opt/hpws/util/altroot.sh /opt/hpws /path_to_hpws
For help with this script type:
/opt/hpws/util/altroot.sh -h
Note: Prior to running this script, ensure that none of processes (like Apache, Tomcat, Webmin, Stunnel, rotatelogs, logresolv) are running.
C. Set shared library path.
Some Apache binaries such as htpasswd expect shared libraries to be in standard locations. To run them you will need to set the SHLIB_PATH.
Edit the file:
/path_to_hpws/apache/bin/apachectl
Replace all occurrences of:
/opt/hpws
With:
/path_to_hpws
Manual method
A. Install the entire depot in /opt/hpws
B. Move it to the desired location
cp -pr /opt/hpws /path_to_hpws
C. Set shared library path:
Some Apache binaries such as htpasswd expect shared libraries to be in standard locations. To run them you will need to set SHLIB_PATH in your environment.Also ensure that your automatic scripts (like /path_to_hpws/apache/bin/apachectl) are set right. All the occurences of /opt/hpws should have been replaced with /path_to_hpws
D. In start/stop control file:
/path_to_hpws/apache/bin/apachectl
Replace all occurrences of:
/opt/hpws
With:
/path_to_hpws
And define HTTPD with a different server root:
HTTPD="/path_to_hpws/apache/bin/httpd -d /path_to_hpws"
For example without this step Apache will try to access the old
/opt/hpws/apache/logs directory
E. In automatic startup file:
/etc/rc.config.d/hpws_apacheconf
Replace:
HPWS_APACHE_HOME=/opt/hpws/apache
With:
HPWS_APACHE_HOME=/path_to_hpws/apache
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2004 05:41 AM - last edited on 09-16-2024 02:08 AM by support_s
09-08-2004 05:41 AM - last edited on 09-16-2024 02:08 AM by support_s
Re: problem with apache's rotatelog
Thanks for the reply. I did follow the instructions on the altroot utility. The path is set correctly in apachectl (alt root changed it for me automatically). I've even sourced the envvars file that sets the SHLIB_PATH env. variable. That's what puzzle's me. I think it must be some environemental thing but can't see what.
Dan
- Tags:
- bios
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2004 07:49 AM
09-08-2004 07:49 AM
Re: problem with apache's rotatelog
Instead of setting absolute path,:
CustomLog "|/opt/devhpws/apache/bin/rotatelogs /var/logs/foo 86400" combined
Try:
CustomLog "|bin/rotatelogs /var/logs/foo 86400" combined
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2004 01:11 AM
10-01-2004 01:11 AM