- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Apache2 Log Rotation not working
Operating System - HP-UX
1822143
Members
3333
Online
109640
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
Forums
Discussions
юдл
back
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
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО08-22-2003 11:29 AM
тАО08-22-2003 11:29 AM
I am running Apache 2.0.45 on HP-UX 11.11.
I am trying to implement log rotation with the
following directives (disregard line wrapping):
ErrorLog "|/opt/hpws/apache/bin/rotatelogs logs/error_log 86400"
CustomLog "|/opt/hpws/apache/bin/rotatelogs logs/access_log 86400" common
The web server starts but no logs are created. If I use the simpler:
ErrorLog logs/error_log
CustomLog logs/access_log common
then logs are created as expected. How can I get log rotation to work and actually create logs?
I am trying to implement log rotation with the
following directives (disregard line wrapping):
ErrorLog "|/opt/hpws/apache/bin/rotatelogs logs/error_log 86400"
CustomLog "|/opt/hpws/apache/bin/rotatelogs logs/access_log 86400" common
The web server starts but no logs are created. If I use the simpler:
ErrorLog logs/error_log
CustomLog logs/access_log common
then logs are created as expected. How can I get log rotation to work and actually create logs?
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2003 11:52 AM
тАО08-22-2003 11:52 AM
Re: Apache2 Log Rotation not working
Tried to post didn't work due to trouble at this end....
I rotate logs with a cron script. The general flow is thus:
mv access_log /home/logs
mv error_log /home/logs
touch access_log
touch error_log
repeat for all sub-sites/virtual hosts
# restart httpd server
# for hp that is as follows:
/sbin/init.d/hpapache2 stop
/sbin/init.d/hpapache2 start
SEP
I rotate logs with a cron script. The general flow is thus:
mv access_log /home/logs
mv error_log /home/logs
touch access_log
touch error_log
repeat for all sub-sites/virtual hosts
# restart httpd server
# for hp that is as follows:
/sbin/init.d/hpapache2 stop
/sbin/init.d/hpapache2 start
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
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-08-2004 04:29 AM
тАО09-08-2004 04:29 AM
Re: Apache2 Log Rotation not working
Try enable just the access log rotation, using standard error logging & see what shows up in the error_log.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-08-2004 06:12 AM
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP