EZ Linux Admin random header image

Entries from August 2009

Change a cpanel server hostname

August 17th, 2009 by EZ linux · 2 Comments

pico /etc/sysconfig/network
pico /etc/hosts
pico /etc/resolv.conf
pico /var/named/your.dns.zone.com.db (add A record for host)
pico /usr/local/apache/conf/httpd.conf

cd /usr/local/cpanel
then run
./cpkeyclt
also might help license
/scripts/upcp

Click to continue →

Tags: Linux Commands · Linux Software / Scripts

Cpanel restart services

August 17th, 2009 by EZ linux · 2 Comments

/scripts/restartsrv mysql
/scripts/restartsrv httpd
/scripts/restartsrv bind
(proftpd,exim,sshd,cppop,bind,mysql)
/etc/rc.d/init.d/cpanel restart
/scripts/reswhostmgr
/etc/rc.d/init.d/portsentry start
/etc/rc.d/init.d/network restart
/etc/sysconfig/network-scripts (where ip’s are stored)
/etc/init.d/exim restart
services exim stop

Click to continue →

Tags: Linux Commands · Linux Software / Scripts

Cpanel manual backup

August 17th, 2009 by EZ linux · 1 Comment

To instantly run your existing back up settings in cpanel run:
(You will need backups turned on in your WHM for this to work)
/scripts/cpbackup
To instantly run a packaged account backup for any account run:
(Keep in mind this makes a tar file in the home directory so you will need space for it.)
/scripts/pkgacct username

Click to continue →

Tags: Linux Commands · Linux Software / Scripts

Cpanel install

August 17th, 2009 by EZ linux · No Comments

mkdir /home/cpins
cd /home/cpins
wget http://layer1.cpanel.net/latest
sh latest

Click to continue →

Tags: Linux Commands · Linux Software / Scripts

Cpanel fix it scripts

August 17th, 2009 by EZ linux · 1 Comment

/scripts/securetmp – secures tmp folders
/scripts/fixcommonproblems – cleans up common issues
/scripts/fixeverything – cleans up the server
/scripts/runlogsnow – Force a webalizer/analog update
/scripts/upcp – Update Cpanel
/scripts/quicksecure – Shuts down ovious security holes
/scripts/remdefssl – Delete Nasty SSL entry in apache default httpd.conf
/scripts/updateuserdomains – If a domain is missing in the cpanel list run this mayneed to clean the /var/cpanel/usr [...]

Click to continue →

Tags: Linux Commands

Mod bandwidth

August 17th, 2009 by EZ linux · No Comments

keep in mind mod_bandwidth does not work with Apache 2.0, only Apache 1.3. The best option for Apache 2.0 is called Mod_Cband (Click the link for more details)
Mod_bandwidth has changed to adding the varibles in one line code, now you must add the domain name and the limit all in one shot like this:
/scripts/setbwlimit –domain=example.com [...]

Click to continue →

Tags: Linux Commands · Linux Software / Scripts

Protected: Iprotect (iprot) step by step

August 17th, 2009 by EZ linux · Enter your password to view comments

There is no excerpt because this is a protected post.

Click to continue →

Tags: Linux Commands · Linux Software / Scripts

Install zend optimizer

August 17th, 2009 by EZ linux · 1 Comment

Download Zend Optimizer from the command line of the server.
wget http://downloadspot.com/downloads/ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz
Then untar
tar xvfz ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz
Then enter the Zend directory
cd ZendOptimizer-3.3.9-linux-glibc23-i386/data/
Then find the phpversion match .so file
Copy the full patch to the file:
zend_extension=</root/ZendOptimizer-3.3.9-linux-glibc23-i386/data/5_2_x_comp/ZendOptimizer.so>
Then copy the full path to the file php.ini file located in the /usr/local/lib/ folder:
zend_extension=</root/ZendOptimizer-3.3.9-linux-glibc23-i386/data/5_2_x_comp/ZendOptimizer.so>
Restart Apache
Or if you luck enough to have CPanel installed for [...]

Click to continue →

Tags: Linux Commands · Linux Software / Scripts

Install image magick on cpanel

August 17th, 2009 by EZ linux · No Comments

The whole process takes about twenty minutes. But if you do each line correctly then restart apache you will be fine every time. Also make sure GD support is compiled into php from your WHM ( CPanel’s ) easy apache.
mkdir /home/src
cd /home/src
wget http://www.downloadspot.com/downloads/ImageMagick-6.3.4-7.tar.gz
tar xvzf ImageMagick-6.3.4-7.tar.gz
cd ImageMagick-6.3.4
./configure
make
make install
cd PerlMagick
perl Makefile.PL
make
make install

Click to continue →

Tags: Linux Commands · Linux Software / Scripts

Install ffmpeg and ffmpeg-php

August 17th, 2009 by EZ linux · 2 Comments

There is a great auto installer available thanks to Script Mantra, but first you need to install Dialog:
yum -y install dialog
Then your ready to download and install the ffmpeg installer:
cd /usr/src
wget http://scriptmantra.info/scripts/AAST_ffmpeg_installer_5.0.6b
chmod +x AAST_ffmpeg_installer_5.0.6b
./AAST_ffmpeg_installer_5.0.6b
What the script delivers:
*libogg
*libvorbis
*libvorbisenc
*libvorbisfile
*libamrnb
*libamrwb
*libgsm
*libtheora
*Lame
*libschroedinger
*twolame
*speex
*libtheoradec
*libtheoraenc
*libxvidcore
*libx264
*libnut
*liba52
*mplayer codecs at /usr/local/lib/codecs
*ffmpeg libraries at /usr/local/lib
*libdirac
*libdca
FFmpeg-PHP VersionĀ  0.6.0
FFmpeg Version: SVN-r16244

Click to continue →

Tags: Linux Commands · Linux Software / Scripts · Linux Tricks