Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 27th June 2013, 05:01
jaypabs jaypabs is offline
Member
 
Join Date: Jun 2013
Posts: 69
Thanks: 0
Thanked 1 Time in 1 Post
Default 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?

Last edited by jaypabs; 27th June 2013 at 05:09.
Reply With Quote
Sponsored Links
  #2  
Old 27th June 2013, 08:34
jaypabs jaypabs is offline
Member
 
Join Date: Jun 2013
Posts: 69
Thanks: 0
Thanked 1 Time in 1 Post
Default

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?

Last edited by jaypabs; 27th June 2013 at 08:40.
Reply With Quote
  #3  
Old 27th June 2013, 12:36
jaypabs jaypabs is offline
Member
 
Join Date: Jun 2013
Posts: 69
Thanks: 0
Thanked 1 Time in 1 Post
 
Default

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

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Updating and Uploading to Wordpress website on ISPConfig3 - Fedora 13 MrCompTech Tips/Tricks/Mods 8 25th August 2014 15:18
Awstats anytime update 8omas Tips/Tricks/Mods 14 3rd September 2012 21:19
My Centos is terribly slow Galled Server Operation 9 7th December 2010 16:31
Cant update ispconfig and awstats install issue supervos Installation/Configuration 6 4th November 2007 11:12
will Awstats work after Update? luchs3 General 2 7th October 2007 15:10


All times are GMT +2. The time now is 10:55.


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