How do I set up logging for cxs ftp and web script upload scanning?

1. Create a log file, for example /var/log/cxs.log, and chmod it 666.

2. Edit the files /etc/cxs/cxsftp.sh and /etc/cxs/cxscgi.sh and add the following to the command line:

--logfile /var/log/cxs.log

If you want to enable logging for all file uploads, including non-suspicious files (this really should only be done during testing), add the option --cleanlog to your command line.

3. To "watch" the logfile while you are testing, run the following command in ssh:

tail -f /var/log/cxs.log

(Replace /var/log/cxs.log with the full path and filename of your own logfile if you are using something different.)

Was this answer helpful?

Related Articles

How do I test whether cxs upload scanning is working correctly?

You will need a cPanel account with a domain you can browse to, to use for testing. Set up cxs...

How do I configure cxs to scan and quarantine suspicious files on ftp upload?

You should be comfortable logging into ssh as root and running Linux commands to follow these...

How do I configure cxs to scan and quarantine suspicious files uploaded through php and cgi scripts using mod_security?

You should be comfortable logging into ssh as root and running Linux commands to follow these...

CXS does not seem to be detecting files uploaded via web scripts. What should I check to find out why it's not working?

1. Check that the alert emails are being sent and received. If you have --mail root in your...

How can i install CXS on my server?

To install cxs on using the Installer Script you must first register your server with us by...