1

Topic: Uninstall Awstat and Its DB

==== Required information ====
- iRedMail version: 0.8.3
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Ubuntu 12.04
- Related log if you're reporting an issue:
====

Want to get rid of awstat and its db (if any) altogether. I don't need it.

Thanks in advance

2

Re: Uninstall Awstat and Its DB

- remove Awstats with apt-get
- remove cron jobs of user amavis

Also, you can choose not to install it during iRedMail installation.

3

Re: Uninstall Awstat and Its DB

Hi Zhang,

Uninstalled and removed the directory of awstats too. Now if I try to access https://myurl/awstats/ it says.

Forbidden
You don't have permission to access /awstats/ on this server.

Shouldn't it be a 404 page ? May be I am missing to delete some directory.


In /etc/cron.d, this is whats its showing. Should I delete this file altogether or just its contents ?

# m h dom mon dow user  command
18 */3  * * *   amavis  test -e /usr/sbin/amavisd-new-cronjob && /usr/sbin/amav$

Thanks for the help.

4

Re: Uninstall Awstat and Its DB

Uninstalled and removed the directory of awstats too. Now if I try to access https://myurl/awstats/ it says.
Forbidden
You don't have permission to access /awstats/ on this server.
Shouldn't it be a 404 page ? May be I am missing to delete some directory.

Fixed it by commenting all traces of aliases belonging to awstats at /etc/apache2/sites-available/default-ssl and then restarting apache2

Please help with what you mentioned about removing from cron earlier.

Thanks a ton.

5

Re: Uninstall Awstat and Its DB

Oops, my mistake. Not remove cron job of user amavis. It's my typo error, i'm so sorry about this.
The cron job used to update Awstats database is defined in cron job of root user. Please check them with command "crontab -e -u root".

sami1255 wrote:

You don't have permission to access /awstats/ on this server.

Please also rename file /etc/apache2/conf.d/awstats.conf to awstats.conf.bak (or remove it), then restart Apache service.