CXS installation in directadmin Print

  • 0

Installation CXS in Direct Admin

For this we need install clamay anti virus

1- cd /usr/local/directadmin/custombuild

./bulid set clamay  yes

./bulid clamay

after that please edit

2-vi /etc/clamd..conf

and make change according to this

# Path to a local socket file the daemon will listen on.

# Default: disabled (must be specified by a user)

LocalSocket /run/clamd.socket

# Sets the group ownership on the unix socket.

# Default: disabled (the primary group of the user running clamd)

LocalSocketGroup clamav

# Sets the permissions on the unix socket to the specified mode.

# Default: disabled (socket is world accessible)

LocalSocketMode 660

 

# Remove stale socket after unclean shutdown.

# Default: yes

 

FixStaleSocket yes

 

after that restart clamd

for centos 7

3-systemctl restart clamd

After that 

4- yum install sqlite perl-DBI perl-DBD-SQLite perl-Archive-Tar perl-IO-Zlib perl-Archive-Zip perl-libwww-perl perl-Compress-Zlib perl-LWP-Protocol-https perl-Linux-Inotify2 -y 

 

some time it is not working

Then

yum clean all

yum install epel-release

 

yum install -y perl-Archive-Tar perl-IO-Zlib perl-Archive-Zip perl-Linux-Inotify2

 

5- wget https://download.configserver.com/cxsinstaller.tgz

tar -xzf cxsinstaller.tgz

perl cxsinstaller.pl

rm -fv cxsinstaller.*

echo clamdsock=/run/clamd.socket >> /etc/cxs/cxs.defaults

Now It is available in Direct admin

   

 

 


Was this answer helpful?

« Back

Powered by WHMCompleteSolution


["\r\n