APF installation error on VPS : unable to load iptables module (ip_tables), aborting.

While installing APF on your VPS you get the following error : # apf -r apf(28442): {glob} status log not found, created apf(28463): {glob} flushing & zeroing chain policies apf(28463): {glob} firewall offline apf(28500): {glob} activating firewall apf(28551): {glob} unable to load iptables module (ip_tables), aborting. apf(28500): {glob} firewall initalized apf(28500): {glob} !!DEVELOPMENT MODE ENABLED!! […]

error: stat of /var/log/cron failed: No such file or directory

Hi guys… Today I faced a issue with a new VPS installed with EZ template Centos 5.2. I was preparing the VPS with logwatch, apf and other security and got cron error under roots mail. Cron errors shows log errors : /etc/cron.daily/logrotate: error: stat of /var/log/boot.log failed: No such file or directory error: stat of […]

cPanel FAQ for VPS

From: http://www.cpanel.net/docs/whm/FAQ.htm Q: I’m having server problems but the problem is not listed below. What should I do? A: There are two options: You can search the Knowledgebase in WebHost Manager. The is explained in the support part of this manual. You can search the CPanel forums – http://support.cpanel.net/ Q: How do I login to […]

Cpanel disk used incorrect showing unlimited or 0MB

You can fix this by running the script  /scripts/fixquotas is this doesn’t work and you are using Virtuozzo or OpenVZ you will need to set the QUOTAUGIDLIMIT perimeter – this allows the system to allocate user IDs (UID) e.g (openvz) vzctl set 101 –quotaugidlimit 1000 –save then run the scrip “/scripts/fixquotas” and it should all […]

Easy apache error on a VPS – !! Warning (VZ): You are only only guaranteed xx Megabytes of ram! xxx Megabytes is recommended. !!

Easy::Apache v3.2.0 Build 4310 !! Warning (VZ): You are only only guaranteed 224 Megabytes of ram! 512 Megabytes is recommended. !! If you get above memory error on VPS while running easy apache,  You can fix by using following steps. Login in to main VPS and edit the variable OOMGUARPAGES accordingly. OR OpenVZ Users : […]

Easy apache error on a VPS – You are only only allowed to use xx Megabytes of ram! xxx Megabytes is required

Sometimes, you can get the following error on VPS while running easy apache. You can fix by simple following steps. Login in to main VPS and edit the variable PRIVVMPAGES accordingly /scripts/easyapache Use of uninitialized value in pattern match (m//) at /var/cpanel/perl/easy/Cpanel/Easy/Utils.pm line 436. !! Critical Error (VZ): You are only only allowed to use […]

Hotlink protection: How-To prevent people from stealing your files

Create an .htaccess file in your public_html directory with the following code: RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www.)?domain.com.*$ [NC] RewriteRule .(gif|jpg)$ – [F] Where domain.com is your domain.