OpenVPN for CSF
My openvpn config was not working with CSF , so i found the below rules to be applied works like a charm. I have both PPTP and OpenVPN working on the same machine iptables -A INPUT -i eth0 -p tcp --dport 1723 -j ACCEPT iptables -A INPUT -i eth0 -p…
How to install zendOpCache and APC in VestaCP , Centos
short way from CenOS APCif php -v CODE: SELECT ALL php -v return version 5.4 yum install --enablerepo=remi php-pecl-apc php-pecl-memcache memcached libmemcached -y  _________________________ php -v return version 5.3 yum install php-pecl-apc…
mysqldump error: Table doesn’t exist status: Operation failed – Solution
ErrorWhen running mysqldump to back up a database, you get this error: mysqldump: Got error: 1146: Table 'db_name.table_name' doesn't exist when using LOCK TABLES This error can be for any number of reasons. I’ve ran into this because /var…
Unblock youtube/facebook etc!
No need to run a proxy or some other annoying trick.. If you wish to know how to unblock youtube or any other website just read below Just goto :Â http://bypass.germanystudy.net/ OR http://bypass.travelpakistan.org/ Write…
How to install APC (Alternative PHP Cache) for VestaCP , Centos 6.5
1) yum --enablerepo=remi install php-pear php-devel httpd-devel pcre-devel gcc make I already had some packages installed so it wasnt a problem. I use vesta cP uses new php http so if you use simple yum it will give dependency errors , change it if you…
Setting up VestaCP DKIM SPIF and rDNS for Google to accept emails
]# lsof -Pni | grep exim before exim 2441 exim 3u IPv6 625492738 0t0 TCP *:25 (LISTEN) exim 2441 exim 4u IPv4 625492739 0t0 TCP *:25 (LISTEN) exim 2441 exim 5u IPv6 625492740 0t0 TCP *:465 (LISTEN) exim 2441 exim 6u IPv4 625492741 0t0 TCP *:465 (LISTEN)…
Running PPTP VPN with CSF firewall
most of the time pptp vpn doesnt work with csf firewall. Here is the guide to make it working. 1) type the following command: nano /etc/csf/csfpre.sh 2) Put the following into the file: for openvz iptables -A INPUT -i venet0 -p tcp --dport 1723 -j ACCEPT…
Most useful 50 Linux Commands
1. tar command examples Create a new tar archive. $ tar cvf archive_name.tar dirname/ Extract from an existing tar archive. $ tar xvf archive_name.tar View an existing tar archive. $ tar tvf archive_name.tar 2. grep command examples Search for a…
How to Copy Files Across a Network/Internet in UNIX/LINUX (Redhat, Debian, FreeBSD, etc) – scp tar rsync
How to Copy Files Across a Network/Internet in UNIX/LINUX (Redhat, Debian, FreeBSD, etc) – scp tar rsync One of the many advantages of Linux/UNIX is how many ways you can do one thing. This tuturial is going to show you some of the many ways you…