How to solve the ClamAV daemon server error in VestaCP

In VestaCP control panel, if you try to configure the ClamAV daemon, you’ll get a 404 error page due to a server error. Let’s see how to fix it.

The moon of the 404 error page in VestaCP control panel
The moon of the 404 error page in VestaCP control panel

404 error page. Can’t configure clamav-daemon

VestaCp is amazing and also opensource, but some times you can crash your eyes on different issues and bugs. One of the most annoying of these is the 404 error page following an attempt to configure the clamav-daemon through the VestaCP control panel.

If you click on the small settings icon to configure the ClamAV daemon, you’ll get nothing more that a black 404 error page in browser with a scary moon. To solve this, we need to make a simple symbolic link.

The issue is due to the fact that the /usr/local/vesta/web/edit/server/clamav-daemon/ folder is missing and you can found only a /clamd  folder in the ‘server’ directory.

So, to solve the problem, we need to ssh to our server and to do this:

$ cd /usr/local/vesta/web/edit/server/

$ sudo ln -s clamd clamav-daemon

Now, if you click on the icon to configure ClamAV daemon on VestaCP control panel or go directly to the page https://your-server-ip:8083/edit/server/clamav-daemon/, you will get the correct configuration webpage.

VestaCP – Simple & Clever Hosting Control Panelhttps://vestacp.com/

ClamAV – The open source antivirus enginehttps://www.clamav.net/