Script used to correct permission of files after suphp
#!/bin/bash # For some stupid reason, cPanel screws up the directory permissions. chmod 755 /opt/suphp find /opt/suphp -type d -exec chmod 755 {} \; # Ensure that the permissions are sane and won’t cause a 500 error. for user in [...]
Script used to transfer account from cpanel server
#!/bin/bash ls -1 /var/cpanel/users > /root/user_list PORT=”22″ ssh-keygen -t dsa KEY=`cat /root/.ssh/id_dsa.pub` ssh $1 -p$PORT “mkdir -p /root/.ssh;echo ${KEY} >> /root/.ssh/authorized_keys” 2>&1 scp /var/cpanel/packages/* $1:/var/cpanel/packages/ for user in $(cat /root/user_list);do /scripts/pkgacct $user;done scp /home/user_list $1:/home scp /home/cpmove* $1:/home
Resize /tmp in cpanel servers
service chkservd stop service httpd stop service mysql stop service postgresql stop lsof | grep /tmp kill the process umount /var/tmp umount /tmp vi /scripts/securetmp replace “256000? with “512000? rm -rf /usr/tmpDSK /scripts/securetmp –auto cd /tmp ln -s /var/lib/mysql/mysql.sock service [...]
/scripts/upcp hunging or rebuilding rpmdb
Your RPM database may be corrupted. So we need to rebuild the rpm database after deleting all rpm dbs from /var/lib/rpm. Here are the steps: rm /var/lib/rpm/__db.* rpm –rebuilddb.
Directory Structure of CPanel
Apache /usr/local/apache + bin- apache binaries are stored here – httpd, apachectl, apxs + conf – configuration files – httpd.conf + cgi-bin + domlogs – domain log files are stored here + htdocs + include – header files + libexec [...]
Cpanel Scripts
cPanel and WHM has a large number of predefined scripts available in the /scripts folder. The available scripts are as follows: adddns – Adds a DNS zone. addfpmail – Add frontpage mail extensions to all domains without them. addfpmail2 -Add [...]
FFMPEG Yum installation
1. Install RPMForge: http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm 2. That’ll give you access to a repo to install ffmpeg 3. Then yum install ffmpeg.i386 and yum install ffmpeg-devel.i386
PHP: Short URL Algorithm Implementation
short url,Short URL Algorithm
What is pending delete
Pending Delete What is pending delete? Pending Delete is a status set by the WHO IS server for a domain name that has not been renewed. Domain names which expire normally get deleted. The registry will hold the name in [...]
Recent Comments