HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   Awstats update the wrong website (http://www.howtoforge.com/forums/showthread.php?t=62378)

jaypabs 27th June 2013 05:01

Awstats update the wrong website
 
Awstats is updating the wrong website. This is what happened.

I have two websites name mydomain.com and example.com.

mydomain.com has an ID = 1 (i.e. web1) and example.com has an ID = 2 (web2) under ISPConfig 3 Admin panel. But it so happen that I deleted both sites and they have now the following info:

mydomain.com = web2
example.com = web3

But the physical location of both sites did not change.

mydomain.com = /var/www/clients/client1/web1/
example.com = /var/www/clients/client1/web2/

When I noticed this, I manually changed it to using fstab:

mydomain.com = /var/www/clients/client1/web2/
example.com = /var/www/clients/client1/web3/

But the awstats of mydomain.com is still the awstats of example.com.

So, my question is where can I fix this? What configuration I need to touch?

edited:

When I noticed this, I manually changed it: >> When I noticed this, I manually changed it to using fstab:

So, do I need to restart my server?

jaypabs 27th June 2013 08:34

After finding a solution, I found the following anomalies:

example.com have the following symlink:

Under "/var/www/example.com/log/", yesterday-access.log points to:

Quote:

yesterday-access.log -> /var/www/clients/client1/web2/log/20130626-access.log
It should be:

Quote:

yesterday-access.log -> /var/www/clients/client1/web3/log/20130626-access.log
That is, web3 instead of web2.

Same thing what happened also under the "/var/log/ispconfig/httpd/example.com/" log.

yesterday-access.log points to:

Quote:

yesterday-access.log -> /var/www/clients/client1/web2/log/20130626-access.log
It should be:

Quote:

yesterday-access.log -> /var/www/clients/client1/web3/log/20130626-access.log
I tried removing the yesterday-access.log and creating the symlink with the correct path but it reset after few minutes.

Note: mydomain.com works fine.

I also corrected mtab because it points to the wrong path. So may be I need to reboot the server? If this is the cause of the problem, is there a way to reload fstab and mtab without rebooting the server?

Anyone know how to fix this?

jaypabs 27th June 2013 12:36

Any idea please? I'm totally messed up. The stats of mydomain.com is overwritten by example.com.


All times are GMT +2. The time now is 07:53.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.