Bobcares

Remove AWStats Using DirectAdmin in 6 Steps

by | Jun 15, 2024

The article explains about the steps to remove AWStats in DirectAdmin. At Bobcares, with our DirectAdmin Support Services, we can handle your issues.

Removing AWStats Using DirectAdmin CustomBuild Script

Removing AWStats using the DirectAdmin (DA) CustomBuild Script is critical for freeing up server resources and ensuring security. If we are no longer using AWStats, we must delete it. Removing it removes useless software, lessens security threats, and saves server performance. This also makes using the server easier and keeps things clean.

Pre-requisites:

    • DA access with root privileges.
    • Basic understanding of the CLI.

directadmin remove awstats

Steps:

  • Log in to the Server via SSH. Use the root user details to log in.
  • Open the custombuild file in a text editor.
    nano /usr/local/directadmin/custombuild/options.conf
  • Find the line that starts with awstats=. It may look like awstats=1 (enabled) or awstats=0 (disabled by default).
  • Change the value to awstats=0 to disable AWStats.
  • Save the changes to the custombuild file by pressing Ctrl+O, then Enter, and Ctrl+X to exit the editor.
  • Apply the changes by running the custombuild script:

    cd /usr/local/directadmin/custombuild
    ./build update
    ./build awstats

The Script also ensures that the removal process is completed correctly and cleanly. This leaves no useless files or setups that could create issues later on.

Removing AWStats Manually

If we prefer to manually remove, we must follow these steps:

  • Use the package manager to find the specific AWStats package name.
    On CentOS: yum list installed | grep awstats

    On Debian-based systems: dpkg --list | grep awstats

  • Use the package manager to remove the AWStats package.
    On CentOS: sudo yum remove awstats

    On Debian-based systems: sudo apt-get remove awstats

  • Manually find and remove any config files from the system. This may involve searching and deleting files in directories like /etc/awstats/ or /usr/local/awstats/.

The manual removal method can leave behind orphaned settings and is generally not used unless we are familiar with system admin and can ensure that no critical files are inadvertently removed.

[Searching solution for a different question? We’re happy to help.]

Conclusion

To conclude, the article explains about the steps to remove AWStats using DirectAdmin CustomBuild Script.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.