login: root

Tag Archive: linux

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:

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:

varnish+nginx as backend and real IP

With default config nginx all IP addresses shows as localhost. Here is configuration to show real client IP. Snippet from varnish config:

Snippet from nginx config:

Replace string in all files using sed in linux

Replaces all “OLDSTRING” to “NEWSTRING” in all files

or using find:

%d bloggers like this: