Archive for December, 2009
ldconfig command
by lpilinuxblog on Dec.28, 2009, under Important for LPI 117-101
ldconfig creates the necessary links and cache (for use by the run-time linker, ld.so) to the most recent shared libraries found in the direc- tories specified on the command line, in the file /etc/ld.so.conf, and in the trusted directories (/usr/lib and /lib). ldconfig checks the header and file names of the libraries it encounters when determining which versions should have their links updated. ldconfig ignores sym- bolic links when scanning for libraries. ldconfig will attempt to deduce the type of ELF libs (ie. libc 5.x or libc 6.x (glibc)) based on what C libraries if any the library was linked against, therefore when making dynamic libraries, it is wise to explicitly link against libc (use -lc). ldconfig is capable of storing multiple ABI types of libraries into a single cache on architectures which allow native running of multiple ABIs, like ia32/ia64/x86_64 or sparc32/sparc64. lpilinux.com
Winter Sale from uCertify – An Incredible Deal
by lpilinuxblog on Dec.23, 2009, under Reviews
Hi Readers,
Lets pass our desired certification with maximum knowledge and minimum efforts. uCertify, a leading provider of exam preparation software for IT certification exams, announced this winter a big discount on the entire range of its practice tests.
They are providing offer limiting it to their first 100 customer only. The offer comprises of buying any 3 PrepKits for only $149.99. i.e. you have to pay just $49.99 for each Prepkit and an incredible $39.99 for any additional Prepkit. And thats with home and work license.
For more details go to https://www.ucertify.com/cart/todays-deal.php
How to remove files
by lpilinuxblog on Dec.22, 2009, under Linux How to
“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 {} \;”ezlinuxadmin.com
Services kill command
by lpilinuxblog on Dec.22, 2009, under About LPI
“ps aux (shows all processes)
kill (pid #) to remove service
For example
kill 12435 (this kills pid 12435)”ezlinuxadmin.com
Install ffmpeg
by lpilinuxblog on Dec.22, 2009, under About LPI
“yum -y install dialog
cd /usr/src
wget http://scriptmantra.info/scripts/AAST_ffmpeg_installer_5.0.3b
chmod +x AAST_ffmpeg_installer_5.0.3b
./AAST_ffmpeg_installer_5.0.3b
FFmpeg-PHP”ezlinuxadmin.com
Install image magik
by lpilinuxblog on Dec.22, 2009, under About LPI
“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”ezlinuxadmin.com
Install zend optimizer
by lpilinuxblog on Dec.22, 2009, under About LPI
“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=
Then copy the full path to the file php.ini file located in the /usr/local/lib/ folder:
zend_extension=
Restart Apache”ezlinuxadmin.com
Cpanel scripts
by lpilinuxblog on Dec.22, 2009, under About LPI
“/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 file as well.”ezlinuxadmin.com
Manual backup of Cpanel
by lpilinuxblog on Dec.22, 2009, under About LPI
“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”ezlinuxadmin.com
Cpanel restart services
by lpilinuxblog on Dec.22, 2009, under About LPI
“/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”ezlinuxadmin.com