login: root

Tag Archive: centos

Openvpn centos 6.4 x64 with certificates

Renewed POST with new info, as openvpn package changed, not everything in old tutorial is true now :) This tutorial is based by old one Default centos repositoryt doesn’t have openvpn package, so lets add epel repository first. I downloaded it from this mirror here.

(link may be different depending on latest release version, currently file is epel-release-6-8.noarch.rpm) After that, You can install openvpn and easy-rsa packages:

bandwidth monitoring script for nagios (CentOS) – bw_watch.sh

Bash script for nagios, that monitors bandwidth usage on remote host. # usage ./bw_watch bw_warning bw_critical pkt_warning pkt_critical It takes momentary 5 secs average bandwidth from “vnstat”, and returns value for nagios. bc and vnstat packages at host side are necessary. bc package should be in default centos repository, vnstat and nrpe You can find in EPEL repo. Script itself, that You have to put to nagios plugins directory. In my case it was: /usr/lib64/nagios/plugins/ Script bw_watch.sh has to be in server that has to be checked. Download link

Download link On host, that has to be checked, you have to add to nrpe.conf (usually /etc/nagios/nrpe.cfg)

restart nrpe

nagios command definition at monitoring server (usually commands.cfg):

define service at monitoring server (where monitored host configuration is located): Parameters are: bandwidth_warning, bandwidth_critical, packets_warning, packets_critical Bandwidth is metered in kbits/s.

And reload nagios configuration

Insipration source:… Read more >

[warn] [client 123.123.123.123] mod_fcgid: stderr: PHP Warning: POST Content-Length of 12430806 bytes exceeds the limit of 10485760 bytes in Unknown on line 0, referer: http://www.yoursite.tld/index.php?phpparams

You can get this error if You are uploading file via post parameters, and it’s bigger than allowed size.

In php.ini file You should set bigger limits.

and reload apache

Wrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper cannot be accessed: (2)No such file or directory

If You got messed up with PHP in CentOS with plesk 10.4, You might get such error:

Small fix to make it work:

Centos wordpress php-fpm + nginx + apc

If you tired of having same old apache, and want something more fast and reliable, you can install nginx + php-fpm. Firstly you need to install new repo, to have ability to add those packages. And php-fpm works out of the box (without need to patch PHP) with version PHP 5.3. Official repository does not have this version yet.

Close
%d bloggers like this: