Monitorix

From monitorix.org

The Monitorix Project
Monitorix is a free, open source, lightweight system monitoring tool designed to monitor as many services and system resources as possible. It has been created to be used under production UNIX/Linux servers, but due to its simplicity and small size you may also use it on embedded devices as well.
It mainly consists of two programs; a collector called monitorix, a Perl daemon that it’s started automatically as any other system service, and a CGI called monitorix.cgi.

All of its development was initially created for monitoring Red Hat, Fedora and CentOS Linux systems, so this project was made keeping in mind these type of distributions. Today it runs on different GNU/Linux distributions and even in other UNIX systems, like FreeBSD.

Everytime monitorix is started it reads the configuration file from the path specified in the command line (using the -c option), and once checked, it creates the index.html file that will act as the Monitorix main page.

It also creates a file called $BASE_DIR/cgi-bin/monitorix.conf.path that includes the absolute path of the configuration file. This file will be read by monitorix.cgi to know the exact location of the configuration file. If by any reason monitorix.cgi is unable to locate this file, it will try two possible locations; /etc/monitorix.conf and /usr/local/etc/monitorix.conf. Continue reading “Monitorix”

Disable suhosin for single domain

From linuxgo.net

Disable suhosin via php.ini

1. Login in server as root
2. copy main php.ini in users document root
cp /usr/local/lib/php.ini /home/username/public_html
3. Open php.ini using any editor

vi php.ini

[suhosin] ; Misc Options
suhosin.simulation = On [On is for disable suhosin and off means enabled]

4. Save the file and exit

Disable suhosin using .htaccess

1. create .htaccess file under /home/username/public_html

and add this line

php_flag suhosin.simulation On

save and exit the editor.

If server is suphp enabled

enter following code in .htaccess


deny from all

suPHP_ConfigPath /home/username

Save the file and exit. After that restart apache and suhosin will be disabled for this account.