Cpanel

MySQL Backup to FTP backup account and Email notification.

#! /bin/bash ######################################################################## #Author : Prajith # #Date : 06/08/2011 # #Contact : # # # ######################################################################## SERVER=`hostname` BACKDIR= DATE=`date +’%m-%d-%Y’` USER=username PASS=password DUMPALL=y MAIL=y EMAILAddress=”” SUBJECT=”backup on $SERVER ($DATE)” FTP=y FTPHOST=”ftp.server.com” FTPUSER=”username” FTPPASS=”pass” FTPDIR=”backups” RSYNC=y RSYUSER=” “ RSYSERVER=” “

Installing ffmpeg on cPanel server.

Exact steps: 1. rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm 2. Installing ffmpeg and related dependencies yum install ffmpeg ffmpeg-devel yum install libogg.i386 libogg-devel.i386 yum install libvorbis.i386 libvorbis-devel.i386 3. Installing ffmpg-php cd /usr/src wget http://biznetnetworks.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.6.0.tbz2 tar xjf ffmpeg-php-0.6.0.tbz2 cd ffmpeg-php-0.6.0 phpize ./configure –prefix=/usr –enable-shared

Errors on /scripts/upcp: Undefined subroutine

When running a cPanel update, you may get the following error: /scripts/upcp /scripts/upcp syntax OK Running Futex Check/Fix……Done Undefined subroutine &Cpanel::Update::automatic_updates_enabled called at /scripts/upcp line 273. To fix this, run the following command: wget -O /root/updatenow.static http://httpupdate.cpanel.net/cpanelsync/RELEASE/scripts/updatenow.static && perl /root/updatenow.static

Fork me on GitHub