Installation: root# cd /usr/src root# wget ‘http://downloads.sourceforge.net/cpulimit/cpulimit-1.1.tar.gz’ root# tar -zxvf cpulimit-1.1.tar.gz root# cd cpulimit-1.1 root# make root# cp cpulimit /usr/local/sbin/ root# rm -rf cpulimit* CPULimit: Using cpulimit we can set limit for process in linux. Limits are expressed in percentage and not in cpu time. It will help us to mange the resources on shared […]
See MoreTag: low cost web hosting
Assign Second IP in Linux
1. cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0:1 2. In /etc/sysconfig/network-scripts/ifcfg-eth0:1 change DEVICE=eth0 to DEVICE=eth0:1 3. In /etc/sysconfig/network-scripts/ifcfg-eth0:1 modify IPADDR= to match the additional TCP/IP address you wish to use. 4. Start the secondary interface: ifup eth0:1
See MoreDisable open_basedir in plesk
How to disable open_basedir in plesk without breaking/commenting your current httpd.conf basedir lines. Create a new file, called vhost.conf This file will include anything you want to disable from httpd.conf main config from your virtual host. # touch /var/www/vhosts/yourdomain.com/conf/vhost.conf Now we edit the file and we add the following, # vi /var/www/vhosts/yourdomain.com/conf/vhost.conf <Directory /var/www/vhosts/yourdomain.com/httpdocs> php_admin_value […]
See More