Archive for the ‘Firewall’ Category

How to Allow or Block an IP range from command line in CSF Firewall.

  How to Allow or Block an IP range from command line in CSF Firewall. You can block IP Range csf -d 14.215.176.0/24 csf -d 14.215.0.0/16 You can allow IP Range caf -a 14.215.176.0/24 csf -a 14.215.0.0/16 eLite Server Management  We Specialize In cPanel Server Management Affordable 24/7 Technical Support Company Manage Dedicated Servers

Read More

How to edit PHP.ini file in EasyApache-4

  On systems that run EasyApache 3, the /usr/local/lib/ directory contains your server’s php.ini file. On systems that run EasyApache 4, multiple php.ini and local.ini files manage your system’s PHP.  Each version of PHP on your systems uses its own php.ini and local.ini file. You must make changes to each file separately. Warnings: These settings…

Read More

How to increse /tmp partition size directly without scripts

Firewall 19.2.2015 No Comments

Stop all the service. # /etc/init.d/mysql stop # cp -af /var/tmp /var/tmp.bak # umount /var/tmp # umount /tmp # mv /usr/tmpDSK /usr/tmpDSK_bak Increase /tmp partition size to 2G # dd if=/dev/zero of=/usr/tmpDSK bs=1024 count=2097195 # mkfs /usr/tmpDSK # tune2fs -j /usr/tmpDSK # mount -t ext3 -o nosuid,noexec,loop /usr/tmpDSK /tmp # mount -o bind,noexec,nosuid /tmp /var/tmp…

Read More