EZ Linux Admin random header image

Entries Tagged as 'Linux Commands'

Install image magick on cpanel

August 17th, 2009 by EZ linux · No Comments

The new way: /scripts/installimagemagick Doing it manually: /scripts/installrpm ImageMagick /scripts/installrpm ImageMagick-devel wget layer1.cpanel.net/magick.tar.gz tar zxvf magick.tar.gz cd magick sh install The old way: 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 [...]

Click to continue →

Tags: Cpanel and WHM · 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 [...]

Click to continue →

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

Fix 401 errors

August 17th, 2009 by EZ linux · No Comments

find . -name “.htaccess” -type f -print | xargs grep -e ‘.*401.*http’ /dev/null

Click to continue →

Tags: Linux Commands

Upgrading Perl on cpanel

August 17th, 2009 by EZ linux · 1 Comment

wget http://layer1.cpanel.net/perl588installer.tar.gz tar xfvz perl588installer.tar.gz cd perl588installer ./install /usr/local/cpanel/bin/checkperlmodules

Click to continue →

Tags: Linux Commands

Tar and Untar commands

August 17th, 2009 by EZ linux · No Comments

tar -cvzf mytar.tar.gz sourcefilesordir/creates new tar file tar -xzvf mytar.tar.gz destination – extracts tar.gz file-any fileordir – compresses a file with gzip. gunzip file.gz – decompresses a file with gzip. tar -xvf mytar.tar.gz destination – extracts tar filegzip

Click to continue →

Tags: Linux Commands

Services kill command

August 17th, 2009 by EZ linux · 1 Comment

ps aux (shows all processes) kill (pid #) to remove service For example kill 12435 (this kills pid 12435)

Click to continue →

Tags: Linux Commands

Remove core files

August 17th, 2009 by EZ linux · 1 Comment

find /var/ -name core.* -exec rm {} \; find /home/dwhs/public_html/ -name core.* -exec rm {} \; find /home/dwhs/ -name core.* -exec rm {} \; find /home/dwhs/ -name error_log -exec rm {} \; find /home/dwhs/ -name error_log -exec rm {} \;

Click to continue →

Tags: Linux Commands

Remove a service

August 17th, 2009 by EZ linux · No Comments

service nfslock stop chkconfig nfslock off

Click to continue →

Tags: Linux Commands

FSCK file systems check

August 16th, 2009 by EZ linux · No Comments

fsck -A -a Automatically repairs everything

Click to continue →

Tags: Linux Commands

Adding a Symlink

August 16th, 2009 by EZ linux · No Comments

ln -s linktext linkname linktext is the location of the actual file. linkname is the redirect path ln -s /backup/logs /var/logs ln -s /home/cpanel /var/cpanel

Click to continue →

Tags: Linux Commands · Linux Tricks