Temp partition remount
umount /tmp umount /var/tmp dd if=/dev/zero of=/usr/tmpDSK bs=1024 count=512000 mkfs.ext3 /usr/tmpDSK press 'y' to continue mount -o loop,rw,noexec,nosuid [...]
CDP Authentication error
/etc/buagent/agent_config # whether control panel user authentication is enabled (default: no) UserAuthEnabled yes
Script to change blackhole to fail for all accounts
#! /bin/bash grep -rl ':blackhole:' /etc/valiases/ >> blackhole_files for i in `cat blackhole_files` do grep -v ':blackhole:' $i [...]
Password Protect a Directory
1. Create a .htaccess file AuthName "Secure Area" AuthType Basic AuthUserFile /path/to/your/directory/.htpasswd require valid-user 2. Create a .htpasswd [...]
Install ASP
How To: Install ASP (Apache::ASP) on CPanel Login to your server via SSH as root. (If you disabled [...]
Invalid command .BytesLog., perhaps mis-spelled or defined by a module not included in the server configuration
The problem with this kind of symptom is most likely due to the cause that the mod_belimited.so, mod_log_bytes.so, [...]
php5 in litespeed
AddHandler php5-script htm html php
php5 in apache
Add the follwing in .htaccessfile AddHandler application/x-httpd-php5 .php
cpanel backup script
cat /etc/trueuserdomains | awk -F: '{print $2}' > /root/users for i in `cat /root/users`;do /scripts/pkgacct $i; scp /home/cpmove-$i.tar.gz [...]
LiteSpeed with cPanel/WHM
You will get many benefits by replacing Apache with LSWS, web pages get loaded faster, server load is [...]
Script to create multiple accounts
#! /bin/bash make a file (test1) which contains domain names, username and password. then run the script: for [...]
Server Securing
Securing Your Server Below given are some of the steps that can be used to secure your server. [...]
Apache Optimization
MaxClients ————— The number of worker processes is limited by the parameter MaxClients. MaxClients = Total RAM dedicated [...]
HyperVM
Master configuration Run the script from /root -------------------------------------------------------------- #!/bin/sh if ! [ -f /usr/bin/yum ] ; then echo [...]
Open VZ installation
With reference : http://wiki.openvz.org Requirements This guide assumes you are running recent release of Fedora Core (like FC5) [...]
Installing RV Sitebuilder
Installing RVSiteBuilder: # cd /usr/local/cpanel/whostmgr/docroot/cgi/ # rm -f rvsitebuilderinstaller.tar # wget http://download.rvglobalsoft.com/rvsitebuilderinstaller.tar # tar -xvf rvsitebuilderinstaller.tar # chmod [...]
DNS caching poisioning
BIND 9 Vulnerability And Solution - Patch BIND To Avoid Cache Poisoning (Fedora/CentOS) I am pretty sure most [...]
Mount /tmp
umount /tmp umount /var/tmp dd if=/dev/zero of=/usr/tmpDSK bs=1024 count=512000 mkfs.ext3 /usr/tmpDSK press 'y' to continue mount -o loop,rw,noexec,nosuid [...]
Script : Blackhole
#! /bin/bash grep -rl ':blackhole:' /etc/valiases/ >> blackhole_files for i in `cat blackhole_files` do grep -v ':blackhole:' $i [...]
Fantastico RV
cd /usr/local/cpanel/whostmgr/docroot/cgi wget -N http://www.netenberg.com/files/free/fantastico_whm_admin.tgz tar -xzpf fantastico_whm_admin.tgz rm -rf fantastico_whm_admin.tgz mkdir /root/rvadmin; cd /root/rvadmin; wget http://download.rvglobalsoft.com/download.php/download/rvskin-auto/saveto/rvauto. tar.bz2; [...]
FTP : Passive not listing
modprob ip_conntack_ftp add ip_conntack_ftp to /etc/sysconfig/iptables-config
Horde : loops back to login page
mysql mysql> use horde; mysql> drop table horde_sessionhandler; mysql> CREATE TABLE horde_sessionhandler ( session_id VARCHAR(32) NOT NULL, session_lastmodified [...]
IonCube Loader Install
There will be a time when you need IonCube loader in order to run PHP scripts encoded with [...]
Starting APF:Unable to load iptables module (ipt_state), aborting.
Just enable the no kernel option in /etc/apf/conf.apf It should be like this: SET_MONOKERN="1" Save and then restart [...]
Script for cropping down the domlogs
#!/bin/bash for domain in /usr/local/apache/domlogs/*; do # Find the domain having more than 100 Mb log file size [...]