Plesk 12.x / Linux :: AWStats Not Showing Stat Since Website Is Secured Via SSL
May 4, 2015
I have installed an SSL certificate on my website since last saturday the 1st of May, and forced redirection to https URLs via .htaccess.
Since then, I cannot see any statistics in AWStats. All values stops after the implementation of the certificate. How can I continue to have statistics for my secured web site ?
Using Plesk 12 on a VPS with Ubuntu 12.04 LTS. In the Web Server Settings, if I select "Process PHP by nginx", then the URL "<domain>/plesk-stat/webstat/" is answered by Nginx with "404 Not Found". Having sniffed around, it seems:
/var/www/vhosts/system/VHOST/statistics/webstat is getting statistics gathered.I can't say if they are complete, or even sensible, but things are happening there.The various Alias and other statements required for access to AWStats via Apache are contained in the Apache config file /var/www /vhosts/system/VHOST/conf/last_httpd.conf..But no equivalent statements are generated in /var/www/vhosts/system/VHOST/conf/last_nginx.conf.
I have an issue with Plesk and Awstats not building the html pages for website statistics. Problem is server-wide i.e. it effects all domains.
I've tried to manually run the /usr/local/psa/admin/sbin/statistics with every possible options but all that happens is that awstats calculates new stats to the vhosts /var/www/vhosts/system/domain.tld/statistics/webstat/awstatsMMYYYY.domain.tld-http.txt file.
Nothing is put into the /var/www/vhosts/system/domain.tld/statistics/webstat/YYYY-MM folder which should contain the static html pages.
Example listings:
Code: # ll /var/www/vhosts/system/<domain.tld>/statistics/webstat total 80 drwxr-xr-x 4 root root 4096 Nov 5 10:58 ./ dr-xr-x--- 6 root psaserv 4096 Oct 23 12:36 ../ drwxr-xr-x 2 root root 4096 Oct 23 13:12 2014-10/
[Code] ....
I was able to create the static pages by running Awstats directly:
So things I have already checked: - Awstat paths in /etc/psa/psa.conf are correct - Domain configs are ok as awstat can create the stats data and awstats_buildstaticpages.pl can can create the pages just fine - File permissions are ok
I just cannot figure what the problem is. /usr/local/psa/admin/sbin/statistics doesn't give any errors but on the other hand it doesn't have a debug option either which might be useful.
I followed the following KB to allow country to be identified via GeoIP in AWStats: [URL] .... It works well on one of my domain, but I had to disable first the stats through PLESK Admin, then to reactivate it, so it would regenerate the conf file in /usr/local/psa/etc/awstats/* for a particulair domain. I then followed this KB to re-calculate all stats with country identification: [URL] .... It works as well.
But now: How can I regenerate all the conf file in /usr/local/psa/etc/awstats/* ? Is there any magic command?
I had an hosting account with a copany, recently I migrated to VPS managed by plesk 11.5..I was able to get the awstats database file from the old host, and i have copied them in the /var/www/vhosts/mydomain.com/statistics/webstats/ folder, together with the other database files genereted by the new VPS hosting
Only problem is that plesk only rebuilds everyday the static page for the current month, and I see no way to ask him to build the pages for this past months. Also would be good if he would rebuild the header to have updated the dropdown menu from which to choose the month to dispay..Is it possible to rebuild manually these static pages?
I've installed PHP-FPM into Plesk 12 and it is showing as a running service. However I can't find any way of enabling it per site at all. I'm still just getting the 3 standard PHP options:
Apache module CGI application FastCGI application
The documentation states the option would be available on a per-site basis but it isn't.
unfortunately plesk was upgrading automatically and something goes wrong.The update is successfully installed but now I can't see all the website images...I'm running this plesk version: Plesk version12.0.18 Update #6, last updated at July 1, 2014 03:24 AM...Is there something that can I do for restoring images?
I had an SSL cert that is about to expire so I purchased a new one, installed it, uninstalled the soon to expire cert. Went into Tools and Settings > IP Addresses, and assigned the new certificate to the IP.
Although I deleted the old certificate, it still shows in a browser as well as when I test the domain at a SSL server testing website. The new certificate shows also in both browser and test website, but it is a secondary certificate after the soon-to-expire cert.
I was following this tutorial to resolve the 500 internal error I get when I visit webmail.example.com and it says:
Ensure that the '/var/www' is not a symlink to any other directory# ls -ld /var/www lrwxrwxrwx 1 root root 14 Oct 24 11:14 www -> /mnt/data/www/.You need to remove the symlink and change the vhosts location by using the transvhosts.pl utility: when I run the above command, it gives me this: ls -ld /var/www drwxr-xr-x 9 root root 4096 Jun 18 02:58 /var/www this means I have a symbolic link ? how can I delete it ? and if I delete it will it effect anything?
I upgraded from 10.4.4 to 11.0.9 and saw no errors in the process, everything was fine. However when I checked the sites after, all of them (including sub-domains) were showing the default domain page. All the files are still there no problem, and as a test I deleted a subdomain a recreated it and it worked fine.
I have a feeling it's something to do with IP addresses (I currently have two set up - most sites use one and about only 5 use the other) as going to the subscription and changing the IP address over to the other one then back to the original seems to make the site show up for most sites. I can't do this on all sites though - any commands to reconfigure everything and get it all back in to place?
Domains are simply not showing in the controlpanel. We can see the subscriptions but its empty under the button 'Domains'. Newly created sites as well as migrated sites do not show.
Before we created or migrated a site to the server we changed psa.conf HTTPD_VHOSTS_D /home/httpd/vhosts This is a legacy from our old servers and never has been a problem. I suppose this is not related, but just thought I should mention it.
The second problem with this server is that when we toggle the mailservice in 'Services management' the button reacts but does not change the state of qmail. It just keeps running. What can be wrong with this fresh installation?
I have a problem with webmail (horde). Horde Webmail show the wrong time, 2 hours to late. It look like that horde show the UTC time, but not the CEST "Europe/Berlin" of my server. I can change that over "preferences" -> "global preferences" -> "locale and time" and change "Your current time zone" from "Default" to "Europe/Berlin". This will now show the correct time (timezone), but this is not the solution because this will do all webmail users.
How can i change the default timezone in Horde?
Output from shell
#my timezone and this will show in all things but not in webmail horde [root@www /]# date Fr 11. Jul 17:32:14 CEST 2014
#this time look like the default time in horde [root@www /]# date -u Fr 11. Jul 15:33:31 UTC 2014
Mail Statistic not working, In /var/log/maillog contains below logs:The limit on the number of allowed outgoing messages was exceeded. Try again later.
But on Home > Tools & Settings > Outgoing Mail Control
Attempts to send mail per hour (except the current hour):
Statistics are being calculated.Count statistic not working, it not show any infomation abount mail attempt sending. !When i check ./mailserver -i options
POP3 authorization: off SMTP authorization: on Maximum letter size: 20971520
Relaying: auth Check the passwords in the dictionary: on Enable MAPS spam protection: off MAPS zones: b.barracudacentral.org;zen.spamhaus.org Short POP3/IMAP mail account names: off The maximum number of connections (IMAP, POP3, IMAP over SSL, or POP3 over SSL).: 1024
[code]....
Show the alert on the Home page about attempts to exceed limits based on statistics for the last: P1DSend a notification about attempts to exceed limits on outgoing mail every: PT15M
My plesk 12 is working, but one subscription doest show, or any of the domains.
Doing some digging got to this:
[root@server src]# /usr/local/psa/bin/sw-engine-pleskrun check_db_integrity-beta.php PHP Notice: Undefined variable: PLESK_DB_HOST in /usr/local/src/check_db_integrity-beta.php on line 240 List of records in [psa.domains.cl_id] that miss a matching record in [psa.clients.id] 0 List of records in [psa.dom_level_usrs.dom_id] that miss a matching record in [psa.domains.id] 27, 32, 36, 43, 61, 83, 86
[Code] ....
ERROR: Table "smb_apsImportedResources" is not found in database "psa"! ERROR: Table "smb_apsImportedResources" is not found in database "psa"! List of records in [psa.domains.webspace_id, cl_id WHERE webspace_id<>0] that miss a matching record in [psa.domains.id, cl_id WHERE webspace_id=0] 20:1, 52:1, 52:1, 52:1, 68:1
Bandwidth limitation button not showing in domain control panel
I am running Plesk 12.018 on CentOS 6.5. with ~75 domains hosted. All of them are allowed unlimited traffic and have Apache + Nginx installed and configured via Plesk.
Today I need for the first time to set a bandwidth-limitation for a domain, but I can't find a button for controlling it in the domain control panel.
I've checked I've mod_bw installed and have set the permissions for controlling server performance in the custom plan for the specific domain.
I recently configured a Centos 6.5 server with Java JDK1.8 and the bundled Tomcat server X64 application. I confirmed the web server port is not already in use and also installed the Tomcat APR libraires. The application starts fine and all the logs show no severe errors however when I navigate to te URL I see a blank page. All the configuration files are in tthe correct place and whether I use just :8080 or /licenseserver the page is still blank. If I run the element inspector in the browser it shows 404 file not found.
I am trying to ftp some changes to my site. The strange thing is that while the FTP client (Filezilla) is accepting the new file, it will not show up on the new site. I've tried caching, refreshing browers, and rebooting but nada.
I then went back into my FTP client and checked the timestamp of the file being uploaded. For whatever reason, it will not show the most recent time of the file being uploaded, much less accept the most recent upload.
I've had a problem to get a connection to my websites via https. My Plesk is version 12.0.18 an it runs on ubuntu 14.04 LTS. I have installed the certificate in that way: URL.... The SSL in that repository is activated in the hosting settings. I've activated and deactivated them a several times. The nginx.conf and the httpd.conf seems to be all fine.
SSL Engine is on an certificate statements links to the certificates in /opt/psa/var/certificates/The access_ssl_log an proxy_access_ssl_log had no entries, but /var/log/nginx/error.log said:
2015/05/14 13:29:08 [error] 981#0: *12788 no "ssl_certificate" is defined in server listening on SSL port while SSL handshaking, client: x.x.x.x, serv$ Click to expand...