View previous topic :: View next topic |
Author |
Message |
coaaltd
Joined: 11 Nov 2009 Posts: 6
|
Posted: Thu Feb 18, 2010 2:54 am Post subject: Apache Log size issue |
|
|
How to clean or separate the error log file in C:\Program Files\FirstSpot\www\apache\logs
I just got a 200G error log file in two month, and 200M access log. |
|
Back to top |
|
|
alan Forum facilitator
Joined: 26 Sep 2003 Posts: 4435
|
Posted: Thu Feb 18, 2010 3:39 am Post subject: |
|
|
Are you using the latest v6.0.5? This version should at least reduce the size of the log significantly. _________________ ~ Patronsoft Limited ~ |
|
Back to top |
|
|
coaaltd
Joined: 11 Nov 2009 Posts: 6
|
Posted: Thu Feb 18, 2010 4:21 am Post subject: |
|
|
yes i have upgraded to 6.0.5 three weeks ago. |
|
Back to top |
|
|
alan Forum facilitator
Joined: 26 Sep 2003 Posts: 4435
|
Posted: Thu Feb 18, 2010 4:36 am Post subject: |
|
|
Can you post a segment of your error.log that shows the kind of error you are getting? We want to see what kind of Apache error you are getting. _________________ ~ Patronsoft Limited ~ |
|
Back to top |
|
|
coaaltd
Joined: 11 Nov 2009 Posts: 6
|
Posted: Thu Feb 18, 2010 9:36 am Post subject: |
|
|
Sorry, I cant open the error log file, the file size is too large. |
|
Back to top |
|
|
alan Forum facilitator
Joined: 26 Sep 2003 Posts: 4435
|
Posted: Thu Feb 18, 2010 9:43 am Post subject: |
|
|
Try to use editor like Notepad++ to open it. _________________ ~ Patronsoft Limited ~ |
|
Back to top |
|
|
alan Forum facilitator
Joined: 26 Sep 2003 Posts: 4435
|
Posted: Fri Feb 19, 2010 3:10 am Post subject: |
|
|
Can you also post your httpd-fsvhosts.conf file under FirstSpot\www\apache\conf directory? _________________ ~ Patronsoft Limited ~ |
|
Back to top |
|
|
coaaltd
Joined: 11 Nov 2009 Posts: 6
|
Posted: Mon Feb 22, 2010 1:53 am Post subject: |
|
|
# Firstspot Virtual Hosts Setting - Please do not modify
###########################################
### Virtual Hosts ###
###########################################
# Change error log level
LogLevel crit
# Defines environment variables
SetEnvIf Request_URI "\.$" vhlog
UseCanonicalName Off
#Administration port
Listen 5787
#Authentication port
Listen 5788
<VirtualHost>
# VirtualHost access logfiles
CustomLog "logs/accessvh.log" common env=vhlog
ServerAdmin firstspot@patronsoft.com
ServerName 127.0.0.1:80
DocumentRoot "C:/Program Files/FirstSpot/firstspotdemo"
<IfModule>
DirectoryIndex index.html
</IfModule>
</VirtualHost>
<VirtualHost>
# VirtualHost access logfiles
CustomLog "logs/accessvh.log" common env=vhlog
ServerAdmin firstspot@patronsoft.com
ServerName 10.1.0.1:80
DocumentRoot "C:/Program Files/FirstSpot/authserv"
# RewriteEngine on
# RewriteCond %(REQUEST_FILENAME) !-F
# RewriteRule ^/(.+) /firstspot.php
# Disable directory listing
<Directory>
Options -Indexes
</Directory>
<IfModule>
DirectoryIndex firstspot.php
</IfModule>
</VirtualHost>
# demo page (no Internet connection)
<VirtualHost>
# VirtualHost access logfiles
CustomLog "logs/accessvh.log" common env=vhlog
ServerAdmin firstspot@patronsoft.com
ServerName 10.2.0.2:80
DocumentRoot "C:/Program Files/FirstSpot/firstspotdemo"
# Disable directory listing
<Directory>
Options -Indexes
</Directory>
<IfModule>
DirectoryIndex index.html
</IfModule>
</VirtualHost>
# cfgmgr (localhost)
<VirtualHost>
# VirtualHost access logfiles
CustomLog "logs/accessvh.log" common env=vhlog
ServerAdmin firstspot@patronsoft.com
ServerName 127.0.0.1:5787
DocumentRoot "C:/Program Files/FirstSpot/cfgmgr"
<IfModule>
DirectoryIndex setlogin.php
</IfModule>
</VirtualHost>
# cfgmgr (private)
<VirtualHost>
# VirtualHost access logfiles
CustomLog "logs/accessvh.log" common env=vhlog
ServerAdmin firstspot@patronsoft.com
ServerName 10.1.0.1:5787
DocumentRoot "C:/Program Files/FirstSpot/cfgmgr"
# Disable directory listing
<Directory>
Options -Indexes
</Directory>
<IfModule>
DirectoryIndex setlogin.php
</IfModule>
<Files> Order Deny,Allow
Deny from all
# Allow from 10.1.0.0/255.255.0.0
</Files>
</VirtualHost>
# cfgmgr (public)
<VirtualHost>
# VirtualHost access logfiles
CustomLog "logs/accessvh.log" common env=vhlog
ServerAdmin firstspot@patronsoft.com
ServerName 10.2.0.2:5787
DocumentRoot "C:/Program Files/FirstSpot/cfgmgr"
# Disable directory listing
<Directory>
Options -Indexes
</Directory>
<IfModule>
DirectoryIndex setlogin.php
</IfModule>
<Files> Order Allow,Deny
Deny from all
# Deny from 10.1.0.0/255.255.0.0
</Files>
</VirtualHost>
# authserv (localhost)
<VirtualHost>
# VirtualHost access logfiles
CustomLog "logs/accessvh.log" common env=vhlog
ServerAdmin firstspot@patronsoft.com
ServerName 127.0.0.1:5788
DocumentRoot "C:/Program Files/FirstSpot/authserv"
<IfModule>
DirectoryIndex login_form.php
</IfModule>
</VirtualHost>
# authserv (private)
<VirtualHost>
# VirtualHost access logfiles
CustomLog "logs/accessvh.log" common env=vhlog
ServerAdmin firstspot@patronsoft.com
ServerName 10.1.0.1:5788
DocumentRoot "C:/Program Files/FirstSpot/authserv"
# Disable directory listing
<Directory>
Options -Indexes
</Directory>
<IfModule>
DirectoryIndex login_form.php
</IfModule>
</VirtualHost>
###########################################
### SSL sites ###
###########################################
# SSL well-known port
#Listen 443
# port to redirect ssl request client when user is not authenticate
Listen 5790
# see http://www.modssl.org/docs/2.8/ssl_reference.html for more info
SSLMutex default
SSLSessionCache none
#<IfModule>
# # rewrite environment
# RewriteEngine on
# RewriteLog conf/http-https.log
# RewriteLogLevel 1
#
# # redirect http to https
# # If you don't try to access https, then redirect to https
# RewriteCond %{SERVER_NAME} !127.0.0.1
# RewriteCond %{SERVER_PORT} ^5788$
# RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [L,R,NE]
#</IfModule>
#
#
#<VirtualHost>
# VirtualHost access logfiles
# CustomLog "logs/accessvh.log" common env=vhlog
# SSLEngine on
# SSLCertificateFile conf/my-server.cert
# SSLCertificateKeyFile conf/my-server.key
# SSLCACertificateFile conf/ca.crt
# ServerAdmin firstspot@patronsoft.com
# ServerName 10.1.0.1:443
# DocumentRoot "C:/Program Files/FirstSpot/authserv"
#
# # Disable directory listing
# <Directory>
# Options -Indexes
# </Directory>
#
# <IfModule>
# DirectoryIndex login_form.php
# </IfModule>
#</VirtualHost>
<VirtualHost>
# VirtualHost access logfiles
CustomLog "logs/accessvh.log" common env=vhlog
SSLEngine on
SSLCertificateFile conf/my-server.cert
SSLCertificateKeyFile conf/my-server.key
ServerName 10.1.0.1:5790
# SSL protocol adjustment
BrowserMatch ".*MSIE.*" nokeepalive ssl-unclean-shutdown
RewriteEngine on
RewriteLog conf/https-http.log
RewriteLogLevel 1
# We accept common extensions, URLs ending in '/' and a last word without extension
RewriteCond %{REQUEST_FILENAME} ^(.*)/$ [OR]
RewriteCond %{REQUEST_FILENAME} ^(.*)\.* [NC,OR]
RewriteCond %{REQUEST_FILENAME} ^(.*)/[^\./]+$
RewriteRule ^(.*)$ "http://10.1.0.1:5788/login_form.php?sslpage=https://%{HTTP_HOST}%{REQUEST_URI}?%{QUERY_STRING}" [L,R,NE]
# otherwise, send 'forbidden'
RewriteRule ^(.*)$ - [F]
</VirtualHost>
###########################################
### Payment Gateway ###
###########################################
# Payment Gateway port
Listen 5789
# Payment Gateway (localhost)
<VirtualHost>
# VirtualHost access logfiles
CustomLog "logs/accessvh.log" common env=vhlog
ServerAdmin firstspot@patronsoft.com
ServerName 127.0.0.1:5789
DocumentRoot "C:/Program Files/FirstSpot/local"
<IfModule>
DirectoryIndex index.php
</IfModule>
</VirtualHost>
# Payment Gateway (private)
<VirtualHost>
# VirtualHost access logfiles
CustomLog "logs/accessvh.log" common env=vhlog
ServerAdmin firstspot@patronsoft.com
ServerName 10.1.0.1:5789
DocumentRoot "C:/Program Files/FirstSpot/local"
# Disable directory listing
<Directory>
Options -Indexes
</Directory>
<IfModule>
DirectoryIndex index.php
</IfModule>
</VirtualHost>
# Payment Gateway (public)
<VirtualHost>
# VirtualHost access logfiles
CustomLog "logs/accessvh.log" common env=vhlog
ServerAdmin firstspot@patronsoft.com
ServerName 10.2.0.2:5789
DocumentRoot "C:/Program Files/FirstSpot/local"
# Disable directory listing
<Directory>
Options -Indexes
</Directory>
<IfModule>
DirectoryIndex index.php
</IfModule>
</VirtualHost>
###########################################
### Printspot ###
###########################################
# Printspot port
Listen 5792
Listen 5793
<VirtualHost>
# VirtualHost access logfiles
CustomLog "logs/accessvh.log" common env=vhlog
ServerAdmin firstspot@patronsoft.com
DocumentRoot "C:/Program Files/FirstSpot/local"
# Disable directory listing
<Directory>
Options -Indexes
</Directory>
<IfModule>
DirectoryIndex print_form.php
</IfModule>
</VirtualHost>
<VirtualHost>
# VirtualHost access logfiles
CustomLog "logs/accessvh.log" common env=vhlog
ServerAdmin firstspot@patronsoft.com
DocumentRoot "C:/Program Files/FirstSpot/local"
# Disable directory listing
<Directory>
Options -Indexes
</Directory>
<IfModule>
DirectoryIndex print_notice.php
</IfModule>
</VirtualHost>
###########################################
### Infobox ###
###########################################
# Infobox port
Listen 5795
# Check Client\'s Infobox Alive
<VirtualHost>
# VirtualHost access logfiles
CustomLog "logs/accessvh.log" common env=vhlog
# SSLEngine on
# SSLCertificateFile conf/my-server.cert
# SSLCertificateKeyFile conf/my-server.key
# SSLCACertificateFile conf/ca.crt
ServerAdmin firstspot@patronsoft.com
ServerName 10.1.0.1:5795
DocumentRoot "C:/Program Files/FirstSpot/authserv"
# Disable directory listing
<Directory>
Options -Indexes
</Directory>
<IfModule>
DirectoryIndex info.php
</IfModule>
# Only Allow infobox php to use this port
<Files> Order Allow,Deny
Deny from all
</Files>
<FilesMatch> Order Allow,Deny
Allow from ALL
</FilesMatch>
</VirtualHost>
###########################################
### Client Blacklist Notification ###
###########################################
# Blocked redirect port
Listen 5797
# Blocked redirect page
<VirtualHost>
# VirtualHost access logfiles
CustomLog "logs/accessvh.log" common env=vhlog
ServerAdmin firstspot@patronsoft.com
ServerName 10.1.0.1:5797
DocumentRoot "C:/Program Files/FirstSpot/authserv"
# Disable directory listing
<Directory>
Options -Indexes
</Directory>
<IfModule>
DirectoryIndex blocked_notice.php?bClient=1
</IfModule>
# Only allow the notice page to use this port
<Files> Order Allow,Deny
Deny from all
</Files>
<Files> Order Allow,Deny
Allow from ALL
</Files>
</VirtualHost>
#################################################
###PayPal Website Payments Pro(Direct Payment)###
#################################################
Listen 5798
<VirtualHost>
# VirtualHost access logfiles
CustomLog "logs/accessvh.log" common env=vhlog
SSLEngine on
SSLCertificateFile conf/my-server.cert
SSLCertificateKeyFile conf/my-server.key
SSLCACertificateFile conf/ca.crt
ServerAdmin firstspot@patronsoft.com
ServerName 10.1.0.1:5798
DocumentRoot "C:/Program Files/FirstSpot/ppal_pro"
<IfModule>
DirectoryIndex direct_payment.php
</IfModule>
<Files> Order Allow,Deny
Deny from all
</Files>
#allow users to access only direct_payment.php, css and image files
<FilesMatch> Order Allow,Deny
Allow from all
</FilesMatch>
</VirtualHost>
#################################################
### Load Balancing ###
#################################################
#Listen 5799
## Configuration Manager [Status tab] through php to get user data which is logged in from other load balancing machine
#<VirtualHost>
# VirtualHost access logfiles
# CustomLog "logs/accessvh.log" common env=vhlog
# ServerAdmin firstspot@patronsoft.com
# ServerName 10.2.0.2:5799
# DocumentRoot "C:/Program Files/FirstSpot/cfgmgr"
#
# # Disable directory listing
# <Directory>
# Options -Indexes
# </Directory>
#
# # Only Allow queryUserStatus.php to use this port
# <Files> Order Allow,Deny
# Deny from all
# </Files>
#
# <FilesMatch> Order Allow,Deny
# Allow from ALL
# </FilesMatch>
#</VirtualHost>
###########################################
### IP Block List Notification ###
###########################################
# Blocked redirect port
Listen 5803
# Blocked redirect page
<VirtualHost>
# VirtualHost access logfiles
CustomLog "logs/accessvh.log" common env=vhlog
ServerAdmin firstspot@patronsoft.com
ServerName 10.1.0.1:5803
DocumentRoot "C:/Program Files/FirstSpot/authserv"
# Disable directory listing
<Directory>
Options -Indexes
</Directory>
<IfModule>
DirectoryIndex blocked_notice.php?bClient=0
</IfModule>
# Only allow the notice page to use this port
<Files> Order Allow,Deny
Deny from all
</Files>
<Files> Order Allow,Deny
Allow from ALL
</Files>
</VirtualHost>
### workaround for Apache bug #41321 for more info about how the getpeername() function doesn't work on Windows 2000 if AcceptEx() is used ###
#Win32DisableAcceptEx
# Default Server Name (By default variable of ServerName is not set in httpd.conf )
ServerName localhost |
|
Back to top |
|
|
coaaltd
Joined: 11 Nov 2009 Posts: 6
|
Posted: Mon Feb 22, 2010 2:05 am Post subject: |
|
|
I cant open the 200G error log file by using Notepad++. Please advice |
|
Back to top |
|
|
alan Forum facilitator
Joined: 26 Sep 2003 Posts: 4435
|
Posted: Mon Feb 22, 2010 9:59 am Post subject: |
|
|
Please:
1) stop Apache service
2) delete the big error.log file
3) start Apache service
4) monitor the error.log file. If you see any repeated errors, please post it here _________________ ~ Patronsoft Limited ~ |
|
Back to top |
|
|
coaaltd
Joined: 11 Nov 2009 Posts: 6
|
Posted: Tue Feb 23, 2010 1:12 am Post subject: |
|
|
[Tue Feb 23 07:01:51 2010] [warn] pid file C:/Program Files/FirstSpot/www/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Tue Feb 23 07:01:51 2010] [notice] Apache/2.2.11 (Win32) mod_ssl/2.2.11 OpenSSL/0.9.8i PHP/5.2.9-2 configured -- resuming normal operations
[Tue Feb 23 07:01:51 2010] [notice] Server built: Dec 10 2008 00:10:06
[Tue Feb 23 07:01:51 2010] [notice] Parent: Created child process 412
[Tue Feb 23 07:01:51 2010] [notice] Child 412: Child process is running
[Tue Feb 23 07:01:51 2010] [notice] Child 412: Acquired the start mutex.
[Tue Feb 23 07:01:51 2010] [notice] Child 412: Starting 64 worker threads.
[Tue Feb 23 07:01:51 2010] [notice] Child 412: Starting thread to listen on port 5803.
[Tue Feb 23 07:01:51 2010] [notice] Child 412: Starting thread to listen on port 5798.
[Tue Feb 23 07:01:51 2010] [notice] Child 412: Starting thread to listen on port 5797.
[Tue Feb 23 07:01:51 2010] [notice] Child 412: Starting thread to listen on port 5795.
[Tue Feb 23 07:01:51 2010] [notice] Child 412: Starting thread to listen on port 5793.
[Tue Feb 23 07:01:51 2010] [notice] Child 412: Starting thread to listen on port 5792.
[Tue Feb 23 07:01:51 2010] [notice] Child 412: Starting thread to listen on port 5790.
[Tue Feb 23 07:01:51 2010] [notice] Child 412: Starting thread to listen on port 5787.
[Tue Feb 23 07:01:51 2010] [notice] Child 412: Starting thread to listen on port 5788.
[Tue Feb 23 07:01:51 2010] [notice] Child 412: Starting thread to listen on port 5789.
[Tue Feb 23 07:01:51 2010] [notice] Child 412: Starting thread to listen on port 80.
The Apache2.2 service is restarting.
The Apache2.2 service has restarted.
arent: Received restart signal -- Restarting the server.
[Tue Feb 23 07:02:07 2010] [notice] Child 412: Exit event signaled. Child process is ending.
[Tue Feb 23 07:02:07 2010] [notice] Apache/2.2.11 (Win32) mod_ssl/2.2.11 OpenSSL/0.9.8i PHP/5.2.9-2 configured -- resuming normal operations
[Tue Feb 23 07:02:07 2010] [notice] Server built: Dec 10 2008 00:10:06
[Tue Feb 23 07:02:07 2010] [notice] Parent: Created child process 2556
[Tue Feb 23 07:02:07 2010] [notice] Child 2556: Child process is running
[Tue Feb 23 07:02:08 2010] [notice] Child 2556: Acquired the start mutex.
[Tue Feb 23 07:02:08 2010] [notice] Child 412: Released the start mutex
[Tue Feb 23 07:02:08 2010] [notice] Child 2556: Starting 64 worker threads.
[Tue Feb 23 07:02:09 2010] [notice] Child 412: All worker threads have exited.
[Tue Feb 23 07:02:09 2010] [notice] Child 2556: Starting thread to listen on port 5798.
[Tue Feb 23 07:02:09 2010] [notice] Child 2556: Starting thread to listen on port 5795.
[Tue Feb 23 07:02:09 2010] [notice] Child 2556: Starting thread to listen on port 5792.
[Tue Feb 23 07:02:09 2010] [notice] Child 2556: Starting thread to listen on port 5790.
[Tue Feb 23 07:02:09 2010] [notice] Child 2556: Starting thread to listen on port 5787.
[Tue Feb 23 07:02:09 2010] [notice] Child 2556: Starting thread to listen on port 5803.
[Tue Feb 23 07:02:09 2010] [notice] Child 2556: Starting thread to listen on port 5797.
[Tue Feb 23 07:02:09 2010] [notice] Child 412: Child process is exiting
[Tue Feb 23 07:02:09 2010] [notice] Child 2556: Starting thread to listen on port 5793.
[Tue Feb 23 07:02:09 2010] [notice] Child 2556: Starting thread to listen on port 5789.
[Tue Feb 23 07:02:09 2010] [notice] Child 2556: Starting thread to listen on port 5788.
[Tue Feb 23 07:02:09 2010] [notice] Child 2556: Starting thread to listen on port 80. |
|
Back to top |
|
|
alan Forum facilitator
Joined: 26 Sep 2003 Posts: 4435
|
Posted: Tue Feb 23, 2010 5:43 am Post subject: |
|
|
Most likely your big error.log is generated pre-v6.0.5 (i.e. before you upgrade). We reduce the Apache error reporting in v6.0.5. So just keep monitoring the situation and post any abnormal error if your log files still grow very big. _________________ ~ Patronsoft Limited ~ |
|
Back to top |
|
|
|