2
For some reason i don't understand, after creating a new virtual host / domain in Plesk a few months back, i cannot seem to find the access log.
I noticed this when running
/usr/local/psa/admin/sbin/statistics
The host in question is being scanned
Main HTML page is 'awstats.<hostname_masked>-http.html'.
Create/Update database for config "/opt/psa/etc/awstats/awstats.<hostname_masked>.com-https.conf" by AWStats version 6.95 (build 1.943)
From data in log file "-"...
Phase 1 : First bypass old records, searching new record...
Searching new records from beginning of log file...
Jumped lines in file: 0
Parsed lines in file: 0
Found 0 dropped records,
Found 0 corrupted records,
Found 0 old records,
Found 0 new qualified records.
So basically no access logs have been parsed/found. I then went on to check if i could find the log myself.
I looked in
/var/www/vhosts/<hostname_masked>.com/statistics/logs
but all i find is
error_log
Does anybody know what is wrong here and perhaps how i could fix this?
Note: in the
<hostname_masked>.com/conf/
folder i keep a custom vhost.conf file, which however contains only some rewrite conditions plus a directory statement that contains php_admin_flag and php_admin_value settings. None of them are related to logging though.
For my Plesk 12 I found the log file from checking the
/var/www/vhosts/<hostname_masked>.com/conf/httpd.conf
which pointed at/var/www/vhosts/system/<hostname_masked>/logs/error_log
– icc97 – 2015-04-18T00:37:36.6671Thanks for your answer. The site has visitors, definitely - its a shop and many orders have come in. I cannot find a last_httpd.include. The error log works just fine. Your hint for /var/log/httpd/access_log was pretty good as i was able to find access logs in /var/log/apache2/ but there are multiple tar.gz archives in there and its quite a mess. Using |grep i was able to find <hostname_masked> in what cat * had returned in that folder, but i have no idea how to get all the data from the last few months. I wonder why Plesk is not saving those logs to the actual vhosts log dir :( – Cummander Checkov – 2012-10-03T14:08:01.880
May be you need to call support. Normally access_log should be in vhost directory. – Sergey L – 2012-10-05T05:23:43.243