<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2258928174306208999</id><updated>2012-01-09T05:36:05.889-08:00</updated><category term='uname'/><category term='tune2fs'/><category term='Options in httpd.conf'/><category term='local.cf'/><category term='ksyms'/><category term='xml2-config'/><category term='move an account to another server'/><category term='modprobe'/><category term='maxperip'/><category term='trueuserdomains'/><category term='ping'/><category term='kernal'/><category term='debug problems'/><category term='mod dosevasive'/><category term='openvz'/><category term='Max Email Accounts'/><category term='curl'/><category term='Telnet'/><category term='SecRuleEngine Off'/><category term='exim_mainlog'/><category term='html_errors'/><category term='httpd.conf'/><category term='yum'/><category term='commands'/><category term='SMTP'/><category term='mod_security.conf'/><category term='PHPSUEXEC'/><category term='Transfer accounts'/><category term='whitelist_from'/><category term='hard disk'/><category term='compiling php'/><category term='.htaccess'/><category term='magic_quotes_gpc'/><category term='hddtemp'/><category term='maxclientsperip'/><category term='Spam'/><category term='404 error'/><category term='fstab'/><category term='rmmod'/><category term='WHM'/><category term='phpMyAdmin'/><category term='ext3'/><category term='sysctl'/><category term='SSH'/><category term='spf'/><category term='mysql'/><category term='display_errors'/><category term='temerature'/><category term='Network based Linux Installation'/><category term='MailWatch'/><category term='lsmod'/><category term='mod_security.c'/><category term='vfilters'/><category term='bash'/><category term='Dreamweaver'/><category term='linux commands'/><category term='icmp'/><category term='pure-ftpd'/><category term='spamassassin'/><category term='ForceType'/><category term='ext2'/><category term='antivirus.exim'/><category term='imap'/><category term='Fantastico'/><category term='ext2 hda'/><category term='valiases'/><category term='libxml2-devel'/><category term='ftp'/><title type='text'>Shameer's Blog</title><subtitle type='html'>Linux System Administration Tips &amp;amp; cPanel Tips</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default?start-index=101&amp;max-results=100'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>108</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-5329895887386200484</id><published>2009-06-21T14:13:00.000-07:00</published><updated>2009-06-21T14:25:14.828-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='move an account to another server'/><title type='text'>Move an account to another server?(Applicable for Cpanel server only)</title><content type='html'>&lt;div style="text-align: justify;"&gt;1: check for the username of the account. &lt;/div&gt;&lt;p style="text-align: justify;"&gt;# cat /etc/userdomains | grep domain.com&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;p style="text-align: justify;"&gt;2: Take the backup of that account:&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;p style="text-align: justify;"&gt;# /scripts/pkgacct&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;p style="text-align: justify;"&gt;3: Make this backup file available for download:&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;p style="text-align: justify;"&gt;# cp cpmove-username.tar.gz /usr/local/apache/htdocs/&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;p style="text-align: justify;"&gt;4: Download it under /home directory on new server:&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;p style="text-align: justify;"&gt;# wget http://oldserver’s IPaddress/cpmove-username.tar.gz&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;p style="text-align: justify;"&gt;5. You can restore it with a using following script.&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;p style="text-align: justify;"&gt;# /scripts/restorepkg&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;p style="text-align: justify;"&gt;This will restore your account on new server as it was old server, just make sure the version of php, mysql and format of mailbox on both server.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-5329895887386200484?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/5329895887386200484/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/move-account-to-another.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/5329895887386200484'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/5329895887386200484'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/move-account-to-another.html' title='Move an account to another server?(Applicable for Cpanel server only)'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-786398627143568298</id><published>2009-06-21T13:59:00.000-07:00</published><updated>2009-06-21T14:00:24.825-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='exim_mainlog'/><category scheme='http://www.blogger.com/atom/ns#' term='debug problems'/><title type='text'>How can I debug problems with an email account ?</title><content type='html'>&lt;p style="text-align: justify;" mce_style="text-align:justify;"&gt;&lt;b&gt;Ans: &lt;/b&gt;&lt;/p&gt; &lt;p style="text-align: justify;" mce_style="text-align:justify;"&gt;Trace the path of the email when sent from the server and see what path it follows:&lt;/p&gt; &lt;p style="text-align: justify;" mce_style="text-align:justify;"&gt;&lt;b&gt;#&lt;/b&gt;exim –d2 –bt user@domain.com or&lt;/p&gt; &lt;p style="text-align: justify;" mce_style="text-align:justify;"&gt;1. check for error if any under /var/log/exim_mainlogs files for email account.&lt;/p&gt; &lt;p style="text-align: justify;" mce_style="text-align:justify;"&gt;2. check the MX record for the domain.&lt;/p&gt; &lt;p style="text-align: justify;" mce_style="text-align:justify;"&gt;3.check if the email account exists on server.&lt;/p&gt; &lt;p style="text-align: justify;" mce_style="text-align:justify;"&gt;4.check for the entry of domain /etc/localdomains, /etc/userdomains, /etc/valiases/domain.com and /etc/vfilters/domain.com&lt;/p&gt; &lt;p style="text-align: justify;" mce_style="text-align:justify;"&gt;5.Make sure that the exim is upto date.&lt;/p&gt; &lt;p style="text-align: justify;" mce_style="text-align:justify;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-786398627143568298?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/786398627143568298/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/how-can-i-debug-problems-with-email.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/786398627143568298'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/786398627143568298'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/how-can-i-debug-problems-with-email.html' title='How can I debug problems with an email account ?'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-8293589306518358706</id><published>2009-06-21T13:39:00.000-07:00</published><updated>2009-06-21T13:41:41.079-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='antivirus.exim'/><category scheme='http://www.blogger.com/atom/ns#' term='Spam'/><title type='text'>Preventing Spam with antivirus.exim</title><content type='html'>Hey,&lt;br /&gt;&lt;br /&gt;Check the follwoing URL's , It will give you a good tutoial for preventing spam with anitvirus.exim&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.webhostgear.com/338_print.html"&gt;http://www.webhostgear.com/338_print.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.webhostgear.com/index.php?art/id:338"&gt;http://www.webhostgear.com/index.php?art/id:338&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-8293589306518358706?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/8293589306518358706/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/preventing-spam-with-antivirusexim.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/8293589306518358706'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/8293589306518358706'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/preventing-spam-with-antivirusexim.html' title='Preventing Spam with antivirus.exim'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-4351052831562110144</id><published>2009-06-21T13:38:00.000-07:00</published><updated>2009-06-21T13:39:12.915-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Transfer accounts'/><title type='text'>Transfer accounts to a new server without downtime</title><content type='html'>The following doc will help you to transfer accounts to a new server&lt;br /&gt;&lt;br /&gt;1. Sign up for any web hosting package before cancelling your old web hosting account.&lt;br /&gt;&lt;br /&gt;2. Download your entire old web site using a FTP program, or using cPanel backup utility. Then upload your entire web site to your new web hosting account by FTP or using cPanel backup utility again. If you are using FTP, you will need to re-chmod your folders if you are running scripts.&lt;br /&gt;&lt;br /&gt;3. After you have moved all your files to your new account, you need to change your domain name's name servers. Make sure everything is working by using a temporary address at your new hopefully great web host before you update your nameservers. Then go to where you registered your domain name or email them directly. Update your name servers to the NEW name servers your new host emailed you when you signed up.&lt;br /&gt;&lt;br /&gt;4. After 24-72 hours your domain will be fully propegated and pointing to your new web hosting home.&lt;br /&gt;&lt;br /&gt;5. You can now cancel your old web hosting and your web site should be fully up and running on your new account.&lt;br /&gt;&lt;br /&gt;Here is an easy way to take Full Back up to your New Host Account, even before your Domain name server is resolved to New Name Server.&lt;br /&gt;&lt;br /&gt;Old Host:&lt;br /&gt;&lt;br /&gt;1. Go to Control Panel&lt;br /&gt;&lt;br /&gt;2. Click on Back up&lt;br /&gt;&lt;br /&gt;3. Click on "Generate Full Backup"&lt;br /&gt;&lt;br /&gt;4. Choose "Remote FTP Transfer"&lt;br /&gt;&lt;br /&gt;5. Remote FTP Server: Type the IP address of your New Host Here&lt;br /&gt;&lt;br /&gt;6. Remote FTP Server User: Type the username of New Host Account&lt;br /&gt;&lt;br /&gt;7. Remote FTp Password: Type the Password of New Host Account.&lt;br /&gt;&lt;br /&gt;8. Click ok&lt;br /&gt;&lt;br /&gt;After few Minute... (Depending upon the File Size)&lt;br /&gt;&lt;br /&gt;New Host&lt;br /&gt;&lt;br /&gt;1. Go to Control Panel&lt;br /&gt;&lt;br /&gt;2. Click on File Manager&lt;br /&gt;&lt;br /&gt;3. On Home Directory, you will see the back up file, if not wait for some time and check again.&lt;br /&gt;&lt;br /&gt;4. Do not click on that backup file or try to extract it. It should be restored by your System Administrator.&lt;br /&gt;&lt;br /&gt;5. Submit a support ticket requesting a Cpanel restore. Give all detail. It is good to mention the backup file name and file size.&lt;br /&gt;6. Once you hear from that cPanel backup was sucessfully restored, you can change the Name server, so that without any interruption your will site will be up and running.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-4351052831562110144?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/4351052831562110144/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/transfer-accounts-to-new-server-without.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/4351052831562110144'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/4351052831562110144'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/transfer-accounts-to-new-server-without.html' title='Transfer accounts to a new server without downtime'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-7302987459939634903</id><published>2009-06-21T13:37:00.000-07:00</published><updated>2009-06-21T13:38:38.305-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Network based Linux Installation'/><title type='text'>Network based Linux Installation  via HTTP, FTP, NFS</title><content type='html'>&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;N&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;etwork based Linux Installation&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Introduction:&lt;br /&gt;Many versions of Linux allow installing operating system using network connection with the help of kickstart server. This type of installation is however faster than installation using CDs process could be automated.&lt;br /&gt;Here is the procedure to install Linux remotely:&lt;br /&gt;• Connect the client machine to installation server which has already loaded with installation files.&lt;br /&gt;• Boot installation client from bootable CD&lt;br /&gt;• There are there methods of installation to choose from i.e. FTP, HTTP and NFS with network parameters.&lt;br /&gt;• The installation process will start and you can select installation method from the available options.&lt;br /&gt;Configuring Kickstart Installation Server:&lt;br /&gt;Kickstart installation server could be configured on FTP, NFS and Apache Server by using the following procedure.&lt;br /&gt;Kickstart is however easy using a web server because:&lt;br /&gt;• Kickstart server need to be located on remote location, passing it through firewall and rules of firewall for HTTP is somehow easy to configure as compared to FTP and NFS.&lt;br /&gt;• Kickstart can use :// nomenclature to access files and it is more easy and familiar for users with respect to NFS and FTP and this is crucial for automatic kickstart installation.&lt;br /&gt;Preparing for Remote Server:&lt;br /&gt;Here is an example of configuring kickstart server which will be used in Fedora Core installation. All files will be uploaded to /data/network-install directory.&lt;br /&gt;Create Installation Directory:&lt;br /&gt;First of all create installation directories at /data/network-install/RPM and data network-install/ISO where necessary files will be copied.&lt;br /&gt;[root@linux-server tmp]# mkdir -p /data/network-install/RPM&lt;br /&gt;[root@ linux-server tmp]# mkdir -p /data/network-install/ISO&lt;br /&gt;It is now need to copy the network installation driver files in the base directory.&lt;br /&gt;Copying The Files:&lt;br /&gt;All methods HTTP, NFS and FTP kickstart needs base set of Fedora files to be installed on Kickstart server. Here is the procedure to install it.&lt;br /&gt;1) Create a mount point for your CD ROM drive.&lt;br /&gt;&lt;br /&gt;[root@linux-server tmp]# mkdir /mnt/cdrom&lt;br /&gt;2) Mount the Linux CD ROM.&lt;br /&gt;[root@linux-server tmp]# mount /dev/cdrom /mnt/cdrom&lt;br /&gt;&lt;br /&gt;3) Copy the files from the CD ROM dir to the hard disk&lt;br /&gt;&lt;br /&gt;[root@linux-server tmp]# cp /mnt/cdrom/* /data/network-install/RPM&lt;br /&gt;4) Unmount the CD ROM and remove cd using eject command.&lt;br /&gt;[root@linux-server tmp]# umount /dev/cdrom&lt;br /&gt;&lt;br /&gt;[root@linux-server tmp]# eject cdrom&lt;br /&gt;5) Repeat steps 2 to 4 with all your CDROMs. Overwrite files if required.&lt;br /&gt;HTTP &amp;amp; FTP Preparation:&lt;br /&gt;To configure for HTTP and FTP copy all data of each installation CD to /data/network-install/RPM directory. It needs 3-5 GB disk space. After completing copying data into this directory will be shown as below.&lt;br /&gt;[root@linux-server tmp]# ls -1 /data/network-install/RPM&lt;br /&gt;eula.txt&lt;br /&gt;RedHat&lt;br /&gt;redhat.css&lt;br /&gt;GPL&lt;br /&gt;images&lt;br /&gt;index.html&lt;br /&gt;isolinux&lt;br /&gt;README-Accessibility&lt;br /&gt;RELEASE-NOTES-en_US.html&lt;br /&gt;repodata&lt;br /&gt;RPM-GPG-KEY&lt;br /&gt;RPM-GPG-KEY-beta&lt;br /&gt;RPM-GPG-KEY-fedora&lt;br /&gt;RPM-GPG-KEY-fedora-extras&lt;br /&gt;RPM-GPG-KEY-fedora-legacy&lt;br /&gt;RPM-GPG-KEY-fedora-rawhide&lt;br /&gt;RPM-GPG-KEY-fedora-test&lt;br /&gt;RPM-GPG-KEY-rawhide&lt;br /&gt;stylesheet-images&lt;br /&gt;[root@linux-servertmp]#&lt;br /&gt;Preparing for NFS:&lt;br /&gt;First of all create ISO images of installation CD’s and store them in /data/network-install/ISO directory. It will also needs disk space from 3-5 GB. You can download ISO files from official Linux core website like Fedora or Redhat and you also take these files from installation CDs but you have to make sure that these are with same name as on the official website.&lt;br /&gt;Here are the steps which you should follow by replacing filename where it is necessary.&lt;br /&gt;[root@linux-server tmp]# cd /data/network-install/ISO&lt;br /&gt;&lt;br /&gt;[root@linux-server ISO]# dd if=/dev/cdrom of=filename.iso bs=32k&lt;br /&gt;…&lt;br /&gt;…&lt;br /&gt;[root@linux-server ISO]# eject cdrom&lt;br /&gt;Note: This is an example to make ISO files using mkisofs command. You can select to install the mkisofs RPM on newer Fedora versions also and this command needs a mounted CDROM drive, so don’t overlook the mount command.&lt;br /&gt;[root@linux-server ISO]# mount /mnt/cdrom&lt;br /&gt;&lt;br /&gt;[root@linux-server ISO]# mkisofs -J -r -T -o filename.iso /mnt/cdrom&lt;br /&gt;&lt;br /&gt;[root@linuxserver ISO]# eject cdrom&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-7302987459939634903?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/7302987459939634903/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/network-based-linux-installation-via.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/7302987459939634903'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/7302987459939634903'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/network-based-linux-installation-via.html' title='Network based Linux Installation  via HTTP, FTP, NFS'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-8308540438838594926</id><published>2009-06-21T13:35:00.000-07:00</published><updated>2009-06-21T13:36:38.718-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Dreamweaver'/><title type='text'>Setting up Dreamweaver's FTP connection</title><content type='html'>Hey,&lt;br /&gt;&lt;br /&gt;Please check the below URL , It will give you a detail description for setting up Dreamweaver's FTP connection&lt;br /&gt;&lt;br /&gt;&lt;a href="http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14787&amp;amp;sliceId=2"&gt;http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14787&amp;amp;sliceId=2&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-8308540438838594926?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/8308540438838594926/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/setting-up-dreamweavers-ftp-connection.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/8308540438838594926'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/8308540438838594926'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/setting-up-dreamweavers-ftp-connection.html' title='Setting up Dreamweaver&apos;s FTP connection'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-565016757793481272</id><published>2009-06-21T13:30:00.000-07:00</published><updated>2009-06-21T13:31:00.337-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mod dosevasive'/><title type='text'>mod dosevasive - install and configure</title><content type='html'>This module is very useful in combating certain DOS (denial of serivce) attacks, and is easy to implement. The following steps will help you to install mod dosevasive.&lt;br /&gt;&lt;br /&gt;1.    Download the newest version of the module from:&lt;br /&gt;&lt;br /&gt;http://www.nuclearelephant.com/projects/dosevasive/&lt;br /&gt;&lt;br /&gt;2.    Extract the module.&lt;br /&gt;&lt;br /&gt;Ie. (replace the 1.9 with the version you downloaded)&lt;br /&gt;tar -xzvf mod_dosevasive.1.9.tar.gz&lt;br /&gt;&lt;br /&gt;3.    Change directories so you are inside the mod_dosevasive directory.&lt;br /&gt;cd mod_dosevasive&lt;br /&gt;&lt;br /&gt;4.    If you are running Apache v1.3, you run: [path to apache]/bin/apxs -i -a -c mod_dosevasive.c&lt;br /&gt;&lt;br /&gt;Ie.&lt;br /&gt;/usr/local/apache/bin/apxs -i -a -c mod_dosevasive.c&lt;br /&gt;&lt;br /&gt;If you are running Apache v2.0, you run: [path to apache]/bin/apxs -i -a -c mod_dosevasive20.c&lt;br /&gt;&lt;br /&gt;Ie.&lt;br /&gt;/usr/local/apache/bin/apxs -i -a -c mod_dosevasive20.c&lt;br /&gt;&lt;br /&gt;5.    Restart apache.&lt;br /&gt;&lt;br /&gt;Ie.&lt;br /&gt;/etc/init.d/httpd restart&lt;br /&gt;&lt;br /&gt;Configuration:&lt;br /&gt;&lt;br /&gt;This section is intend for people that want to tweak some of the default settings to their own. You are not required to do this.&lt;br /&gt;&lt;br /&gt;First you have to add the following section to your httpd.conf&lt;br /&gt;(Ie. /etc/httpd/conf/httpd.conf):&lt;br /&gt;For Apache v1.3:&lt;br /&gt;&lt;br /&gt;&lt;ifmodule&gt;&lt;br /&gt;DOSHashTableSize    3097&lt;br /&gt;DOSPageCount        2&lt;br /&gt;DOSSiteCount        50&lt;br /&gt;DOSPageInterval     1&lt;br /&gt;DOSSiteInterval     1&lt;br /&gt;DOSBlockingPeriod   10&lt;br /&gt;&lt;/ifmodule&gt;&lt;br /&gt;&lt;br /&gt;For Apache v2.0:&lt;br /&gt;&lt;br /&gt;&lt;ifmodule&gt;&lt;br /&gt;DOSHashTableSize    3097&lt;br /&gt;DOSPageCount        2&lt;br /&gt;DOSSiteCount        50&lt;br /&gt;DOSPageInterval     1&lt;br /&gt;DOSSiteInterval     1&lt;br /&gt;DOSBlockingPeriod   10&lt;br /&gt;&lt;/ifmodule&gt;&lt;br /&gt;&lt;br /&gt;The above are the default options that are setup (even if you do not have this section in your httpd.conf).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-565016757793481272?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/565016757793481272/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/mod-dosevasive-install-and-configure.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/565016757793481272'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/565016757793481272'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/mod-dosevasive-install-and-configure.html' title='mod dosevasive - install and configure'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-3521435035651578668</id><published>2009-06-21T13:27:00.000-07:00</published><updated>2009-06-21T13:28:15.898-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='httpd.conf'/><category scheme='http://www.blogger.com/atom/ns#' term='Options in httpd.conf'/><title type='text'>Options in httpd.conf</title><content type='html'>&lt;div align="justify"&gt;ServerType standalone :&lt;br /&gt;&lt;br /&gt;The option ServerType specifies how Apache should run on the system. You can run it from the super-server inetd, or as standalone daemon. It's highly recommended to run Apache in standalone type for better performance and speed.&lt;br /&gt;&lt;br /&gt;ServerRoot "/etc/httpd" :&lt;br /&gt;&lt;br /&gt;The option ServerRoot specifies the directory in which the configuration files of the Apache server lives. It allows Apache to know where it can find its configuration files when it starts.&lt;br /&gt;&lt;br /&gt;PidFile /var/run/httpd.pid :&lt;br /&gt;&lt;br /&gt;The option PidFile specifies the location where the server will record the process id of the daemon when it starts. This option is only required when you configure Apache in standalone mode.&lt;br /&gt;&lt;br /&gt;ResourceConfig /dev/null :&lt;br /&gt;&lt;br /&gt;The option ResourceConfig specifies the location of the old srm.conf file that Apache read after it finished reading the httpd.conf file. When you set the location to /dev/null, Apache allows you to include the content of this file in httpd.conf file, and in this manner, you have just one file that handles all your configuration parameters for simplicity.&lt;br /&gt;&lt;br /&gt;AccessConfig /dev/null :&lt;br /&gt;&lt;br /&gt;The option AccessConfig specifies the location of the old access.conf file that Apache read after it finished reading the srm.conf file. When you set the location to /dev/null, Apache allows you to include the content of this file in httpd.conf file, and in this manner, you have just one file that handles all your configuration parameters for simplicity.&lt;br /&gt;&lt;br /&gt;Timeout 300 :&lt;br /&gt;&lt;br /&gt;The option Timeout specifies the amount of time Apache will wait for a GET, POST, PUT request and ACKs on transmissions. You can safely leave this option on its default values.&lt;br /&gt;&lt;br /&gt;KeepAlive On :&lt;br /&gt;&lt;br /&gt;The option KeepAlive, if set to On, specifies enabling persistent connections on this web server. For better performance, it's recommended to set this option to On, and allow more than one request per connection.&lt;br /&gt;&lt;br /&gt;MaxKeepAliveRequests 0 :&lt;br /&gt;&lt;br /&gt;The option MaxKeepAliveRequests specifies the number of requests allowed per connection when the KeepAlive option above is set to On. When the value of this option is set to 0 then unlimited requests are allowed on the server. For server performance, it's recommended to allow unlimited requests.&lt;br /&gt;&lt;br /&gt;KeepAliveTimeout 15 :&lt;br /&gt;&lt;br /&gt;The option KeepAliveTimeout specifies how much time, in seconds, Apache will wait for a subsequent request before closing the connection. The value of 15 seconds is a good average for server performance.&lt;br /&gt;&lt;br /&gt;MinSpareServers 16 :&lt;br /&gt;&lt;br /&gt;The option MinSpareServers specifies the minimum number of idle child server processes for Apache, which is not handling a request. This is an important tuning parameter regarding the performance of the Apache web server. For high load operation, a value of 16 is recommended by various benchmarks on the Internet.&lt;br /&gt;&lt;br /&gt;MaxSpareServers 64 :&lt;br /&gt;&lt;br /&gt;The option MaxSpareServers specifies the maximum number of idle child server processes for Apache, which is not handling a request. This is also an important tuning parameter regarding the performance of the Apache web server. For high load operation, a value of 64 is recommended by various benchmarks on the Internet.&lt;br /&gt;&lt;br /&gt;StartServers 16 :&lt;br /&gt;&lt;br /&gt;The option StartServers specifies the number of child server processes that will be created by Apache on start-up. This is, again, an important tuning parameter regarding the performance of the Apache web server. For high load operation, a value of 16 is recommended by various benchmarks on the Internet.&lt;br /&gt;&lt;br /&gt;MaxClients 512 :&lt;br /&gt;&lt;br /&gt;The option MaxClients specifies the number of simultaneous requests that can be supported by Apache. This too is an important tuning parameter regarding the performance of the Apache web server. For high load operation, a value of 512 is recommended by various benchmarks on the Internet.&lt;br /&gt;&lt;br /&gt;MaxRequestsPerChild 100000 :&lt;br /&gt;&lt;br /&gt;The option MaxRequestsPerChild specifies the number of requests that an individual child server process will handle. This too is an important tuning parameter regarding the performance of the Apache web server.&lt;br /&gt;&lt;br /&gt;User www :&lt;br /&gt;&lt;br /&gt;The option User specifies the UID that Apache server will run as. It's important to create a new user that has minimal access to the system, and functions just for the purpose of running the web server daemon.&lt;br /&gt;&lt;br /&gt;Group www :&lt;br /&gt;&lt;br /&gt;The option Group specifies the GID the Apache server will run as. It's important to create a new group that has minimal access to the system and functions just for the purpose of running the web server daemon.&lt;br /&gt;&lt;br /&gt;DirectoryIndex index.htm index.html index.php index.php3 default.html index.cgi :&lt;br /&gt;&lt;br /&gt;The option DirectoryIndex specifies the files to use by Apache as a pre-written HTML directory index. In other words, if Apache can't find the default index page to display, it'll try the next entry in this parameter, if available. To improve performance of your web server it's recommended to list the most used default index pages of your web site first.&lt;br /&gt;&lt;br /&gt;HostnameLookups Off :&lt;br /&gt;&lt;br /&gt;The option HostnameLookups, if set to Off, specifies the disabling of DNS lookups. It's recommended to set this option to Off in order to save the network traffic time, and to improve the performance of your Apache web server.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-3521435035651578668?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/3521435035651578668/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/options-in-httpdconf.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/3521435035651578668'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/3521435035651578668'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/options-in-httpdconf.html' title='Options in httpd.conf'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-6887003754114986440</id><published>2009-06-21T13:26:00.000-07:00</published><updated>2009-06-21T13:27:21.120-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='phpMyAdmin'/><title type='text'>How do I import a database using phpMyAdmin?</title><content type='html'>&lt;div align="justify"&gt;To import your MySQL database, you can use phpMyAdmin which is available in your control panel. The steps to import your database are below.&lt;br /&gt;&lt;br /&gt;1. Click on the icon labeled MySQL Databases in your control panel.&lt;br /&gt;&lt;br /&gt;2. At the bottom of the screen in MySQL Databases you will see an option for PhpMyAdmin, click on it&lt;br /&gt;&lt;br /&gt;3. Once in PhpMyAdmin you will see on the left side a drop down of your databases, select the database you would like to import to.&lt;br /&gt;&lt;br /&gt;4. This will create some tabs at the top of the screen, click on SQL.&lt;br /&gt;&lt;br /&gt;5. After clicking on SQL you will see a Text Box area and a file upload option.&lt;br /&gt;&lt;br /&gt;6. Click browse on the file upload option and find your .sql file&lt;br /&gt;&lt;br /&gt;7. After you have selected the file click GO and it will import your database. It may take a while to complete importing especially if your database is large.&lt;br /&gt;&lt;br /&gt;Try it :)&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-6887003754114986440?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/6887003754114986440/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/how-do-i-import-database-using_21.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/6887003754114986440'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/6887003754114986440'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/how-do-i-import-database-using_21.html' title='How do I import a database using phpMyAdmin?'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-505112349794303390</id><published>2009-06-21T13:25:00.000-07:00</published><updated>2009-06-21T13:26:11.282-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='SSH'/><category scheme='http://www.blogger.com/atom/ns#' term='Telnet'/><title type='text'>How do I import a database using Telnet/SSH?</title><content type='html'>If you have SSH access, you can use the following command to import your database.&lt;br /&gt;&lt;br /&gt;mysql -u username -p password database_name &lt; /path/to/your/mysql_data.sql&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-505112349794303390?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/505112349794303390/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/how-do-i-import-database-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/505112349794303390'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/505112349794303390'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/how-do-i-import-database-using.html' title='How do I import a database using Telnet/SSH?'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-8258168057212268079</id><published>2009-06-21T13:24:00.000-07:00</published><updated>2009-06-21T13:25:13.398-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='html_errors'/><category scheme='http://www.blogger.com/atom/ns#' term='display_errors'/><category scheme='http://www.blogger.com/atom/ns#' term='.htaccess'/><title type='text'>Enable private PHP Error Logging via .htaccess\disable PHP Error Logging for visitor</title><content type='html'>To hide PHP errors from visitors insert the following code in .htaccess&lt;br /&gt;&lt;br /&gt;# supress php errors&lt;br /&gt;php_flag display_startup_errors off&lt;br /&gt;php_flag display_errors off&lt;br /&gt;php_flag html_errors off&lt;br /&gt;&lt;br /&gt;Once disable the error logs for visitors enable the private PHP error logging by using following code in .htaccess&lt;br /&gt;&lt;br /&gt;# enable PHP error logging&lt;br /&gt;php_flag log_errors on&lt;br /&gt;php_value error_log /home/path/public_html/domain/PHP_errors.log&lt;br /&gt;&lt;br /&gt;The PHP_errors.log file needs to be permission 755 or 777.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-8258168057212268079?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/8258168057212268079/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/enable-private-php-error-logging-via.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/8258168057212268079'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/8258168057212268079'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/enable-private-php-error-logging-via.html' title='Enable private PHP Error Logging via .htaccess\disable PHP Error Logging for visitor'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-5381219331384738735</id><published>2009-06-21T13:23:00.001-07:00</published><updated>2009-06-21T13:23:55.176-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mod_security.conf'/><category scheme='http://www.blogger.com/atom/ns#' term='mod_security.c'/><category scheme='http://www.blogger.com/atom/ns#' term='SecRuleEngine Off'/><title type='text'>Disable mod_security2 rule for one domain</title><content type='html'>Error:&lt;br /&gt;&lt;br /&gt;Not Acceptable&lt;br /&gt;&lt;br /&gt;An appropriate representation of the requested resource /admin/index.php could not be found on this server.&lt;br /&gt;&lt;br /&gt;Fix:&lt;br /&gt;&lt;br /&gt;Just create a directory:&lt;br /&gt;&lt;br /&gt;mkdir -p /usr/local/apache/conf/userdata/std/2/username/domain.com&lt;br /&gt;&lt;br /&gt;Then create a file:&lt;br /&gt;&lt;br /&gt;/usr/local/apache/conf/userdata/std/2/username/domain.com/mod_security.conf&lt;br /&gt;&lt;br /&gt;In that file add:&lt;br /&gt;&lt;br /&gt;&lt;ifmodule&gt;&lt;br /&gt;SecRuleEngine Off&lt;br /&gt;&lt;/ifmodule&gt;&lt;br /&gt;&lt;br /&gt;Save it.&lt;br /&gt;&lt;br /&gt;Then run:&lt;br /&gt;&lt;br /&gt;/scripts/ensure_vhost_includes --user=username&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-5381219331384738735?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/5381219331384738735/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/disable-modsecurity2-rule-for-one.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/5381219331384738735'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/5381219331384738735'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/disable-modsecurity2-rule-for-one.html' title='Disable mod_security2 rule for one domain'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-8599850792214345393</id><published>2009-06-21T13:21:00.002-07:00</published><updated>2009-06-21T13:22:11.560-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='404 error'/><category scheme='http://www.blogger.com/atom/ns#' term='Fantastico'/><category scheme='http://www.blogger.com/atom/ns#' term='ForceType'/><title type='text'>Fantastico - Got 404 error</title><content type='html'>In most server enviroments, usually one of the four syntaxes works..&lt;br /&gt;&lt;br /&gt;&lt;files&gt;&lt;br /&gt;ForceType application/x-httpd-php&lt;br /&gt;#SetHandler application/x-httpd-php&lt;br /&gt;#SetHandler application/x-httpd-php5&lt;br /&gt;#ForceType x-httpd-php&lt;br /&gt;&lt;/files&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-8599850792214345393?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/8599850792214345393/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/fantastico-got-404-error.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/8599850792214345393'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/8599850792214345393'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/fantastico-got-404-error.html' title='Fantastico - Got 404 error'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-8011610468570039100</id><published>2009-06-21T13:21:00.001-07:00</published><updated>2009-06-21T13:21:31.320-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WHM'/><category scheme='http://www.blogger.com/atom/ns#' term='MailWatch'/><title type='text'>MailWatch Error in WHM</title><content type='html'>Error:&lt;br /&gt;&lt;br /&gt;Error executing query:&lt;br /&gt;Table ‘maillog’ is marked as crashed and last (automatic?) repair failed&lt;br /&gt;&lt;br /&gt;Fix:&lt;br /&gt;&lt;br /&gt;You may need to drop the mailscanner database and recreate it.&lt;br /&gt;&lt;br /&gt;Steps:&lt;br /&gt;&lt;br /&gt;mysql -e “drop database mailscanner”&lt;br /&gt;perl /usr/local/cpanel/whostmgr/docroot/3rdparty/mailwatch/install/mwadd.pl&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-8011610468570039100?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/8011610468570039100/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/mailwatch-error-in-whm.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/8011610468570039100'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/8011610468570039100'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/mailwatch-error-in-whm.html' title='MailWatch Error in WHM'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-4716028988566243657</id><published>2009-06-21T13:20:00.001-07:00</published><updated>2009-06-21T13:20:50.406-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='whitelist_from'/><category scheme='http://www.blogger.com/atom/ns#' term='spamassassin'/><category scheme='http://www.blogger.com/atom/ns#' term='local.cf'/><title type='text'>Global whitelist</title><content type='html'>You can globally whitelist an email account or a domain for all the users on the server by simply adding the entries for those email account or domain in the file /etc/mail/spamassassin/local.cf.&lt;br /&gt;&lt;br /&gt;Syntax:&lt;br /&gt;&lt;br /&gt;whitelist_from user@domian.com&lt;br /&gt;&lt;br /&gt;whitelist_from *@domain.com&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-4716028988566243657?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/4716028988566243657/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/global-whitelist.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/4716028988566243657'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/4716028988566243657'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/global-whitelist.html' title='Global whitelist'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-4301892332137304497</id><published>2009-06-21T13:18:00.000-07:00</published><updated>2009-06-21T13:20:06.053-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Max Email Accounts'/><category scheme='http://www.blogger.com/atom/ns#' term='SMTP'/><title type='text'>Disable SMTP for a domain in cPanel</title><content type='html'>There is no option to disable only SMTP. However, you can able to disable the SMTP and pop in account settings.&lt;br /&gt;&lt;br /&gt;WHM &gt;&gt; Main &gt;&gt; Account Functions &gt;&gt; Modify an Account&lt;br /&gt;&lt;br /&gt;Set “Max Email Accounts” to 0&lt;br /&gt;&lt;br /&gt;Max Email Accounts: 0&lt;br /&gt;&lt;br /&gt;Note: After this settings the domain won’t be able to send and receive the mails.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-4301892332137304497?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/4301892332137304497/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/disable-smtp-for-domain-in-cpanel.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/4301892332137304497'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/4301892332137304497'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/disable-smtp-for-domain-in-cpanel.html' title='Disable SMTP for a domain in cPanel'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-4202903475093965302</id><published>2009-06-21T13:16:00.000-07:00</published><updated>2009-06-21T13:18:09.149-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='valiases'/><category scheme='http://www.blogger.com/atom/ns#' term='vfilters'/><category scheme='http://www.blogger.com/atom/ns#' term='trueuserdomains'/><title type='text'>Information about a domain newly added to cPanel</title><content type='html'>Whenever new domains added through cpanel, the information about this domain will be located in the following files.&lt;br /&gt;&lt;br /&gt;/etc/localdomains&lt;br /&gt;/etc/userdomains&lt;br /&gt;/etc/trueuserdomains&lt;br /&gt;/etc/vfilters&lt;br /&gt;etc/valiases etc.&lt;br /&gt;&lt;br /&gt;The configurations files will be store in /var/cpanel/users/usersname.&lt;br /&gt;Also a new directory is created in /home with username which contains subdirectories such as etc, mail, public_ftp, public_html.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-4202903475093965302?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/4202903475093965302/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/information-about-domain-newly-added-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/4202903475093965302'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/4202903475093965302'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/information-about-domain-newly-added-to.html' title='Information about a domain newly added to cPanel'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-3808547998375723304</id><published>2009-06-20T11:08:00.001-07:00</published><updated>2009-06-20T11:08:53.452-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='openvz'/><title type='text'>Important openVZ commands</title><content type='html'>&lt;div align="justify"&gt;Following are some important commands which are normally used while working on a Hardware Node.&lt;br /&gt;&lt;br /&gt;1) vzlist -a : Shows list of all the VPS’s hosted on the Node.&lt;br /&gt;2) vzctl start VPS_ID: To start the VPS.&lt;br /&gt;3) vzctl stop VPS_ID : To stop (Shut Down) the VPS.&lt;br /&gt;4) vzctl status VPS_ID : To view the status of the particular VPS.&lt;br /&gt;5) vzctl stop VPS_ID –fast : to stop the VPS quickly and forcefully&lt;br /&gt;6) vzctl enter VPS_ID : To enter in a particular VPS&lt;br /&gt;&lt;br /&gt;Configuration Commands&lt;br /&gt;&lt;br /&gt;1) vzctl set VPS_ID –hostname vps.domain.com –save: To set the Hostname of a VPS.&lt;br /&gt;&lt;br /&gt;2) vzctl set VPS_ID –ipadd 1.2.3.4 –save : To add a new IP to the hosting VPS&lt;br /&gt;&lt;br /&gt;3) vzctl set VPS_ID –ipdel 1.2.3.4 –save : To delete the IP from VPS.&lt;br /&gt;&lt;br /&gt;4) vzctl set VPS_ID –userpasswd root:new_password –save : to reset root password of a VPS.&lt;br /&gt;&lt;br /&gt;5) vzctl set VPS_ID –nameserver 1.2.3.4 –save : To add the nameserver IP’s to the VPS&lt;br /&gt;&lt;br /&gt;6) vzctl exec VPS_ID command : To run any command on a VPS from Node.&lt;br /&gt;&lt;br /&gt;6) vzyum VPS_ID install package_name : To install any package/Software on a VPS from Node.&lt;br /&gt;&lt;br /&gt;Note: VPS_ID refers to the ID of the Particular VPS.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-3808547998375723304?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/3808547998375723304/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/important-openvz-commands.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/3808547998375723304'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/3808547998375723304'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/important-openvz-commands.html' title='Important openVZ commands'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-146805517952206688</id><published>2009-06-20T11:07:00.000-07:00</published><updated>2009-06-20T11:08:06.485-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='curl'/><category scheme='http://www.blogger.com/atom/ns#' term='compiling php'/><title type='text'>Curl error while compling PHP</title><content type='html'>Error:&lt;br /&gt;&lt;br /&gt;configure: error: Please reinstall the libcurl distribution -&lt;br /&gt;easy.h should be in /include/curl/&lt;br /&gt;&lt;br /&gt;Fix:&lt;br /&gt;&lt;br /&gt;./configure&lt;br /&gt;–with-curl=/opt/curlssl/&lt;br /&gt;&lt;br /&gt;/usr/local/php5/bin/php5 -v&lt;br /&gt;&lt;br /&gt;cp -p /usr/local/php5/bin/php-cgi5 /usr/local/cpanel/cgi-sys/php5&lt;br /&gt;&lt;br /&gt;cp -p /usr/local/php5/bin/ /usr/local/cpanel/cgi-sys/php5&lt;br /&gt;&lt;br /&gt;chown root.wheel /usr/local/cpanel/cgi-sys/php5&lt;br /&gt;ll /usr/local/cpanel/cgi-sys/php5&lt;br /&gt;chown root.wheel /usr/local/cpanel/cgi-sys/php5&lt;br /&gt;&lt;br /&gt;/etc/init.d/httpd restart&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-146805517952206688?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/146805517952206688/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/curl-error-while-compling-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/146805517952206688'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/146805517952206688'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/curl-error-while-compling-php.html' title='Curl error while compling PHP'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-1885400810336242389</id><published>2009-06-20T11:06:00.000-07:00</published><updated>2009-06-20T11:07:23.868-07:00</updated><title type='text'>Configure error: utf8 mime2text() has new signature in errror log</title><content type='html'>This error is occurred due to “libc-client-devel” was missing on the server. Install the following RPM .&lt;br /&gt;&lt;br /&gt;Fix:&lt;br /&gt;&lt;br /&gt;yum install libc-client-devel&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-1885400810336242389?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/1885400810336242389/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/configure-error-utf8-mime2text-has-new.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/1885400810336242389'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/1885400810336242389'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/configure-error-utf8-mime2text-has-new.html' title='Configure error: utf8 mime2text() has new signature in errror log'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-6681349636664481066</id><published>2009-06-20T11:05:00.000-07:00</published><updated>2009-06-20T11:06:33.433-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='xml2-config'/><category scheme='http://www.blogger.com/atom/ns#' term='libxml2-devel'/><title type='text'>Xml error while installing php from source</title><content type='html'>php installation error:&lt;br /&gt;configure: error: xml2-config not found. Please check your libxml2 installation&lt;br /&gt;&lt;br /&gt;You may get this error even though if your system is having libxml2. So, it could be due to a additional libxml2 module. These can de done by installing libxml2-devel.&lt;br /&gt;&lt;br /&gt;yum install libxml2-devel&lt;br /&gt;&lt;br /&gt;That’s it. Now you may able to continue the further installation.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-6681349636664481066?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/6681349636664481066/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/xml-error-while-installing-php-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/6681349636664481066'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/6681349636664481066'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/xml-error-while-installing-php-from.html' title='Xml error while installing php from source'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-3817984479289560433</id><published>2009-06-20T11:04:00.000-07:00</published><updated>2009-06-20T11:05:46.352-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHPSUEXEC'/><category scheme='http://www.blogger.com/atom/ns#' term='magic_quotes_gpc'/><title type='text'>Advantages of PHPsuexec</title><content type='html'>&lt;div align="justify"&gt;Why we preferred switching to phpsuexec ?&lt;br /&gt;&lt;br /&gt;Because it improves the security and operation of the servers. Earlier without phpsuexec an account could run malicious PHP scripts to send spam or cause performance issues on the server it can take a while to track down which account is causing the problem and resolve it. With PHPSUEXEC enabled we can find the offending account in minutes and resolve the problem caused by the offending script. PHPsuexec will also solve some of the file and directory ownership and permission problems that some of you have had with various PHP applications (mainly the CMS applications like Joomla and Drupal but other applications have the same issues&lt;br /&gt;&lt;br /&gt;PHPsuexec Details to Keep in Mind:&lt;br /&gt;&lt;br /&gt;File/Directory Permissions and Ownership:&lt;br /&gt;&lt;br /&gt;When PHP runs as an Apache Module it executes with the user ID and group ID of the web server which is usually “nobody”. In this mode, files or directories that you require your php scripts to write to need to have 777 permissions (read/write/execute at user/group/world level). This is not secure because besides allowing the Apache and the PHP application to write to the file it also allows anyone else to read or write to the file if they figure out were to look and want to do so.&lt;br /&gt;&lt;br /&gt;With PHP running in PHPsuexec mode your php scripts now execute with your user ID and group ID. Files or directories that you require your php scripts to write to no longer need to have 777 permissions.. In fact, having your scripts or the directories they reside in set to permissions of 777 will cause an “Internal Server Error 500″ error when an attempt is made to execute your scripts. In PHPsuexec mode your scripts and directories can have a maximum of 755 permissions (read/write/execute by you, read/execute by everyone else).&lt;br /&gt;&lt;br /&gt;Files and directories will also need to be owned by your user ID and group ID. You probably don’t need to worry about this because all files you upload or create will be owned by your user ID and group ID automatically.&lt;br /&gt;&lt;br /&gt;.htaccess File and PHP directives:&lt;br /&gt;&lt;br /&gt;When PHP is run as an Apache Module mode you were able to manipulate the PHP settings from within an .htaccess file placed in a PHP script’s directory.&lt;br /&gt;&lt;br /&gt;For example you could turn off the PHP setting “magic_quotes_gpc” with this line in .htaccess:&lt;br /&gt;&lt;br /&gt;php_value magic_quotes_gpc off&lt;br /&gt;&lt;br /&gt;With PHP running in PHPsuexec mode manipulating the PHP settings is still possible however it can not be done with the .htaccess file. Using an .htaccess file with php_value entries in it will cause an “Internal Server Error 500″ error when attempting to access the scripts. This is because PHP is no longer running as an Apache module and Apache will not handle those directives any longer.&lt;br /&gt;&lt;br /&gt;All PHP configuration settings should be removed from your .htaccess files to avoid the “Internal Server Error 500″ error. Creating a php.ini file to manipulate the PHP settings will solve this issue&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-3817984479289560433?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/3817984479289560433/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/advantages-of-phpsuexec.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/3817984479289560433'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/3817984479289560433'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/advantages-of-phpsuexec.html' title='Advantages of PHPsuexec'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-152698115414723655</id><published>2009-06-20T11:03:00.002-07:00</published><updated>2009-06-20T11:04:20.636-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHPSUEXEC'/><title type='text'>Conditions in PHPSUEXEC servers</title><content type='html'>There are four main conditions in phpsuexec servers:&lt;br /&gt;&lt;br /&gt;a] Ownership must be of the user and not nobody.&lt;br /&gt;&lt;br /&gt;b] Permissions for all the php files must be 644&lt;br /&gt;&lt;br /&gt;c] htaccess should not contain any php config values.&lt;br /&gt;&lt;br /&gt;d] Permissions for all web directories must be 755.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-152698115414723655?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/152698115414723655/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/conditions-in-phpsuexec-servers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/152698115414723655'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/152698115414723655'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/conditions-in-phpsuexec-servers.html' title='Conditions in PHPSUEXEC servers'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-2660622049878846645</id><published>2009-06-20T11:03:00.001-07:00</published><updated>2009-06-20T11:03:50.527-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='temerature'/><category scheme='http://www.blogger.com/atom/ns#' term='hddtemp'/><category scheme='http://www.blogger.com/atom/ns#' term='hard disk'/><title type='text'>Monitor Hard drive temperature via command line</title><content type='html'>The hard drive temperature can be monitored via command line. For that you need to install the command binary hddtemp.&lt;br /&gt;&lt;br /&gt;In redhat servers you can install using yum.&lt;br /&gt;&lt;br /&gt;============&lt;br /&gt;&lt;br /&gt;yum install hddtemp&lt;br /&gt;&lt;br /&gt;============&lt;br /&gt;&lt;br /&gt;In other server like CENTOS, FEDORA and FreeBSD you need to install it from source file with the steps given below.&lt;br /&gt;&lt;br /&gt;=====================&lt;br /&gt;&lt;br /&gt;&gt;&gt; Download the DB file&lt;br /&gt;&lt;br /&gt;cd /etc&lt;br /&gt;&lt;br /&gt;wget http://download.savannah.nongnu.org/releases/hddtemp/hddtemp.db&lt;br /&gt;&lt;br /&gt;&gt;&gt; Download the source&lt;br /&gt;&lt;br /&gt;cd /usr/local&lt;br /&gt;&lt;br /&gt;wget http://download.savannah.nongnu.org/releases/hddtemp/hddtemp-0.3-beta7.tar.gz&lt;br /&gt;&lt;br /&gt;tar -zxvf hddtemp-0.3-beta7.tar.gz&lt;br /&gt;&lt;br /&gt;cd hddtemp-0.3-beta7&lt;br /&gt;&lt;br /&gt;make&lt;br /&gt;&lt;br /&gt;make install&lt;br /&gt;&lt;br /&gt;=====================&lt;br /&gt;&lt;br /&gt;That’s all. You have done It&lt;br /&gt;&lt;br /&gt;Typical Output of hddtemp command.&lt;br /&gt;&lt;br /&gt;=====================&lt;br /&gt;&lt;br /&gt;[root@testserver ~]# hddtemp -uC /dev/hda&lt;br /&gt;/dev/hda: SAMSUNG SP0411N: 32°C&lt;br /&gt;&lt;br /&gt;[root@system101 ~]# hddtemp /dev/hda&lt;br /&gt;/dev/hda: SAMSUNG SP0411N: 27°C&lt;br /&gt;&lt;br /&gt;=====================&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-2660622049878846645?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/2660622049878846645/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/monitor-hard-drive-temperature-via.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/2660622049878846645'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/2660622049878846645'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/monitor-hard-drive-temperature-via.html' title='Monitor Hard drive temperature via command line'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-7227263887816452471</id><published>2009-06-20T11:02:00.000-07:00</published><updated>2009-06-20T11:03:01.660-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maxperip'/><category scheme='http://www.blogger.com/atom/ns#' term='imap'/><title type='text'>Increse Maximun connection limit per IP in IMAP</title><content type='html'>IMAP conf file(cPanel): /usr/lib/courier-imap/imapd&lt;br /&gt;&lt;br /&gt;Variable : MAXPERIP 40&lt;br /&gt;&lt;br /&gt;You may need to do this if all users are under same ISP.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-7227263887816452471?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/7227263887816452471/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/increse-maximun-connection-limit-per-ip_20.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/7227263887816452471'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/7227263887816452471'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/increse-maximun-connection-limit-per-ip_20.html' title='Increse Maximun connection limit per IP in IMAP'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-206365906431838518</id><published>2009-06-20T11:01:00.002-07:00</published><updated>2009-06-20T11:02:18.059-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='bash'/><category scheme='http://www.blogger.com/atom/ns#' term='linux commands'/><title type='text'>A-Z Index of the Linux BASH command line</title><content type='html'>alias Create an alias&lt;br /&gt;apropos Search Help manual pages (man -k)&lt;br /&gt;awk Find and Replace text, database sort/validate/index&lt;br /&gt;break Exit from a loop&lt;br /&gt;builtin Run a shell builtin&lt;br /&gt;bzip2 Compress or decompress named file(s)&lt;br /&gt;&lt;br /&gt;cal Display a calendar&lt;br /&gt;case Conditionally perform a command&lt;br /&gt;cat Display the contents of a file&lt;br /&gt;cd Change Directory&lt;br /&gt;cfdisk Partition table manipulator for Linux&lt;br /&gt;chgrp Change group ownership&lt;br /&gt;chmod Change access permissions&lt;br /&gt;chown Change file owner and group&lt;br /&gt;chroot Run a command with a different root directory&lt;br /&gt;cksum Print CRC checksum and byte counts&lt;br /&gt;clear Clear terminal screen&lt;br /&gt;cmp Compare two files&lt;br /&gt;comm Compare two sorted files line by line&lt;br /&gt;command Run a command - ignoring shell functions&lt;br /&gt;continue Resume the next iteration of a loop&lt;br /&gt;cp Copy one or more files to another location&lt;br /&gt;cron Daemon to execute scheduled commands&lt;br /&gt;crontab Schedule a command to run at a later time&lt;br /&gt;csplit Split a file into context-determined pieces&lt;br /&gt;cut Divide a file into several parts&lt;br /&gt;&lt;br /&gt;date Display or change the date &amp;amp; time&lt;br /&gt;dc Desk Calculator&lt;br /&gt;dd Data Dump - Convert and copy a file&lt;br /&gt;ddrescue Data recovery tool&lt;br /&gt;declare Declare variables and give them attributes&lt;br /&gt;df Display free disk space&lt;br /&gt;diff Display the differences between two files&lt;br /&gt;diff3 Show differences among three files&lt;br /&gt;dig DNS lookup&lt;br /&gt;dir Briefly list directory contents&lt;br /&gt;dircolors Colour setup for `ls’&lt;br /&gt;dirname Convert a full pathname to just a path&lt;br /&gt;dirs Display list of remembered directories&lt;br /&gt;du Estimate file space usage&lt;br /&gt;&lt;br /&gt;echo Display message on screen&lt;br /&gt;egrep Search file(s) for lines that match an extended expression&lt;br /&gt;eject Eject removable media&lt;br /&gt;enable Enable and disable builtin shell commands&lt;br /&gt;env Environment variables&lt;br /&gt;ethtool Ethernet card settings&lt;br /&gt;eval Evaluate several commands/arguments&lt;br /&gt;exec Execute a command&lt;br /&gt;exit Exit the shell&lt;br /&gt;expand Convert tabs to spaces&lt;br /&gt;export Set an environment variable&lt;br /&gt;expr Evaluate expressions&lt;br /&gt;&lt;br /&gt;false Do nothing, unsuccessfully&lt;br /&gt;fdformat Low-level format a floppy disk&lt;br /&gt;fdisk Partition table manipulator for Linux&lt;br /&gt;fgrep Search file(s) for lines that match a fixed string&lt;br /&gt;file Determine file type&lt;br /&gt;find Search for files that meet a desired criteria&lt;br /&gt;fmt Reformat paragraph text&lt;br /&gt;fold Wrap text to fit a specified width.&lt;br /&gt;for Expand words, and execute commands&lt;br /&gt;format Format disks or tapes&lt;br /&gt;free Display memory usage&lt;br /&gt;fsck File system consistency check and repair&lt;br /&gt;ftp File Transfer Protocol&lt;br /&gt;function Define Function Macros&lt;br /&gt;&lt;br /&gt;gawk Find and Replace text within file(s)&lt;br /&gt;getopts Parse positional parameters&lt;br /&gt;grep Search file(s) for lines that match a given pattern&lt;br /&gt;groups Print group names a user is in&lt;br /&gt;gzip Compress or decompress named file(s)&lt;br /&gt;&lt;br /&gt;hash Remember the full pathname of a name argument&lt;br /&gt;head Output the first part of file(s)&lt;br /&gt;history Command History&lt;br /&gt;hostname Print or set system name&lt;br /&gt;&lt;br /&gt;id Print user and group id’s&lt;br /&gt;if Conditionally perform a command&lt;br /&gt;ifconfig Configure a network interface&lt;br /&gt;import Capture an X server screen and save the image to file&lt;br /&gt;install Copy files and set attributes&lt;br /&gt;&lt;br /&gt;join Join lines on a common field&lt;br /&gt;&lt;br /&gt;kill Stop a process from running&lt;br /&gt;&lt;br /&gt;less Display output one screen at a time&lt;br /&gt;let Perform arithmetic on shell variables&lt;br /&gt;ln Make links between files&lt;br /&gt;local Create variables&lt;br /&gt;locate Find files&lt;br /&gt;logname Print current login name&lt;br /&gt;logout Exit a login shell&lt;br /&gt;look Display lines beginning with a given string&lt;br /&gt;lpc Line printer control program&lt;br /&gt;lpr Off line print&lt;br /&gt;lprint Print a file&lt;br /&gt;lprintd Abort a print job&lt;br /&gt;lprintq List the print queue&lt;br /&gt;lprm Remove jobs from the print queue&lt;br /&gt;ls List information about file(s)&lt;br /&gt;lsof List open files&lt;br /&gt;&lt;br /&gt;make Recompile a group of programs&lt;br /&gt;man Help manual&lt;br /&gt;mkdir Create new folder(s)&lt;br /&gt;mkfifo Make FIFOs (named pipes)&lt;br /&gt;mkisofs Create an hybrid ISO9660/JOLIET/HFS filesystem&lt;br /&gt;mknod Make block or character special files&lt;br /&gt;more Display output one screen at a time&lt;br /&gt;mount Mount a file system&lt;br /&gt;mtools Manipulate MS-DOS files&lt;br /&gt;mv Move or rename files or directories&lt;br /&gt;&lt;br /&gt;netstat Networking information&lt;br /&gt;nice Set the priority of a command or job&lt;br /&gt;nl Number lines and write files&lt;br /&gt;nohup Run a command immune to hangups&lt;br /&gt;nslookup Query Internet name servers interactively&lt;br /&gt;&lt;br /&gt;passwd Modify a user password&lt;br /&gt;paste Merge lines of files&lt;br /&gt;pathchk Check file name portability&lt;br /&gt;ping Test a network connection&lt;br /&gt;popd Restore the previous value of the current directory&lt;br /&gt;pr Prepare files for printing&lt;br /&gt;printcap Printer capability database&lt;br /&gt;printenv Print environment variables&lt;br /&gt;printf Format and print data&lt;br /&gt;ps Process status&lt;br /&gt;pushd Save and then change the current directory&lt;br /&gt;pwd Print Working Directory&lt;br /&gt;&lt;br /&gt;quota Display disk usage and limits&lt;br /&gt;quotacheck Scan a file system for disk usage&lt;br /&gt;quotactl Set disk quotas&lt;br /&gt;&lt;br /&gt;ram ram disk device&lt;br /&gt;rcp Copy files between two machines.&lt;br /&gt;read read a line from standard input&lt;br /&gt;readonly Mark variables/functions as readonly&lt;br /&gt;remsync Synchronize remote files via email&lt;br /&gt;return Exit a shell function&lt;br /&gt;rm Remove files&lt;br /&gt;rmdir Remove folder(s)&lt;br /&gt;rsync Remote file copy (Synchronize file trees)&lt;br /&gt;&lt;br /&gt;screen Terminal window manager&lt;br /&gt;scp Secure copy (remote file copy)&lt;br /&gt;sdiff Merge two files interactively&lt;br /&gt;sed Stream Editor&lt;br /&gt;select Accept keyboard input&lt;br /&gt;seq Print numeric sequences&lt;br /&gt;set Manipulate shell variables and functions&lt;br /&gt;sftp Secure File Transfer Program&lt;br /&gt;shift Shift positional parameters&lt;br /&gt;shopt Shell Options&lt;br /&gt;shutdown Shutdown or restart linux&lt;br /&gt;sleep Delay for a specified time&lt;br /&gt;sort Sort text files&lt;br /&gt;source Run commands from a file `.’&lt;br /&gt;split Split a file into fixed-size pieces&lt;br /&gt;ssh Secure Shell client (remote login program)&lt;br /&gt;strace Trace system calls and signals&lt;br /&gt;su Substitute user identity&lt;br /&gt;sum Print a checksum for a file&lt;br /&gt;symlink Make a new name for a file&lt;br /&gt;sync Synchronize data on disk with memory&lt;br /&gt;&lt;br /&gt;tail Output the last part of files&lt;br /&gt;tar Tape ARchiver&lt;br /&gt;tee Redirect output to multiple files&lt;br /&gt;test Evaluate a conditional expression&lt;br /&gt;time Measure Program running time&lt;br /&gt;times User and system times&lt;br /&gt;touch Change file timestamps&lt;br /&gt;top List processes running on the system&lt;br /&gt;traceroute Trace Route to Host&lt;br /&gt;trap Run a command when a signal is set(bourne)&lt;br /&gt;tr Translate, squeeze, and/or delete characters&lt;br /&gt;true Do nothing, successfully&lt;br /&gt;tsort Topological sort&lt;br /&gt;tty Print filename of terminal on stdin&lt;br /&gt;type Describe a command&lt;br /&gt;&lt;br /&gt;ulimit Limit user resources&lt;br /&gt;umask Users file creation mask&lt;br /&gt;umount Unmount a device&lt;br /&gt;unalias Remove an alias&lt;br /&gt;uname Print system information&lt;br /&gt;unexpand Convert spaces to tabs&lt;br /&gt;uniq Uniquify files&lt;br /&gt;units Convert units from one scale to another&lt;br /&gt;unset Remove variable or function names&lt;br /&gt;unshar Unpack shell archive scripts&lt;br /&gt;until Execute commands (until error)&lt;br /&gt;useradd Create new user account&lt;br /&gt;usermod Modify user account&lt;br /&gt;users List users currently logged in&lt;br /&gt;uuencode Encode a binary file&lt;br /&gt;uudecode Decode a file created by uuencode&lt;br /&gt;&lt;br /&gt;v Verbosely list directory contents (`ls -l -b’)&lt;br /&gt;vdir Verbosely list directory contents (`ls -l -b’)&lt;br /&gt;vi Text Editor&lt;br /&gt;&lt;br /&gt;watch Execute/display a program periodically&lt;br /&gt;wc Print byte, word, and line counts&lt;br /&gt;whereis Report all known instances of a command&lt;br /&gt;which Locate a program file in the user’s path.&lt;br /&gt;while Execute commands&lt;br /&gt;who Print all usernames currently logged in&lt;br /&gt;whoami Print the current user id and name (`id -un’)&lt;br /&gt;Wget Retrieve web pages or files via HTTP, HTTPS or FTP&lt;br /&gt;&lt;br /&gt;xargs Execute utility, passing constructed argument list(s)&lt;br /&gt;yes Print a string until interrupted&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-206365906431838518?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/206365906431838518/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/z-index-of-linux-bash-command-line.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/206365906431838518'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/206365906431838518'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/z-index-of-linux-bash-command-line.html' title='A-Z Index of the Linux BASH command line'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-1138398611705644733</id><published>2009-06-20T11:01:00.001-07:00</published><updated>2009-06-20T11:01:29.335-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='yum'/><category scheme='http://www.blogger.com/atom/ns#' term='commands'/><title type='text'>YUM - Commands</title><content type='html'>yum install package_name Download and install a rpm package&lt;br /&gt;&lt;br /&gt;yum localinstall package_name.rpm   That will install an RPM, and try to resolve all the dependencies for you using your repositories.&lt;br /&gt;&lt;br /&gt;yum update   Update all rpm packages installed on the system&lt;br /&gt;&lt;br /&gt;yum update package_name    Upgrade a rpm package&lt;br /&gt;&lt;br /&gt;yum remove package_name  Remove a rpm package&lt;br /&gt;&lt;br /&gt;yum list  List all packages installed on the system&lt;br /&gt;&lt;br /&gt;yum search package_name Find a package on rpm repository&lt;br /&gt;&lt;br /&gt;yum clean packages  Clean up rpm cache erasing downloaded packages&lt;br /&gt;&lt;br /&gt;yum clean headers  Remove all files headers that the system uses toresolve dependency&lt;br /&gt;&lt;br /&gt;yum update -y&lt;br /&gt;&lt;br /&gt;yum clean all&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-1138398611705644733?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/1138398611705644733/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/yum-commands.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/1138398611705644733'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/1138398611705644733'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/yum-commands.html' title='YUM - Commands'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-972420773663996858</id><published>2009-06-20T10:59:00.000-07:00</published><updated>2009-06-20T11:00:30.760-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tune2fs'/><category scheme='http://www.blogger.com/atom/ns#' term='ext2'/><category scheme='http://www.blogger.com/atom/ns#' term='ext3'/><title type='text'>Converting from Ext3 to Ext2</title><content type='html'>There may come a time when you want to convert EXT3 to Ext2. For directories other than the root directory or /usr, it’s pretty easy. The following uses the example of /dev/hda10 mounted to directory /test:&lt;br /&gt;&lt;br /&gt;* umount /dev/hda10&lt;br /&gt;&lt;br /&gt;* tune2fs -O ^has_journal /dev/hda10&lt;br /&gt;&lt;br /&gt;* e2fsck /dev/hda10&lt;br /&gt;&lt;br /&gt;* Edit /etc/fstab to change /dev/hda10 to mount type ext2&lt;br /&gt;&lt;br /&gt;* mount /dev/hda10&lt;br /&gt;&lt;br /&gt;The tune2fs command removes the journal inode, and the e2fsck command completes that removal.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-972420773663996858?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/972420773663996858/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/converting-from-ext3-to-ext2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/972420773663996858'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/972420773663996858'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/converting-from-ext3-to-ext2.html' title='Converting from Ext3 to Ext2'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-503247364092956821</id><published>2009-06-20T10:57:00.000-07:00</published><updated>2009-06-20T10:58:19.463-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fstab'/><category scheme='http://www.blogger.com/atom/ns#' term='ext2 hda'/><category scheme='http://www.blogger.com/atom/ns#' term='ext3'/><title type='text'>Converting from Ext2 to Ext 3</title><content type='html'>The conversion procedure is simple enough. Imagine /dev/hda10 mounted as /test – the procedure would be as follows:&lt;br /&gt;&lt;br /&gt;* Log in as root&lt;br /&gt;&lt;br /&gt;* Make sure /etc/fstab has /dev/hda10 mounted to /test as ext2, read write&lt;br /&gt;&lt;br /&gt;* umount /dev/hda10&lt;br /&gt;&lt;br /&gt;If you can’t unmount it, then remount it read only (mount -o&lt;br /&gt;&lt;br /&gt;remount,ro /dev/hda10)&lt;br /&gt;&lt;br /&gt;* tune2fs -j /dev/hda10&lt;br /&gt;&lt;br /&gt;* Edit /etc/fstab, and for /dev/hda10, change ext2 to ext3&lt;br /&gt;&lt;br /&gt;* mount /dev/hda10&lt;br /&gt;&lt;br /&gt;* /sbin/shutdown -h now&lt;br /&gt;&lt;br /&gt;* mount | grep /dev/hda10&lt;br /&gt;&lt;br /&gt;If it’s not shown as ext3, reboot, if still not, troubleshoot&lt;br /&gt;&lt;br /&gt;Otherwise, you’re done.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-503247364092956821?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/503247364092956821/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/converting-from-ext2-to-ext-3.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/503247364092956821'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/503247364092956821'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/converting-from-ext2-to-ext-3.html' title='Converting from Ext2 to Ext 3'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-8143365512709413445</id><published>2009-06-20T10:56:00.000-07:00</published><updated>2009-06-20T10:57:06.533-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='uname'/><category scheme='http://www.blogger.com/atom/ns#' term='kernal'/><category scheme='http://www.blogger.com/atom/ns#' term='sysctl'/><category scheme='http://www.blogger.com/atom/ns#' term='lsmod'/><category scheme='http://www.blogger.com/atom/ns#' term='ksyms'/><category scheme='http://www.blogger.com/atom/ns#' term='rmmod'/><category scheme='http://www.blogger.com/atom/ns#' term='modprobe'/><category scheme='http://www.blogger.com/atom/ns#' term='commands'/><title type='text'>Kernel commands</title><content type='html'>depmod - Create a module dependency list.&lt;br /&gt;&lt;br /&gt;insmod - Install a module.&lt;br /&gt;&lt;br /&gt;modinfo - Display information about a module.&lt;br /&gt;&lt;br /&gt;kerneld - Run kernel program in user space.&lt;br /&gt;&lt;br /&gt;ksyms - Display kernel symbols.&lt;br /&gt;&lt;br /&gt;lsmod - List installed modules.&lt;br /&gt;&lt;br /&gt;modprobe - Load or list loadable modules.&lt;br /&gt;&lt;br /&gt;rmmod - Remove specified module.&lt;br /&gt;&lt;br /&gt;sysctl - Configure kernel parameters at runtime.&lt;br /&gt;&lt;br /&gt;uname - Display system information.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-8143365512709413445?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/8143365512709413445/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/kernel-commands.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/8143365512709413445'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/8143365512709413445'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/kernel-commands.html' title='Kernel commands'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-6302875701691071731</id><published>2009-06-20T10:55:00.000-07:00</published><updated>2009-06-20T10:56:00.732-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maxclientsperip'/><category scheme='http://www.blogger.com/atom/ns#' term='ftp'/><category scheme='http://www.blogger.com/atom/ns#' term='pure-ftpd'/><title type='text'>Increse Maximun connection limit per IP in FTP(Pure-ftpd)</title><content type='html'>This can be done by increasing MaxClientsPerIP to higher value in Pure-ftpd configuration file “/etc/pure-ftpd.conf”.&lt;br /&gt;&lt;br /&gt;MaxClientsPerIP 20&lt;br /&gt;&lt;br /&gt;The normal limit is 20. It is not recommended to set more than 50.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-6302875701691071731?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/6302875701691071731/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/increse-maximun-connection-limit-per-ip.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/6302875701691071731'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/6302875701691071731'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/increse-maximun-connection-limit-per-ip.html' title='Increse Maximun connection limit per IP in FTP(Pure-ftpd)'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-3373142596542177781</id><published>2009-06-20T10:53:00.000-07:00</published><updated>2009-06-20T10:54:58.926-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ping'/><category scheme='http://www.blogger.com/atom/ns#' term='icmp'/><title type='text'>Disable PING and ICMP requests</title><content type='html'>Permanent:&lt;br /&gt;&lt;br /&gt;The below kernel parameters are used to disable the ICMP/PING requests. You can add this in /etc/sysctl.conf file.&lt;br /&gt;&lt;br /&gt;net.ipv4.icmp_echo_ignore_broadcasts = 1&lt;br /&gt;net.ipv4.icmp_echo_ignore_all = 1&lt;br /&gt;&lt;br /&gt;Apply the changes by using the sysctl -p command:&lt;br /&gt;&lt;br /&gt;sysctl -p&lt;br /&gt;&lt;br /&gt;Temporary :&lt;br /&gt;&lt;br /&gt;Add the following line to your init script for the network (the name depends on the distribution you use):&lt;br /&gt;&lt;br /&gt;echo 1 &gt;/proc/sys/net/ipv4/icmp_echo_ignore_all&lt;br /&gt;&lt;br /&gt;This disables ping responses.&lt;br /&gt;&lt;br /&gt;To re-enable, use the following command:&lt;br /&gt;&lt;br /&gt;echo 0 &gt;/proc/sys/net/ipv4/icmp_echo_ignore_all&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-3373142596542177781?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/3373142596542177781/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/disable-ping-and-icmp-requests.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/3373142596542177781'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/3373142596542177781'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/disable-ping-and-icmp-requests.html' title='Disable PING and ICMP requests'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-3344163328648618803</id><published>2009-06-03T23:07:00.002-07:00</published><updated>2009-06-03T23:08:20.621-07:00</updated><title type='text'>How to disable mod_security for a single domain</title><content type='html'>Add the following entries in .htaccess file for the domain. It will disable the mod_sec rules for that domain on the server.&lt;br /&gt;&lt;br /&gt;SecFilterEngine Off&lt;br /&gt;SecFilterScanPOST Off&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-3344163328648618803?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/3344163328648618803/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/how-to-disable-modsecurity-for-single.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/3344163328648618803'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/3344163328648618803'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/how-to-disable-modsecurity-for-single.html' title='How to disable mod_security for a single domain'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-7930866948016029133</id><published>2009-06-03T23:07:00.001-07:00</published><updated>2009-06-03T23:07:45.701-07:00</updated><title type='text'>Exim commands</title><content type='html'>Queue information&lt;br /&gt;*******************&lt;br /&gt;To print a count of the messages in the queue&lt;br /&gt;root@localhost# exim -bpc&lt;br /&gt;&lt;br /&gt;Print a listing of the messages in the queue (time queued, size, message-id, sender, recipient)&lt;br /&gt;root@localhost# exim -bp&lt;br /&gt;&lt;br /&gt;Print a summary of messages in the queue (count, volume, oldest, newest, domain, and totals):&lt;br /&gt;root@localhost# exim -bp | exiqsumm&lt;br /&gt;&lt;br /&gt;Generate and display Exim stats from a logfile:&lt;br /&gt;root@localhost# eximstats /var/log/exim_mainlog&lt;br /&gt;&lt;br /&gt;Same as above, with less verbose output:&lt;br /&gt;root@localhost# eximstats -ne -nr -nt /var/log/exim_mainlog&lt;br /&gt;&lt;br /&gt;Same as above, for one particular day:&lt;br /&gt;root@localhost# fgrep YYYY-MM-DD /var/log/exim_mainlog | eximstats&lt;br /&gt;&lt;br /&gt;Print what Exim is doing right now:&lt;br /&gt;root@localhost# exiwhat&lt;br /&gt;&lt;br /&gt;********************&lt;br /&gt;Searching the queue&lt;br /&gt;********************&lt;br /&gt;&lt;br /&gt;Search the queue for messages from a specific sender:&lt;br /&gt;root@localhost# exiqgrep -f [luser]@domain&lt;br /&gt;&lt;br /&gt;Search the queue for messages for a specific recipient/domain:&lt;br /&gt;root@localhost# exiqgrep -r [luser]@domain&lt;br /&gt;&lt;br /&gt;To Print just the message-id of the entire queue:&lt;br /&gt;root@localhost# exiqgrep -i&lt;br /&gt;&lt;br /&gt;*******************&lt;br /&gt;Managing the queue&lt;br /&gt;********************&lt;br /&gt;&lt;br /&gt;Start a queue run:&lt;br /&gt;root@localhost# exim -q -v&lt;br /&gt;&lt;br /&gt;Start a queue run for just local deliveries:&lt;br /&gt;root@localhost# exim -ql -v&lt;br /&gt;&lt;br /&gt;Remove a message from the queue:&lt;br /&gt;root@localhost# exim -Mrm: &lt;message-id&gt;&lt;br /&gt;&lt;br /&gt;Freeze a message:&lt;br /&gt;root@localhost# exim -Mf &lt;message-id&gt;&lt;br /&gt;&lt;br /&gt;Deliver a specific message:&lt;br /&gt;root@localhost# exim -M &lt;message-id&gt;&lt;br /&gt;&lt;br /&gt;Force a message to fail and bounce:&lt;br /&gt;root@localhost# exim -Mg &lt;message-id&gt;&lt;br /&gt;&lt;br /&gt;Remove all frozen messages:&lt;br /&gt;root@localhost# exiqgrep -z -i | xargs exim -Mrm&lt;br /&gt;&lt;br /&gt;Freeze all queued mail from a given sender:&lt;br /&gt;root@localhost# exiqgrep -i -f luser@example.tld | xargs exim -Mf&lt;br /&gt;&lt;br /&gt;View a message’s headers:&lt;br /&gt;root@localhost# exim -Mvh &lt;message-id&gt;&lt;br /&gt;&lt;br /&gt;View a message’s body:&lt;br /&gt;root@localhost# exim -Mvb &lt;message-id&gt;&lt;br /&gt;&lt;br /&gt;View a message’s logs:&lt;br /&gt;root@localhost# exim -Mvl &lt;message-id&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-7930866948016029133?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/7930866948016029133/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/exim-commands.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/7930866948016029133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/7930866948016029133'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/exim-commands.html' title='Exim commands'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-2258145817395082995</id><published>2009-06-03T23:06:00.000-07:00</published><updated>2009-06-03T23:07:04.516-07:00</updated><title type='text'>Lost Joomla admin password - how to reset ?</title><content type='html'>On cPanel dedicated server, I have come around where people have lost their Joomla admin password and don’t know what to do. Don’t get panicked, be patient – I will show how you can reset your lost admin password for your Joomla website.&lt;br /&gt;&lt;br /&gt;First within you cPanel control panel;&lt;br /&gt;&lt;br /&gt;goto PHPMyAdmin and select the Joomla database that you have, once selected check for the table named jos_users click on it&lt;br /&gt;&lt;br /&gt;Browse the table;&lt;br /&gt;&lt;br /&gt;On the right side you will see your admin login name (I assume it is admin, some may have different as they have set when Joomla was installed) in front of the username under the column named “password” you will see some encrypted value make sure the “usertype” column contains “super administrator”. Now, click on the pencil (to edit) and in front of password put the value “21232f297a57a5a743894a0e4a801fc3” without the quotes, which means that your password is “admin” and click on “Go”.&lt;br /&gt;&lt;br /&gt;That’s all , you have reset the password.&lt;br /&gt;&lt;br /&gt;Now, you can check by logging in to your Joomla site. It should be working now.&lt;br /&gt;&lt;br /&gt;Note: Works for both Joomla 1.0 and Joomla 1.5 versions.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-2258145817395082995?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/2258145817395082995/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/lost-joomla-admin-password-how-to-reset.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/2258145817395082995'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/2258145817395082995'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/lost-joomla-admin-password-how-to-reset.html' title='Lost Joomla admin password - how to reset ?'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-3568321112967226948</id><published>2009-06-03T23:03:00.001-07:00</published><updated>2009-06-03T23:03:48.515-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='spf'/><title type='text'>Installing SPF</title><content type='html'>For a single domain&lt;br /&gt;&lt;br /&gt;Run the following script.&lt;br /&gt;&lt;br /&gt;/usr/local/cpanel/bin/spf_installer useraneme&lt;br /&gt;&lt;br /&gt;/etc/init.d/exim restart&lt;br /&gt;&lt;br /&gt;cd /var/named&lt;br /&gt;&lt;br /&gt;rndc reload domain.com&lt;br /&gt;&lt;br /&gt;:)&lt;br /&gt;&lt;br /&gt;Server wide installation&lt;br /&gt;&lt;br /&gt;Run the script on the server.&lt;br /&gt;&lt;br /&gt;for i in `ls /var/cpanel/users` ;do /usr/local/cpanel/bin/spf_installer $i ;done&lt;br /&gt;&lt;br /&gt;Restart the exim and named service.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-3568321112967226948?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/3568321112967226948/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/installing-spf.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/3568321112967226948'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/3568321112967226948'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/installing-spf.html' title='Installing SPF'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-200250667033774248</id><published>2009-06-03T23:02:00.000-07:00</published><updated>2009-06-03T23:03:08.075-07:00</updated><title type='text'>Error from park wrapper: domain.com is already configured</title><content type='html'>On a cPanel server if you get the error: Error from park wrapper: domain.com is already configured while adding an add-on domain under cPanel. Make sure to remove the domain.com entries from:&lt;br /&gt;&lt;br /&gt;/var/named/domain.com.db&lt;br /&gt;&lt;br /&gt;/etc/httpd/conf/httpd.conf&lt;br /&gt;&lt;br /&gt;/var/cpanel/users/username&lt;br /&gt;&lt;br /&gt;/etc/userdomains&lt;br /&gt;&lt;br /&gt;/etc/localdomains&lt;br /&gt;&lt;br /&gt;Renaming or commenting will not help; you will have to remove the entries completely. Try now.&lt;br /&gt;&lt;br /&gt;This worked for me.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-200250667033774248?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/200250667033774248/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/error-from-park-wrapper-domaincom-is.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/200250667033774248'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/200250667033774248'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/error-from-park-wrapper-domaincom-is.html' title='Error from park wrapper: domain.com is already configured'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-4924120840206163597</id><published>2009-06-03T23:01:00.002-07:00</published><updated>2009-06-03T23:02:11.672-07:00</updated><title type='text'>Rvskin giving error on cPanel server</title><content type='html'>For some reason when upcp completed on cPanel server rvskin started giving errors like below:&lt;br /&gt;&lt;br /&gt;===============&lt;br /&gt;main::cpanel_parse('GLOB(0x9c3af58)') called at cpanel.pl line 2912&lt;br /&gt;main::doinclude('rvbranding/indexheader.html', 2) called at cpanel.pl line 1673&lt;br /&gt;main::exectag('&lt;cpanel relinclude="rvbranding/indexheader.html"&gt;') called at cpanel.pl line 4797&lt;br /&gt;main::dotag(undef) called at cpanel.pl line 4664&lt;br /&gt;&lt;br /&gt;===============&lt;br /&gt;&lt;br /&gt;To get this fixed do the following:&lt;br /&gt;&lt;br /&gt;root# mkdir /root/rvadmin&lt;br /&gt;&lt;br /&gt;root# cd /root/rvadmin&lt;br /&gt;&lt;br /&gt;root# rm -f rvauto.tar.bz2&lt;br /&gt;&lt;br /&gt;root# wget http://download.rvglobalsoft.com/download.php/&lt;br /&gt;&lt;br /&gt;download/rvskin-auto/saveto/rvauto.tar.bz2&lt;br /&gt;&lt;br /&gt;root# tar -xvjf rvauto.tar.bz2&lt;br /&gt;&lt;br /&gt;root# perl /root/rvadmin/auto_rvskin.pl&lt;br /&gt;&lt;br /&gt;Try it :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-4924120840206163597?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/4924120840206163597/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/rvskin-giving-error-on-cpanel-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/4924120840206163597'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/4924120840206163597'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/rvskin-giving-error-on-cpanel-server.html' title='Rvskin giving error on cPanel server'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-4224416099465049728</id><published>2009-06-03T23:01:00.001-07:00</published><updated>2009-06-03T23:01:29.771-07:00</updated><title type='text'>Manage www with .htaccess</title><content type='html'>For your domain if you require www you can achieve this by adding the following code in your .htaccess file:&lt;br /&gt;&lt;br /&gt;Options +FollowSymLinks&lt;br /&gt;RewriteEngine On&lt;br /&gt;RewriteBase /&lt;br /&gt;RewriteCond %{HTTP_HOST} !^www\.domain\.com$ [NC]&lt;br /&gt;RewriteRule ^(.*)$ /$1 [R=301,L]&lt;br /&gt;&lt;br /&gt;Now, what if you don’t require www, add this code in your .htaccess:&lt;br /&gt;&lt;br /&gt;Options +FollowSymLinks&lt;br /&gt;RewriteEngine On&lt;br /&gt;RewriteBase /&lt;br /&gt;RewriteCond %{HTTP_HOST} !^domain\.com$ [NC]&lt;br /&gt;RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]&lt;br /&gt;&lt;br /&gt;Try it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-4224416099465049728?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/4224416099465049728/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/manage-www-with-htaccess.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/4224416099465049728'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/4224416099465049728'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/manage-www-with-htaccess.html' title='Manage www with .htaccess'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-5316840878009333680</id><published>2009-06-03T22:52:00.000-07:00</published><updated>2009-06-03T23:00:32.937-07:00</updated><title type='text'>Server Securing - Setup</title><content type='html'>Securing Your Server&lt;br /&gt;&lt;br /&gt;Below given are some of the steps that can be used to secure your server.&lt;br /&gt;&lt;br /&gt;Disable identification output for Apache&lt;br /&gt;&lt;br /&gt;To disable the version output for proftp, SSH into server and login as root.&lt;br /&gt;&lt;br /&gt;At command prompt type: pico /etc/httpd/conf/httpd.conf&lt;br /&gt;&lt;br /&gt;Scroll (way) down and change the following line to&lt;br /&gt;&lt;br /&gt;ServerSignature Off&lt;br /&gt;&lt;br /&gt;Restart Apache&lt;br /&gt;&lt;br /&gt;At command prompt type: /etc/rc.d/init.d/httpd restart&lt;br /&gt;&lt;br /&gt;These are applications that will help to secure your server.&lt;br /&gt;&lt;br /&gt;Install and run chkrootkit&lt;br /&gt;&lt;br /&gt;To install chrootkit, SSH into server and login as root.&lt;br /&gt;&lt;br /&gt;At command prompt type: cd /root/&lt;br /&gt;&lt;br /&gt;At command prompt type: wget ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz&lt;br /&gt;&lt;br /&gt;At command prompt type: tar xvzf chkrootkit.tar.gz&lt;br /&gt;&lt;br /&gt;At command prompt type: cd chkrootkit-0.44&lt;br /&gt;&lt;br /&gt;At command prompt type: make sense&lt;br /&gt;&lt;br /&gt;To run chkrootkit&lt;br /&gt;&lt;br /&gt;At command prompt type: /root/chkrootkit-0.44/chkrootkit&lt;br /&gt;&lt;br /&gt;Make sure you run it on a regular basis, perhaps including it in a cron job.&lt;br /&gt;&lt;br /&gt;Install APF Firewall&lt;br /&gt;&lt;br /&gt;To install APF, SSH into server and login as root.&lt;br /&gt;&lt;br /&gt;At command prompt type: cd /root/&lt;br /&gt;&lt;br /&gt;At command prompt type: wget http://www.rfxnetworks.com/downloads/apf-current.tar.gz&lt;br /&gt;&lt;br /&gt;At command prompt type: tar -xvzf apf-current.tar.gz&lt;br /&gt;&lt;br /&gt;At command prompt type: rm -f apf-current.tar.gz&lt;br /&gt;&lt;br /&gt;At command prompt type: cd apf-0.9.4-6&lt;br /&gt;&lt;br /&gt;At command prompt type: sh ./install.sh&lt;br /&gt;&lt;br /&gt;After APF has been installed, you need to edit the configuration file.&lt;br /&gt;&lt;br /&gt;At command prompt type: cd /etc/apf&lt;br /&gt;&lt;br /&gt;At command prompt type: pico -w conf.apf&lt;br /&gt;&lt;br /&gt;Scroll down and find&lt;br /&gt;&lt;br /&gt;USE_DS=”0″&lt;br /&gt;&lt;br /&gt;change it to&lt;br /&gt;&lt;br /&gt;USE_DS=”1″&lt;br /&gt;&lt;br /&gt;Now scroll down and configure the Ports. The following ports are required for CPanel:&lt;br /&gt;&lt;br /&gt;Code:&lt;br /&gt;&lt;br /&gt;Common ingress (inbound) TCP ports&lt;br /&gt;IG_TCP_CPORTS=”21,22,25,53,80,110,143,465,953,993,995,2082,2083,2084,2086,2087,2095,2096,3306,6666,7786,3000_3500″&lt;br /&gt;&lt;br /&gt;Note: If you changed the port for SSH, be sure to include that port and remove port 22.&lt;br /&gt;&lt;br /&gt;—–&lt;br /&gt;21 FTP (TCP)&lt;br /&gt;22 SSH (TCP)&lt;br /&gt;25 SMTP (TCP)&lt;br /&gt;53 DNS - Domain Name Server (TCP)&lt;br /&gt;80 HTTP (TCP)&lt;br /&gt;110 POP3 (TCP)&lt;br /&gt;143 IMAP (TCP)&lt;br /&gt;443 HTTPS (TCP)&lt;br /&gt;465 sSMTP (TCP)&lt;br /&gt;953 ??BIND??&lt;br /&gt;993 IMAP4 protocol over TLS/SSL (TCP)&lt;br /&gt;995 POP3 protocol over TLS/SSL (was spop3) (TCP)&lt;br /&gt;2082 CPANEL (http://sitename.com:2082) (TCP)&lt;br /&gt;2083 CPANEL SSL (https://sitename.com:2083) (TCP)&lt;br /&gt;2084 entropychat server (disable from CPANEL service manager if not used) (TCP)&lt;br /&gt;2086 WHM (http://sitename.com:2086) (TCP)&lt;br /&gt;2087 WHM SSL (https://sitename.com:2087) (TCP)&lt;br /&gt;2095 WebMail (http://sitename.com:2095) (TCP)&lt;br /&gt;2096 WebMail SSL (https://sitename.com:2096)&lt;br /&gt;3306 mySQL remote access (TCP)&lt;br /&gt;6666 Melange chat Server (disable from CPANEL service manager if not used) (TCP)&lt;br /&gt;7786 Interchange (TCP)&lt;br /&gt;3000_3500&lt;br /&gt;—–&lt;br /&gt;5100 for ASP,&lt;br /&gt;8080 and 8443 for JSP if you use them.&lt;br /&gt;—–&lt;br /&gt;&lt;br /&gt;Code:&lt;br /&gt;&lt;br /&gt;Common ingress (inbound) UDP ports&lt;br /&gt;IG_UDP_CPORTS=”53,6277&lt;br /&gt;&lt;br /&gt;—–&lt;br /&gt;53 DNS - Domain Name Server&lt;br /&gt;6277 SpamAssassin / DCC (email scanning)&lt;br /&gt;—–&lt;br /&gt;&lt;br /&gt;Code:&lt;br /&gt;&lt;br /&gt;Common ICMP (inbound) types&lt;br /&gt;IG_ICMP_TYPES=”3,5,11,0,30,8″&lt;br /&gt;&lt;br /&gt;—–&lt;br /&gt;0 Echo Reply&lt;br /&gt;3 Destination Unreachable&lt;br /&gt;5 Destination Unreachable&lt;br /&gt;8 Echo&lt;br /&gt;11 Time Exceeded&lt;br /&gt;30 Traceroute&lt;br /&gt;—–&lt;br /&gt;&lt;br /&gt;Code:&lt;br /&gt;&lt;br /&gt;Common egress (outbound) TCP ports&lt;br /&gt;EG_TCP_CPORTS=”21,25,37,53,80,110,113,#123,443,43,873,953,2089,2703,3306″&lt;br /&gt;&lt;br /&gt;—–&lt;br /&gt;21 FTP&lt;br /&gt;25 SMTP&lt;br /&gt;37 Required for CPANEL Licensing&lt;br /&gt;53 DNS - Domain Name Server&lt;br /&gt;80 HTTP&lt;br /&gt;110 POP3 (if you have scripts that need to retrieve email via POP, e.g. HelpDesk)&lt;br /&gt;113 Authentication Protocol (AUTH)&lt;br /&gt;123 NTP (Network Time)&lt;br /&gt;443 HTTPS&lt;br /&gt;43 WHOIS&lt;br /&gt;873 rsync (CPanel updates)&lt;br /&gt;953 BIND ??&lt;br /&gt;2089 Required for CPANEL Licensing&lt;br /&gt;2703 Razor (email scanning)&lt;br /&gt;3306 mySQL remote access&lt;br /&gt;—–&lt;br /&gt;&lt;br /&gt;Code:&lt;br /&gt;&lt;br /&gt;Common egress (outbound) UDP ports&lt;br /&gt;EG_UDP_CPORTS=”20,21,53,873,953,6277″&lt;br /&gt;&lt;br /&gt;—–&lt;br /&gt;20 ftp-data&lt;br /&gt;21 FTP&lt;br /&gt;53 DNS - Domain Name Server&lt;br /&gt;873 rsync&lt;br /&gt;953 BIND ??&lt;br /&gt;6277 SpamAssassin / DCC (email scanning)&lt;br /&gt;—–&lt;br /&gt;&lt;br /&gt;Code:&lt;br /&gt;&lt;br /&gt;Common ICMP (outbound) types&lt;br /&gt;EG_ICMP_TYPES=”all”&lt;br /&gt;&lt;br /&gt;Save the changes then exit.&lt;br /&gt;&lt;br /&gt;To start APF&lt;br /&gt;&lt;br /&gt;At command prompt type: /usr/local/sbin/apf -s&lt;br /&gt;&lt;br /&gt;APF commands are:&lt;br /&gt;&lt;br /&gt;-s start&lt;br /&gt;-r restart&lt;br /&gt;-f flush - stop&lt;br /&gt;-l list&lt;br /&gt;-st status&lt;br /&gt;-a HOST allow HOST&lt;br /&gt;-d HOST deny HOST&lt;br /&gt;&lt;br /&gt;Log out of SSH and then login again.&lt;br /&gt;&lt;br /&gt;After you are sure everything is working fine, change the DEV option&lt;br /&gt;&lt;br /&gt;At command prompt type: cd /etc/apf&lt;br /&gt;&lt;br /&gt;At command prompt type: pico -w conf.apf&lt;br /&gt;&lt;br /&gt;Scroll down and find&lt;br /&gt;&lt;br /&gt;DEVM=”1″&lt;br /&gt;&lt;br /&gt;change it to&lt;br /&gt;&lt;br /&gt;DEVM=”0″&lt;br /&gt;&lt;br /&gt;Save changes, exit and then restart firewall,&lt;br /&gt;&lt;br /&gt;At command prompt type: /usr/local/sbin/apf -r&lt;br /&gt;&lt;br /&gt;Install BFD (Brute Force Detection)&lt;br /&gt;&lt;br /&gt;To install BFD, SSH into server and login as root.&lt;br /&gt;&lt;br /&gt;At command prompt type: cd /root/&lt;br /&gt;&lt;br /&gt;At command prompt type: wget http://www.rfxnetworks.com/downloads/bfd-current.tar.gz&lt;br /&gt;&lt;br /&gt;At command prompt type: tar -xvzf bfd-current.tar.gz&lt;br /&gt;&lt;br /&gt;At command prompt type: cd bfd-0.4&lt;br /&gt;&lt;br /&gt;At command prompt type: ./install.sh&lt;br /&gt;&lt;br /&gt;After BFD has been installed, you need to edit the configuration file.&lt;br /&gt;&lt;br /&gt;At command prompt type: pico /usr/local/bfd/conf.bfd&lt;br /&gt;&lt;br /&gt;Under Enable brute force hack attempt alerts:&lt;br /&gt;&lt;br /&gt;Find&lt;br /&gt;&lt;br /&gt;ALERT_USR=”0″&lt;br /&gt;&lt;br /&gt;and change it to&lt;br /&gt;&lt;br /&gt;ALERT_USR=”1″&lt;br /&gt;&lt;br /&gt;Find&lt;br /&gt;&lt;br /&gt;EMAIL_USR=”root”&lt;br /&gt;&lt;br /&gt;and change it to&lt;br /&gt;&lt;br /&gt;EMAIL_USR=”your@email.com”&lt;br /&gt;&lt;br /&gt;Save the changes then exit.&lt;br /&gt;&lt;br /&gt;To start BFD&lt;br /&gt;&lt;br /&gt;At command prompt type: /usr/local/sbin/bfd -s&lt;br /&gt;&lt;br /&gt;Modify LogWatch&lt;br /&gt;&lt;br /&gt;Logwatch is a customizable log analysis system. It parses through your system’s logs for a given period of time and creates a report analyzing areas that you specify, in as much detail as you require. Logwatch is already installed on most CPanel servers.&lt;br /&gt;&lt;br /&gt;To modify LogWatch, SSH into server and login as root.&lt;br /&gt;&lt;br /&gt;At command prompt type: pico -w /etc/log.d/conf/logwatch.conf&lt;br /&gt;&lt;br /&gt;Scroll down to&lt;br /&gt;&lt;br /&gt;MailTo = root&lt;br /&gt;&lt;br /&gt;and change to&lt;br /&gt;&lt;br /&gt;Mailto = your@email.com&lt;br /&gt;&lt;br /&gt;Note: Set the e-mail address to an offsite account incase you get hacked.&lt;br /&gt;&lt;br /&gt;Now scroll down to&lt;br /&gt;&lt;br /&gt;Detail = Low&lt;br /&gt;&lt;br /&gt;Change that to Medium, or High…&lt;br /&gt;&lt;br /&gt;Detail = 5 or Detail = 10&lt;br /&gt;&lt;br /&gt;Note: High will give you more detailed logs with all actions.&lt;br /&gt;&lt;br /&gt;Save and exit.&lt;br /&gt;These are measures that can be taken to secure your server, with SSH access.&lt;br /&gt;&lt;br /&gt;Udate OS, Apache and CPanel to the latest stable versions.&lt;br /&gt;&lt;br /&gt;This can be done from WHM/CPanel.&lt;br /&gt;&lt;br /&gt;Restrict SSH Access&lt;br /&gt;&lt;br /&gt;To restrict and secure SSH access, bind sshd to a single IP that is different than the main IP to the server, and on a different port than port 22.&lt;br /&gt;&lt;br /&gt;SSH into server and login as root.&lt;br /&gt;&lt;br /&gt;Note: You can download Putty by Clicking Here. It’s a clean running application that will not require installation on Windows-boxes.&lt;br /&gt;&lt;br /&gt;At command prompt type: pico /etc/ssh/sshd_config&lt;br /&gt;&lt;br /&gt;Scroll down to the section of the file that looks like this:&lt;br /&gt;&lt;br /&gt;Code:&lt;br /&gt;&lt;br /&gt;#Port 22&lt;br /&gt;#Protocol 2, 1&lt;br /&gt;#ListenAddress 0.0.0.0&lt;br /&gt;#ListenAddress ::&lt;br /&gt;&lt;br /&gt;Uncomment and change&lt;br /&gt;&lt;br /&gt;#Port 22&lt;br /&gt;&lt;br /&gt;to look like&lt;br /&gt;&lt;br /&gt;Port 5678 (choose your own 4 to 5 digit port number (49151 is the highest port number)&lt;br /&gt;&lt;br /&gt;Uncomment and change&lt;br /&gt;&lt;br /&gt;#Protocol 2, 1&lt;br /&gt;&lt;br /&gt;to look like&lt;br /&gt;&lt;br /&gt;Protocol 2&lt;br /&gt;&lt;br /&gt;Uncomment and change&lt;br /&gt;&lt;br /&gt;#ListenAddress 0.0.0.0&lt;br /&gt;&lt;br /&gt;to look like&lt;br /&gt;&lt;br /&gt;ListenAddress 123.123.123.15 (use one of your own IP Addresses that has been assigned to your server)&lt;br /&gt;&lt;br /&gt;Note 1: If you would like to disable direct Root Login, scroll down until you find&lt;br /&gt;&lt;br /&gt;#PermitRootLogin yes&lt;br /&gt;&lt;br /&gt;and uncomment it and make it look like&lt;br /&gt;&lt;br /&gt;PermitRootLogin no&lt;br /&gt;&lt;br /&gt;Save by pressing Ctrl o on your keyboard, and then exit by pressing Ctrl x on your keyboard.&lt;br /&gt;&lt;br /&gt;Note 2: You can also create a custome nameserver specifically for your new SSH IP address. Just create one called something like ssh.xyz.com or whatever. Be sure to add an A address to your zone file for the new nameserver.&lt;br /&gt;&lt;br /&gt;Now restart SSH&lt;br /&gt;&lt;br /&gt;At command prompt type: [b]/etc/rc.d/init.d/sshd restart[b]&lt;br /&gt;&lt;br /&gt;Exit out of SSH, and then re-login to SSH using the new IP or nameserver, and the new port.&lt;br /&gt;&lt;br /&gt;Note: If you should have any problems, just Telnet into your server, fix the problem, then SSH in again. Telnet is a very unsecure protocol, so change your root password after you use it.&lt;br /&gt;&lt;br /&gt;Disable Telnet&lt;br /&gt;&lt;br /&gt;To disable telnet, SSH into server and login as root.&lt;br /&gt;&lt;br /&gt;At command prompt type: pico -w /etc/xinetd.d/telnet&lt;br /&gt;&lt;br /&gt;change disable = no to disable = yes&lt;br /&gt;&lt;br /&gt;Save and Exit&lt;br /&gt;&lt;br /&gt;At command prompt type: /etc/init.d/xinetd restart&lt;br /&gt;&lt;br /&gt;Server e-mail everytime someone logs in as root&lt;br /&gt;&lt;br /&gt;To have the server e-mail you everytime someone logs in as root, SSH into server and login as root.&lt;br /&gt;&lt;br /&gt;At command prompt type: pico .bash_profile&lt;br /&gt;&lt;br /&gt;Scroll down to the end of the file and add the following line:&lt;br /&gt;&lt;br /&gt;echo ‘ALERT - Root Shell Access on:’ `date` `who` | mail -s “Alert: Root Access from `who | awk ‘{print $6}’`” your@email.com&lt;br /&gt;&lt;br /&gt;Save and exit.&lt;br /&gt;&lt;br /&gt;Set an SSH Legal Message&lt;br /&gt;&lt;br /&gt;To an SSH legal message, SSH into server and login as root.&lt;br /&gt;&lt;br /&gt;At command prompt type: pico /etc/motd&lt;br /&gt;&lt;br /&gt;Enter your message, save and exit.&lt;br /&gt;&lt;br /&gt;Note: I use the following message…&lt;br /&gt;&lt;br /&gt;Code:&lt;br /&gt;&lt;br /&gt;ALERT! You are entering a secured area! Your IP and login information&lt;br /&gt;have been recorded. System administration has been notified.&lt;br /&gt;&lt;br /&gt;This system is restricted to authorized access only. All activities on&lt;br /&gt;this system are recorded and logged. Unauthorized access will be fully&lt;br /&gt;investigated and reported to the appropriate law enforcement agencies.&lt;br /&gt;&lt;br /&gt;Now everytime someone logs in as root, they will see this message… go ahead a try it.&lt;br /&gt;&lt;br /&gt;Disable Shell Accounts&lt;br /&gt;&lt;br /&gt;To disable any shell accounts hosted on your server SSH into server and login as root.&lt;br /&gt;&lt;br /&gt;At command prompt type: locate shell.php&lt;br /&gt;&lt;br /&gt;Also check for:&lt;br /&gt;&lt;br /&gt;locate irc&lt;br /&gt;locate eggdrop&lt;br /&gt;locate bnc&lt;br /&gt;locate BNC&lt;br /&gt;locate ptlink&lt;br /&gt;locate BitchX&lt;br /&gt;locate guardservices&lt;br /&gt;locate psyBNC&lt;br /&gt;locate .rhosts&lt;br /&gt;&lt;br /&gt;These are items inside of WHM/Cpanel that should be changed to secure your server.&lt;br /&gt;&lt;br /&gt;Goto Server Setup =&gt;&gt; Tweak Settings&lt;br /&gt;&lt;br /&gt;Check the following items…&lt;br /&gt;&lt;br /&gt;Under Domains&lt;br /&gt;&lt;br /&gt;Prevent users from parking/adding on common internet domains. (ie hotmail.com, aol.com)&lt;br /&gt;&lt;br /&gt;Under Mail&lt;br /&gt;&lt;br /&gt;Attempt to prevent pop3 connection floods&lt;br /&gt;Default catch-all/default address behavior for new accounts - blackhole&lt;br /&gt;&lt;br /&gt;Under System&lt;br /&gt;&lt;br /&gt;Use jailshell as the default shell for all new accounts and modified accounts&lt;br /&gt;&lt;br /&gt;Goto Server Setup =&gt;&gt; Tweak Security&lt;br /&gt;&lt;br /&gt;Enable php open_basedir Protection&lt;br /&gt;&lt;br /&gt;Enable mod_userdir Protection&lt;br /&gt;&lt;br /&gt;Disabled Compilers for unprivileged users.&lt;br /&gt;&lt;br /&gt;Goto Server Setup =&gt;&gt; Manage Wheel Group Users&lt;br /&gt;&lt;br /&gt;Remove all users except for root and your main account from the wheel group.&lt;br /&gt;&lt;br /&gt;Goto Server Setup =&gt;&gt; Shell Fork Bomb Protection&lt;br /&gt;&lt;br /&gt;Enable Shell Fork Bomb/Memory Protection&lt;br /&gt;&lt;br /&gt;When setting up Feature Limits for resellers in Resellers =&gt;&gt; Reseller Center, under Privileges always disable Allow Creation of Packages with Shell Access and enable Never allow creation of accounts with shell access; under Root Access disable All Features.&lt;br /&gt;&lt;br /&gt;Goto Service Configuration =&gt;&gt; FTP Configuration&lt;br /&gt;&lt;br /&gt;Disable Anonymous FTP&lt;br /&gt;&lt;br /&gt;Goto Account Functions =&gt;&gt; Manage Shell Access&lt;br /&gt;&lt;br /&gt;Disable Shell Access for all users (except yourself)&lt;br /&gt;&lt;br /&gt;Goto Mysql =&gt;&gt; MySQL Root Password&lt;br /&gt;&lt;br /&gt;Change root password for MySQL&lt;br /&gt;&lt;br /&gt;Goto Security and run Quick Security Scan and Scan for Trojan Horses often. The following and similar items are not Trojans:&lt;br /&gt;&lt;br /&gt;/sbin/depmod&lt;br /&gt;/sbin/insmod&lt;br /&gt;/sbin/insmod.static&lt;br /&gt;/sbin/modinfo&lt;br /&gt;/sbin/modprobe&lt;br /&gt;/sbin/rmmod&lt;br /&gt;Reply With Quote Multi-Quote This Message&lt;br /&gt;000000000&lt;br /&gt;View Public Profile&lt;br /&gt;Send a private message to 000000000&lt;br /&gt;Visit 000000000’s homepage!&lt;br /&gt;Find all posts by 000000000&lt;br /&gt;Add 000000000 to Your Buddy List&lt;br /&gt;#2 Add to 000000000’s Reputation Report Post&lt;br /&gt;Old 10-02-2004, 08:56 PM&lt;br /&gt;000000000 000000000 is offline&lt;br /&gt;Registered User&lt;br /&gt;&lt;br /&gt;Note: There will be several listings that will be OS/CPanel related. Examples are&lt;br /&gt;&lt;br /&gt;/home/cpapachebuild/buildapache/php-4.3.1/ext/ircg&lt;br /&gt;/usr/local/cpanel/etc/sym/eggdrop.sym&lt;br /&gt;/usr/local/cpanel/etc/sym/bnc.sym&lt;br /&gt;/usr/local/cpanel/etc/sym/psyBNC.sym&lt;br /&gt;/usr/local/cpanel/etc/sym/ptlink.sym&lt;br /&gt;/usr/lib/libncurses.so&lt;br /&gt;/usr/lib/libncurses.a&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-5316840878009333680?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/5316840878009333680/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/server-securing-setup.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/5316840878009333680'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/5316840878009333680'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/server-securing-setup.html' title='Server Securing - Setup'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-3128176308183642757</id><published>2009-06-03T01:47:00.001-07:00</published><updated>2009-06-03T01:47:16.775-07:00</updated><title type='text'>Nagios error - DNS</title><content type='html'>error output parsing /usr/sbin/nslookup&lt;br /&gt;&lt;br /&gt;(1)For testing from nagios server&lt;br /&gt;&lt;br /&gt;[nagios@monitor libexec]$ ./check_nrpe -H hostname -c check_load&lt;br /&gt;&lt;br /&gt;(2) add the nagiosip; in /etc/named.conf&lt;br /&gt;&lt;br /&gt;allow-recursion { localhost;nagios ip;};&lt;br /&gt;&lt;br /&gt;(3) change the entry in services.cfg file as&lt;br /&gt;&lt;br /&gt;check_named or check_DNS check_dig&lt;br /&gt;&lt;br /&gt;recurssion = yes&lt;br /&gt;&lt;br /&gt;or&lt;br /&gt;&lt;br /&gt;comment recursion&lt;br /&gt;&lt;br /&gt;or&lt;br /&gt;&lt;br /&gt;add nagios ip to allow recursion&lt;br /&gt;&lt;br /&gt;(4)add the port 5666 in apf or csf&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-3128176308183642757?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/3128176308183642757/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/nagios-error-dns.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/3128176308183642757'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/3128176308183642757'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/nagios-error-dns.html' title='Nagios error - DNS'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-575689721241230010</id><published>2009-06-03T01:46:00.001-07:00</published><updated>2009-06-03T01:46:53.578-07:00</updated><title type='text'>Nagios error - Exim mail queue</title><content type='html'>In nagios server&lt;br /&gt;&lt;br /&gt;cd /usr/local/nagios/libexec&lt;br /&gt;&lt;br /&gt;wget http://www.mycutelife.net/sanju/newtickethelp/nagiosfullsteps/check_eximmailqueue&lt;br /&gt;&lt;br /&gt;chmod +x check_eximmailqueue&lt;br /&gt;&lt;br /&gt;In remote server&lt;br /&gt;&lt;br /&gt;cd /usr/local/nagios/libexec&lt;br /&gt;&lt;br /&gt;wget http://www.mycutelife.net/sanju/newtickethelp/nagiosfullsteps/check_eximmailqueue&lt;br /&gt;&lt;br /&gt;chmod +x check_eximmailqueue&lt;br /&gt;&lt;br /&gt;echo “command[check_eximmailqueue]=/usr/local/nagios/libexec/check_eximmailqueue -w 500 -c 1000″ &gt;&gt; /etc/nrpe.conf&lt;br /&gt;&lt;br /&gt;visudo&lt;br /&gt;&lt;br /&gt;add the following line&lt;br /&gt;&lt;br /&gt;nagios ALL= NOPASSWD:/usr/sbin/exim -bpc&lt;br /&gt;&lt;br /&gt;/etc/init.d/xinetd restart&lt;br /&gt;&lt;br /&gt;Check in nagios server&lt;br /&gt;&lt;br /&gt;./check_nrpe -H &lt;server&gt; -c check_eximmailqueue&lt;br /&gt;&lt;br /&gt;if error…. then,&lt;br /&gt;&lt;br /&gt;in remote server&lt;br /&gt;&lt;br /&gt;cd /usr/local/nagios/libexec&lt;br /&gt;&lt;br /&gt;visudo&lt;br /&gt;&lt;br /&gt;comment #Defaults requiretty&lt;br /&gt;&lt;br /&gt;cd /usr/bin&lt;br /&gt;&lt;br /&gt;chmod u+s sudo&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-575689721241230010?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/575689721241230010/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/nagios-error-exim-mail-queue.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/575689721241230010'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/575689721241230010'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/nagios-error-exim-mail-queue.html' title='Nagios error - Exim mail queue'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-8874932404487504633</id><published>2009-06-03T01:14:00.001-07:00</published><updated>2009-06-03T01:14:50.793-07:00</updated><title type='text'>Nagios error - Mysql</title><content type='html'>mysql&lt;br /&gt;&lt;br /&gt;create database nagios;&lt;br /&gt;grant all privileges on nagios.* to nagios@63.247.77.234 identified by ‘123dsa’;&lt;br /&gt;&lt;br /&gt;mysql setup in client server&lt;br /&gt;&lt;br /&gt;mysql&gt; grant all privileges on nagios.* to nagios@63.247.77.234 identified by ‘123dsa’;&lt;br /&gt;Query OK, 0 rows affected (0.00 sec)&lt;br /&gt;&lt;br /&gt;nagios is showing the error&lt;br /&gt;Client does not support authentication protocol requested by server: consider upgrading MySQL client&lt;br /&gt;&lt;br /&gt;mysql&gt; SET PASSWORD FOR nagios@63.247.77.234 = OLD_PASSWORD(’123dsa’);&lt;br /&gt;Query OK, 0 rows affected (0.00 sec)&lt;br /&gt;&lt;br /&gt;mysql&gt; UPDATE mysql.user SET Password = OLD_PASSWORD(’123dsa’) WHERE Host = ‘63.247.77.234′ AND User = ‘nagios’;&lt;br /&gt;Query OK, 0 rows affected (0.00 sec)&lt;br /&gt;&lt;br /&gt;If we dont know the password of mysql&lt;br /&gt;&lt;br /&gt;/etc/init.d/mysqld stop&lt;br /&gt;/usr/bin/mysqld_safe –skip-grant-tables –skip-networking&lt;br /&gt;open a new console&lt;br /&gt;mysql&lt;br /&gt;mysql&gt; UPDATE mysql.user SET Password=PASSWORD(’d3fault’) WHERE User=’root’;&lt;br /&gt;mysql&gt; FLUSH PRIVILEGES;&lt;br /&gt;&lt;br /&gt;vi .my.cnf&lt;br /&gt;&lt;br /&gt;[client]&lt;br /&gt;user=root&lt;br /&gt;pass=d3fault&lt;br /&gt;&lt;br /&gt;chmod 600 .my.cnf&lt;br /&gt;&lt;br /&gt;/etc/init.d/mysqld restart&lt;br /&gt;&lt;br /&gt;or&lt;br /&gt;&lt;br /&gt;vi /etc/my.cnf&lt;br /&gt;skip-grant-tables&lt;br /&gt;/etc/init.d/mysqld restart&lt;br /&gt;mysql&lt;br /&gt;mysql&gt; UPDATE mysql.user SET Password=PASSWORD(’d3fault’) WHERE User=’root’;&lt;br /&gt;mysql&gt; FLUSH PRIVILEGES;&lt;br /&gt;&lt;br /&gt;vi /etc/my.cnf&lt;br /&gt;#skip-grant-tables&lt;br /&gt;/etc/init.d/mysqld restart&lt;br /&gt;&lt;br /&gt;vi .my.cnf&lt;br /&gt;&lt;br /&gt;[client]&lt;br /&gt;user=root&lt;br /&gt;pass=d3fault&lt;br /&gt;&lt;br /&gt;chmod 600 .my.cnf&lt;br /&gt;&lt;br /&gt;/etc/init.d/mysqld restart&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-8874932404487504633?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/8874932404487504633/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/nagios-error-mysql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/8874932404487504633'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/8874932404487504633'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/nagios-error-mysql.html' title='Nagios error - Mysql'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-7734475868319170820</id><published>2009-06-03T01:13:00.000-07:00</published><updated>2009-06-03T01:14:02.433-07:00</updated><title type='text'>Nagios Password</title><content type='html'>password given in&lt;br /&gt;&lt;br /&gt;/usr/local/nagios/etc/htpasswd.users&lt;br /&gt;&lt;br /&gt;url is&lt;br /&gt;&lt;br /&gt;http://hostname/cgi-bin/monitor/status.cgi&lt;br /&gt;&lt;br /&gt;Given entries in contactgroups.cfg and contacts.cfg files (refer doreo client info)&lt;br /&gt;&lt;br /&gt;in contacts.cfg we can setup mail notifications&lt;br /&gt;&lt;br /&gt;htpasswd -m /usr/local/nagios/etc/htpasswd.users username&lt;br /&gt;&lt;br /&gt;and give password&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-7734475868319170820?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/7734475868319170820/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/nagios-password.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/7734475868319170820'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/7734475868319170820'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/nagios-password.html' title='Nagios Password'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-2773855260725346389</id><published>2009-06-02T23:41:00.000-07:00</published><updated>2009-06-03T01:08:49.558-07:00</updated><title type='text'>Nagios - nrpe</title><content type='html'># vi /etc/xinetd.d/nrpe&lt;br /&gt;&lt;br /&gt;# default: on&lt;br /&gt;&lt;br /&gt;# description: NRPE&lt;br /&gt;&lt;br /&gt;service nrpe&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;flags = REUSE&lt;br /&gt;&lt;br /&gt;socket_type = stream&lt;br /&gt;&lt;br /&gt;wait = no&lt;br /&gt;&lt;br /&gt;user = nagios&lt;br /&gt;&lt;br /&gt;server = /usr/sbin/nrpe&lt;br /&gt;&lt;br /&gt;server_args = -c /etc/nrpe.conf –inetd&lt;br /&gt;&lt;br /&gt;log_on_failure += USERID&lt;br /&gt;&lt;br /&gt;disable = no&lt;br /&gt;&lt;br /&gt;only_from = nagios ip&lt;br /&gt;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-2773855260725346389?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/2773855260725346389/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/nagios-nrpe.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/2773855260725346389'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/2773855260725346389'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/nagios-nrpe.html' title='Nagios - nrpe'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-5724468958241635646</id><published>2009-06-02T22:21:00.000-07:00</published><updated>2009-06-02T23:41:44.153-07:00</updated><title type='text'>Nagios proc</title><content type='html'>Configure number of processes in Nagios :&lt;br /&gt;&lt;br /&gt;on the server to be monitored,&lt;br /&gt;&lt;br /&gt;vi /etc/nrpe.conf&lt;br /&gt;&lt;br /&gt;modify the line this way :&lt;br /&gt;&lt;br /&gt;command[check_total_procs]=sudo /usr/local/nagios/libexec/check_procs -w 250 -c 300&lt;br /&gt;&lt;br /&gt;then run visudo and add the following line below root ALL=(ALL) ALL&lt;br /&gt;&lt;br /&gt;nagios ALL= NOPASSWD:/usr/local/nagios/libexec/check_procs&lt;br /&gt;&lt;br /&gt;then , /etc/rc.d/init.d/xinetd restart&lt;br /&gt;&lt;br /&gt;add to the services.cfg on the nagios server ,&lt;br /&gt;&lt;br /&gt;define service{&lt;br /&gt;&lt;br /&gt;host_name server.host.name&lt;br /&gt;&lt;br /&gt;service_description TOTAL_PROCS&lt;br /&gt;&lt;br /&gt;is_volatile 0&lt;br /&gt;&lt;br /&gt;check_period 24×7&lt;br /&gt;&lt;br /&gt;max_check_attempts 3&lt;br /&gt;&lt;br /&gt;normal_check_interval 5&lt;br /&gt;&lt;br /&gt;retry_check_interval 1&lt;br /&gt;&lt;br /&gt;contact_groups group-admins&lt;br /&gt;&lt;br /&gt;notification_interval 120&lt;br /&gt;&lt;br /&gt;notification_period 24×7&lt;br /&gt;&lt;br /&gt;notification_options w,u,c,r&lt;br /&gt;&lt;br /&gt;check_command check_nrpe!check_total_procs&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;/etc/rc.d/init.d/nagios restart&lt;br /&gt;&lt;br /&gt;Also check the permission of /usr/bin/sudo . This must be as follows&lt;br /&gt;&lt;br /&gt;—s–x–x 1 root root 82120 Feb 16 2006 /usr/bin/sudo&lt;br /&gt;proc&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-5724468958241635646?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/5724468958241635646/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/nagios-proc.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/5724468958241635646'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/5724468958241635646'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/nagios-proc.html' title='Nagios proc'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-7308453092161212498</id><published>2009-06-01T19:51:00.003-07:00</published><updated>2009-06-01T19:51:51.006-07:00</updated><title type='text'>Nagios ssl</title><content type='html'>&lt;p&gt;adding service ssl to nagios&lt;/p&gt; &lt;p&gt;/usr/local/nagios/etc&lt;/p&gt; &lt;p&gt;file checkcommands.cfg&lt;/p&gt; &lt;p&gt;# ‘check_ssl’ command definition&lt;/p&gt; &lt;p&gt;define command{&lt;/p&gt; &lt;p&gt;command_name    check_ssl&lt;/p&gt; &lt;p&gt;command_line    /usr/local/nagios/libexec/check_tcp -H $HOSTADDRESS$ -p 443&lt;/p&gt; &lt;p&gt;}&lt;/p&gt; &lt;p&gt;then add the entries in services.cfg escalations.cfg&lt;/p&gt; &lt;p&gt;services.cfg&lt;/p&gt; &lt;p&gt;# Service definition&lt;/p&gt; &lt;p&gt;define service{&lt;/p&gt; &lt;p&gt;use                             generic-service         ; Name of service template to use&lt;/p&gt; &lt;p&gt;host_name                       sun.inservers1.com&lt;/p&gt; &lt;p&gt;service_description             SSL&lt;/p&gt; &lt;p&gt;is_volatile                     0&lt;/p&gt; &lt;p&gt;check_period                    24×7&lt;/p&gt; &lt;p&gt;max_check_attempts              3&lt;/p&gt; &lt;p&gt;normal_check_interval           3&lt;/p&gt; &lt;p&gt;retry_check_interval            1&lt;/p&gt; &lt;p&gt;contact_groups                  neutralweb-admins&lt;/p&gt; &lt;p&gt;notification_interval           120&lt;/p&gt; &lt;p&gt;notification_period             24×7&lt;/p&gt; &lt;p&gt;notification_options            w,u,c,r&lt;/p&gt; &lt;p&gt;check_command                   check_ssl&lt;/p&gt; &lt;p&gt;}&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-7308453092161212498?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/7308453092161212498/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/nagios-ssl.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/7308453092161212498'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/7308453092161212498'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/nagios-ssl.html' title='Nagios ssl'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-9060221407163801058</id><published>2009-06-01T19:51:00.001-07:00</published><updated>2009-06-01T19:51:23.091-07:00</updated><title type='text'>Nagios swap space</title><content type='html'>&lt;p&gt;Goto Nagios server&lt;/p&gt; &lt;p&gt;cd /usr/local/nagios/libexec&lt;/p&gt; &lt;p&gt;wget http://www.mycutelife.net/sanju/newtickethelp/nagiosfullsteps/check_swp&lt;/p&gt; &lt;p&gt;chmod +x check_swp&lt;/p&gt; &lt;p&gt;You need to do this for each server in nagios server&lt;/p&gt; &lt;p&gt;vi /usr/local/nagios/etc/services.cfg&lt;/p&gt; &lt;p&gt;add&lt;/p&gt; &lt;p&gt;define service{&lt;/p&gt; &lt;p&gt;host_name barracuda.dnsvelocity.com&lt;/p&gt; &lt;p&gt;service_description SWAP_USAGE&lt;/p&gt; &lt;p&gt;is_volatile 0&lt;/p&gt; &lt;p&gt;check_period 24×7&lt;/p&gt; &lt;p&gt;max_check_attempts 3&lt;/p&gt; &lt;p&gt;normal_check_interval 5&lt;/p&gt; &lt;p&gt;retry_check_interval 1&lt;/p&gt; &lt;p&gt;contact_groups voxtreme-admins&lt;/p&gt; &lt;p&gt;notification_interval 120&lt;/p&gt; &lt;p&gt;notification_period 24×7&lt;/p&gt; &lt;p&gt;notification_options w,u,c,r&lt;/p&gt; &lt;p&gt;check_command check_nrpe!check_swp&lt;/p&gt; &lt;p&gt;}&lt;/p&gt; &lt;p&gt;/etc/init.d/nagios restart&lt;/p&gt; &lt;p&gt;Goto remote server&lt;/p&gt; &lt;p&gt;cd /usr/local/nagios/libexec&lt;/p&gt; &lt;p&gt;wget http://www.mycutelife.net/sanju/newtickethelp/nagiosfullsteps/check_swp&lt;/p&gt; &lt;p&gt;chmod +x check_swp&lt;/p&gt; &lt;p&gt;echo “command[check_swp]=/usr/local/nagios/libexec/check_swp -w 80 -c 70″ &gt;&gt; /etc/nrpe.conf&lt;/p&gt; &lt;p&gt;/etc/init.d/xinetd restart&lt;/p&gt; &lt;p&gt;touch /home/nagios/swapcalc&lt;/p&gt; &lt;p&gt;chown nagios:nagios /home/nagios/swapcalc&lt;/p&gt; &lt;p&gt;touch /home/nagios/swappercent&lt;/p&gt; &lt;p&gt;chown nagios:nagios /home/nagios/swappercent&lt;/p&gt; &lt;p&gt;chmod +x /usr/bin/free&lt;/p&gt; &lt;p&gt;Check in nagios server&lt;/p&gt; &lt;p&gt;./check_nrpe -H &lt;server&gt; -c check_swp&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-9060221407163801058?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/9060221407163801058/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/nagios-swap-space.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/9060221407163801058'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/9060221407163801058'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/nagios-swap-space.html' title='Nagios swap space'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-2385027214384303879</id><published>2009-06-01T19:50:00.001-07:00</published><updated>2009-06-01T19:50:48.598-07:00</updated><title type='text'>Custom Scripts</title><content type='html'>&lt;p&gt;&lt;strong&gt;To kill Dead process&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;for i in `ps ax | grep D | awk {’print $1′}`;do kill -9 $(cat /proc/${i}/status | grep PPid | awk {’print $2′});done&lt;/p&gt; &lt;p&gt;&lt;strong&gt; To kill Zombie process&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;for i in `ps ax | grep Z | awk {’print $1′}`;do kill -9 $(cat /proc/${i}/status | grep PPid | awk {’print $2′});done&lt;/p&gt; &lt;p&gt;&lt;strong&gt; To find ddos attack&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;netstat -an |grep 80&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;netstat -plan|grep :80|awk {’print $5′}|cut -d: -f 1|sort|uniq -c|sort -nk 1&lt;/p&gt; &lt;p&gt;netstat -plan|grep :25|awk {’print $5′}|cut -d: -f 1|sort|uniq -c|sort -nk 1&lt;/p&gt; &lt;p&gt;watch -n 5 ‘w; ls -alS /usr/local/apache/domlogs/ ‘&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Top memory consuming processes&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;ps aux | head -1;ps aux –no-headers| sort -rn +3 | head&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Number of exim connections&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;tail -1000 /var/log/exim_mainlog |grep ‘\[' |cut -d[ -f2 |cut -d] -f1|sort -n |uniq -c |sort -n&lt;/p&gt; &lt;p&gt;&lt;strong&gt; To find cppop attack&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;tail -1000 /var/log/maillog | grep host= | cut -d= -f2| cut -d” ” -f1|sort -n |uniq -c |sort -n&lt;/p&gt; &lt;p&gt;&lt;strong&gt;To find number of httpd connections&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;netstat -plan|grep :80|awk {’print $5′}|cut -d: -f 1|sort|uniq -c|sort -nk 1&lt;/p&gt; &lt;p&gt;or&lt;/p&gt; &lt;p&gt;netstat -pan | sort +4 | grep TIME_WAIT | awk ‘{print $5}’ | sed -e s/’:.*’//g | sort | uniq -c | sort -k 1 -nr | head -n 20&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Script to change permission of files 777 to 644&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;find /home/*/public_html/ -type d -perm 777 -exec chmod 755 {} \;&gt;/dev/null 2&gt;&amp;amp;1&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-2385027214384303879?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/2385027214384303879/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/custom-scripts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/2385027214384303879'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/2385027214384303879'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/custom-scripts.html' title='Custom Scripts'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-310967754872433662</id><published>2009-06-01T19:49:00.000-07:00</published><updated>2009-06-01T19:50:03.332-07:00</updated><title type='text'>Horde Issue 31 08 2008  Cant find file: horde_sessionhandler.MYI</title><content type='html'>&lt;p align="justify"&gt;If you get this error, you ve most likely done a file-based MySQL backup restore, and the InnoDB files are hosed. The horde_sessionhandler table isnt a MyISAM table at all - its actually an InnoDB table. The easiest way to fix the issue is to stop MySQL and trash the .frm:&lt;/p&gt; &lt;p align="justify"&gt;&lt;strong&gt;# /etc/init.d/mysqld stop&lt;/strong&gt;&lt;/p&gt; &lt;p align="justify"&gt;&lt;strong&gt;# rm /var/lib/mysql/horde/horde_sessionhandler.frm&lt;/strong&gt;&lt;/p&gt; &lt;p align="justify"&gt;Now start MySQL and re-create the table:&lt;/p&gt; &lt;p align="justify"&gt;&lt;strong&gt;# /etc/init.d/mysqld start&lt;/strong&gt;&lt;/p&gt; &lt;p align="justify"&gt;&lt;strong&gt;# mysql -u admin -p`cat /etc/psa/.psa.shadow`&lt;/strong&gt;&lt;br /&gt;Here is the SQL statements to run:&lt;/p&gt; &lt;p align="justify"&gt;&lt;em&gt;CREATE TABLE horde_sessionhandler (session_id VARCHAR(32) NOT NULL, session_lastmodified INT NOT NULL, session_data LONGBLOB, PRIMARY KEY (session_id)) ENGINE = InnoDB;&lt;br /&gt;GRANT SELECT, INSERT, UPDATE, DELETE ON horde_sessionhandler TO horde@localhost;&lt;/em&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-310967754872433662?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/310967754872433662/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/horde-issue-31-08-2008-cant-find-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/310967754872433662'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/310967754872433662'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/horde-issue-31-08-2008-cant-find-file.html' title='Horde Issue 31 08 2008  Cant find file: horde_sessionhandler.MYI'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-2857316144652671431</id><published>2009-06-01T19:42:00.001-07:00</published><updated>2009-06-01T19:42:47.523-07:00</updated><title type='text'>Downgrade from MySQL 5</title><content type='html'>&lt;p&gt;If you want a quick and dirty way and you don't have any databases, then you could do the following if you're using an rpm based linux:&lt;/p&gt; &lt;p&gt;&lt;strong&gt;rpm -qa | grep -i mysql-&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Then use rpm -e on each match for MySQL v5.&lt;/p&gt; &lt;p&gt;Then remove /var/lib/mysql:&lt;/p&gt; &lt;p&gt;&lt;strong&gt;rm -Rfv /var/lib/mysql&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Then edit /var/cpanel/cpanel.config and set:&lt;/p&gt; &lt;p&gt;&lt;strong&gt;mysql-version=4.1&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Make sure that the skip file isn't there:&lt;/p&gt; &lt;p&gt;&lt;strong&gt;rm -fv /etc/mysqlupdisable&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Then install MySQL:&lt;/p&gt; &lt;p&gt;&lt;strong&gt;/scripts/mysqlup --force&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Then update the perl module:&lt;/p&gt; &lt;p&gt;/scripts/perlinstaller --force Bundle::DBD::mysql&lt;/p&gt; &lt;p&gt;Then recompile apache/php.&lt;/p&gt; &lt;p&gt;Of course, if you do have MySQL d/b's then you'll have to consult further on whether they can be downgraded and miss out the removal of the mysql dir.&lt;/p&gt; &lt;p&gt;Once done:&lt;/p&gt; &lt;p&gt;&lt;strong&gt;/scripts/upcp --force&lt;/strong&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-2857316144652671431?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/2857316144652671431/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/downgrade-from-mysql-5.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/2857316144652671431'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/2857316144652671431'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/downgrade-from-mysql-5.html' title='Downgrade from MySQL 5'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-1255282506072998654</id><published>2009-06-01T19:41:00.001-07:00</published><updated>2009-06-01T19:41:54.249-07:00</updated><title type='text'>Kernel Compilation</title><content type='html'>&lt;p&gt;&lt;strong&gt;Kernel compilation&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Go to the /usr/src directory&lt;/p&gt; &lt;p&gt;Unpack the source code with tar -xvzf linux-2.x.x.tag.gz.&lt;/p&gt; &lt;p&gt;Move to the /usr/src/linux sub-directory.&lt;/p&gt; &lt;p&gt;make mrproper&lt;/p&gt; &lt;p&gt;make menuconfig&lt;/p&gt; &lt;p&gt;make all&lt;/p&gt; &lt;p&gt;–    make vmlinux&lt;br /&gt;–    make modules&lt;br /&gt;–    make bzimage&lt;/p&gt; &lt;p&gt;make modules_install&lt;/p&gt; &lt;p&gt;make install&lt;/p&gt; &lt;p&gt;cp /usr/src/linux/arch/i386/boot/zImage /zImage&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Making an initrd Image&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;An initrd image is needed for loading your SCSI module at boot time or if you are compiling the kernel with ext3 support as a module. If you do not need an initrd image, do not make one and do not edit lilo.conf or grub.conf to include this image.&lt;/p&gt; &lt;p&gt;Use the /sbin/mkinitrd shell script to build an initrd image for your machine. To use this command, the loopback block device must be available.&lt;/p&gt; &lt;p&gt;To build the new initrd image, run /sbin/mkinitrd with parameters such as this:&lt;/p&gt; &lt;p&gt;/sbin/mkinitrd /boot/initrd-2.4.18-0.12-jul2001.img 2.4.18-0.12-jul2001&lt;/p&gt; &lt;p&gt;In the above example, /boot/initrd-2.4.18-0.12-jul2001.img is the file name of the new initrd image. 2.4.18-0.12-jul2001 is the kernel whose modules (from /lib/modules) should be used in the initrd image. This is not necessarily the same as the version number of the currently running kernel.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Cleaning targets:&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;clean - Remove most generated files but keep the config and enough build support to build external modules&lt;/p&gt; &lt;p&gt;mrproper - Remove all generated files + config + various backup files&lt;/p&gt; &lt;p&gt;distclean - mrproper + remove editor backup and patch files&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Configuration targets:&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;config          - Update current config utilising a line-oriented program&lt;/p&gt; &lt;p&gt;menuconfig      - Update current config utilising a menu based program&lt;/p&gt; &lt;p&gt;xconfig         - Update current config utilising a QT based front-end&lt;/p&gt; &lt;p&gt;gconfig         - Update current config utilising a GTK based front-end&lt;/p&gt; &lt;p&gt;oldconfig       - Update current config utilising a provided .config as base&lt;/p&gt; &lt;p&gt;silentoldconfig - Same as oldconfig, but quietly&lt;/p&gt; &lt;p&gt;randconfig      - New config with random answer to all options&lt;/p&gt; &lt;p&gt;defconfig       - New config with default answer to all options&lt;/p&gt; &lt;p&gt;allmodconfig    - New config selecting modules when possible&lt;/p&gt; &lt;p&gt;allyesconfig    - New config where all options are accepted with yes&lt;/p&gt; &lt;p&gt;allnoconfig     - New config where all options are answered with no&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Other generic targets:&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;all             - Build all targets marked with [*]&lt;/p&gt; &lt;p&gt;vmlinux         - Build the bare kernel&lt;/p&gt; &lt;p&gt;modules         - Build all modules&lt;/p&gt; &lt;p&gt;modules_install - Install all modules to INSTALL_MOD_PATH (default: /)&lt;/p&gt; &lt;p&gt;dir/            - Build all files in dir and below&lt;/p&gt; &lt;p&gt;dir/file.[ois]  - Build specified target only&lt;/p&gt; &lt;p&gt;dir/file.ko     - Build module including final link&lt;/p&gt; &lt;p&gt;rpm             - Build a kernel as an RPM package&lt;/p&gt; &lt;p&gt;tags/TAGS       - Generate tags file for editors&lt;/p&gt; &lt;p&gt;cscope          - Generate cscope index&lt;/p&gt; &lt;p&gt;kernelrelease   - Output the release version string&lt;/p&gt; &lt;p&gt;kernelversion   - Output the version stored in Makefile&lt;/p&gt; &lt;p&gt;headers_install - Install sanitised kernel headers to INSTALL_HDR_PATH(default: /usr/src/linux-.6.24.3/usr)&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Static analysers&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;checkstack      - Generate a list of stack hogs&lt;/p&gt; &lt;p&gt;namespacecheck  - Name space analysis on compiled kernel&lt;/p&gt; &lt;p&gt;export_report   - List the usages of all exported symbols&lt;/p&gt; &lt;p&gt;headers_check   - Sanity check on exported headers&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Kernel packaging:&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;rpm-pkg         - Build the kernel as an RPM package&lt;/p&gt; &lt;p&gt;binrpm-pkg      - Build an rpm package containing the compiled kernel and modules&lt;/p&gt; &lt;p&gt;deb-pkg         - Build the kernel as an deb package&lt;/p&gt; &lt;p&gt;tar-pkg         - Build the kernel as an uncompressed tarball&lt;/p&gt; &lt;p&gt;targz-pkg       - Build the kernel as a gzip compressed tarball&lt;/p&gt; &lt;p&gt;tarbz2-pkg      - Build the kernel as a bzip2 compressed tarball&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Documentation targets:&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Linux kernel internal documentation in different formats:&lt;/p&gt; &lt;p&gt;htmldocs        - HTML&lt;/p&gt; &lt;p&gt;installmandocs  - install man pages generated by mandocs&lt;/p&gt; &lt;p&gt;mandocs         - man pages&lt;/p&gt; &lt;p&gt;pdfdocs         - PDF&lt;/p&gt; &lt;p&gt;psdocs          - Postscript&lt;/p&gt; &lt;p&gt;xmldocs         - XML DocBook&lt;/p&gt; &lt;p&gt;Architecture specific targets (i386):&lt;/p&gt; &lt;p&gt;bzImage       - Compressed kernel image (arch/x86/boot/bzImage)&lt;/p&gt; &lt;p&gt;install       - Install kernel using&lt;/p&gt; &lt;p&gt;(your) ~/bin/installkernel or&lt;/p&gt; &lt;p&gt;(distribution) /sbin/installkernel or&lt;/p&gt; &lt;p&gt;install to $(INSTALL_PATH) and run lilo&lt;/p&gt; &lt;p&gt;bzdisk       - Create a boot floppy in /dev/fd0&lt;/p&gt; &lt;p&gt;fdimage      - Create a boot floppy image&lt;/p&gt; &lt;p&gt;isoimage     - Create a boot CD-ROM image&lt;/p&gt; &lt;p&gt;make V=0|1 [targets] 0 =&gt; quiet build (default), 1 =&gt; verbose build&lt;/p&gt; &lt;p&gt;make V=2   [targets] 2 =&gt; give reason for rebuild of target&lt;/p&gt; &lt;p&gt;make O=dir [targets] Locate all output files in “dir”, including .config&lt;/p&gt; &lt;p&gt;make C=1   [targets] Check all c source with $CHECK (sparse by default)&lt;/p&gt; &lt;p&gt;make C=2   [targets] Force check of all c source with $CHECK&lt;/p&gt; &lt;p&gt;Execute “make” or “make all” to build all targets marked with [*]&lt;/p&gt; &lt;p&gt;For further info see the ./README file&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-1255282506072998654?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/1255282506072998654/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/kernel-compilation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/1255282506072998654'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/1255282506072998654'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/kernel-compilation.html' title='Kernel Compilation'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-5101258282579841434</id><published>2009-06-01T19:40:00.000-07:00</published><updated>2009-06-01T19:41:15.267-07:00</updated><title type='text'>Install Nagios</title><content type='html'>&lt;p&gt;&lt;strong&gt;How to install nagios&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;In the nagios server&lt;/p&gt; &lt;p&gt;1)Download the tarball of nagios (Here I use nagios-1.0b5 version)&lt;/p&gt; &lt;p&gt;#wget http://heanet.dl.sourceforge.net/sourceforge/nagios/nagios-1.0b5.tar.gz&lt;/p&gt; &lt;p&gt;2)Extract the tarball&lt;/p&gt; &lt;p&gt;# tar zxvf nagios-1.0b5.tar.gz&lt;/p&gt; &lt;p&gt;3) Create a folder named nagios under /usr/local&lt;br /&gt;# mkdir /usr/local/nagios&lt;/p&gt; &lt;p&gt;4)Create a user and group named nagios. In many of the linux flavours, a corresponding group will be created for evry user.&lt;/p&gt; &lt;p&gt;#useradd nagios&lt;br /&gt;#groupadd nagios&lt;/p&gt; &lt;p&gt;5) Enter the extracted folder. # cd nagios-1.0b5&lt;/p&gt; &lt;p&gt;6) Type the following script on a single line without line breaks: # ./configure –prefix=/usr/local/nagios –with-cgiurl=/nagios/cgi-bin –with-htmurl=/nagios/ –with-nagios-user=nagios –with-nagios-grp=nagios&lt;/p&gt; &lt;p&gt;7)# make all&lt;/p&gt; &lt;p&gt;8)# make install&lt;/p&gt; &lt;p&gt;9)#make install-init&lt;/p&gt; &lt;p&gt;10)#make install-commandmode&lt;/p&gt; &lt;p&gt;11) If you take a look into the /usr/local/nagios directory right now, you will see that there are four directories.&lt;br /&gt;bin      sbin      share     var&lt;/p&gt; &lt;p&gt;12) # make install-config&lt;/p&gt; &lt;p&gt;Congrats, the nagios installation is completed!!! But to function properly, we need to install nagios plugin also. Come on, lets run to the next stage…&lt;/p&gt; &lt;p&gt;Install the nagios Plugin&lt;/p&gt; &lt;p&gt;1)Download the plugin. I used nagios-plugins-1.3.0 without any much problems. You can download it usng wget http://www.sreeforyou.com/tools/nagios/nagios-plugins-1.3.1.tar.gz&lt;/p&gt; &lt;p&gt;2)#tar zxvf nagios-plugins-1.3.0.tar.gz&lt;/p&gt; &lt;p&gt;3)Type the following script on a single line without line breaks: # ./configure –prefix=/usr/local/nagios –with-nagios-user=nagios –with-nagios-grp=nagios&lt;/p&gt; &lt;p&gt;4)#make all&lt;/p&gt; &lt;p&gt;5)#make install&lt;/p&gt; &lt;p&gt;6)#cd /usr/local/nagios/libexec/&lt;/p&gt; &lt;p&gt;7) To test the working, run the command ./check_ssh www.example.com&lt;br /&gt;SSH ok - protocol version 1.99- - server version&lt;/p&gt; &lt;p&gt;8)#cd /usr/local/nagios/etc&lt;/p&gt; &lt;p&gt;9)# mkdir sample&lt;/p&gt; &lt;p&gt;10)# cp *.cfg-sample sample/&lt;/p&gt; &lt;p&gt;11)Rename each file manually, or use the following command to take care of them all at once.&lt;/p&gt; &lt;p&gt;for i in *cfg-sample; do mv $i `echo $i | sed -e s/cfg-sample/cfg/`; done;&lt;/p&gt; &lt;p&gt;12)../bin/nagios -v nagios.cfg&lt;/p&gt; &lt;p&gt;Run this command will show a lot of errors with the nagios configuration. Lets have to clear all the errors one-by-one.&lt;/p&gt; &lt;p&gt;13)#rm -f hosts.cfg services.cfg contacts.cfg contactgroups.cfg hostgroups.cfg dependencies.cfg escalations.cfg&lt;/p&gt; &lt;p&gt;14)#touch dependencies.cfg escalations.cfg contacts.cfg services.cfg&lt;/p&gt; &lt;p&gt;The nagios installation in completed. Now we have to configure the files related to nagios. This is a very easy step once you go through the steps.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;You get more details about Nagios from the below URL&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;&lt;u&gt;&lt;span style="color:#ff0000;" mce_style="color:#ff0000;"&gt;http://www.packtpub.com/guide-for-learning-nagios-3/book&lt;/span&gt;&lt;/u&gt;&lt;/em&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-5101258282579841434?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/5101258282579841434/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/install-nagios.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/5101258282579841434'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/5101258282579841434'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/install-nagios.html' title='Install Nagios'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-7006998303445490458</id><published>2009-06-01T19:37:00.000-07:00</published><updated>2009-06-01T19:38:48.917-07:00</updated><title type='text'>How to Restore off a mounted slave disk on Redhat + Cpanel (crash/hack/bad kernel)</title><content type='html'>&lt;p align="justify"&gt;&lt;strong&gt;Warning : This is not to be done by the unexperienced admins . &lt;/strong&gt;&lt;/p&gt; &lt;p align="justify"&gt;Sometimes when the server get hacked or boot from a bad kernel you need to have the datacenter mount your old drive, and install a new one with a fresh installation. This topic will guide you how to restore a complete server to a new one form the old drive which is mounted as secondary drive to the server.&lt;/p&gt; &lt;p align="justify"&gt;&lt;strong&gt;I. Mount the backup Drive&lt;/strong&gt;&lt;/p&gt; &lt;p align="justify"&gt;First check to see if there are any drives mounted.&lt;/p&gt; &lt;p align="justify"&gt;If it is not mounted, please mount manually the old drive to any location, say /mnt/old&lt;/p&gt; &lt;p align="justify"&gt;For that please do the following:&lt;/p&gt; &lt;p align="justify"&gt;&lt;strong&gt;fdisk -l&lt;/strong&gt;&lt;/p&gt; &lt;p align="justify"&gt;check for additional drives, in this tutorial we will use /dev/hdc3.&lt;/p&gt; &lt;p align="justify"&gt;mount /dev/hdb3 /mnt/old&lt;/p&gt; &lt;p align="justify"&gt;now that the drive is mounted you can browse files like:&lt;/p&gt; &lt;p align="justify"&gt;ls /mnt/old/home&lt;/p&gt; &lt;p align="justify"&gt;&lt;strong&gt;II. Rsync the files&lt;/strong&gt;&lt;/p&gt; &lt;p align="justify"&gt;Do these commands one by one,&lt;/p&gt; &lt;p align="justify"&gt;rsync -vrplogDtH /mnt/old/usr/local/apache/conf /usr/local/apache&lt;/p&gt; &lt;p align="justify"&gt;rsync -vrplogDtH /mnt/old/var/named /var&lt;/p&gt; &lt;p align="justify"&gt;rsync -vrplogDtH /mnt/old/home/* /home&lt;/p&gt; &lt;p align="justify"&gt;rsync -vrplogDtH /mnt/old/usr/local/cpanel /usr/local&lt;/p&gt; &lt;p align="justify"&gt;rsync -vrplogDtH /mnt/old/var/lib/mysql /var/lib&lt;/p&gt; &lt;p align="justify"&gt;rsync -vrplogDtH /mnt/old/var/cpanel /var&lt;/p&gt; &lt;p align="justify"&gt;rsync -vrplogDtH /mnt/old/usr/share/ssl /usr/share&lt;/p&gt; &lt;p align="justify"&gt;rsync -vrplogDtH /mnt/old/var/ssl /var&lt;/p&gt; &lt;p align="justify"&gt;rsync -vrplogDtH /mnt/old/usr/local/cpanel/3rdparty/mailman /usr/local/cpanel/3rdparty&lt;/p&gt; &lt;p align="justify"&gt;rsync -vrplogDtH /mnt/old/var/log/bandwidth /var/log&lt;/p&gt; &lt;p align="justify"&gt;rsync -vrplogDtH /mnt/old/usr/local/frontpage /usr/local&lt;/p&gt; &lt;p align="justify"&gt;rsync -vrplogDtH /mnt/old/var/spool/cron /var/spool&lt;/p&gt; &lt;p align="justify"&gt;Next Step - Get some important files from etc:&lt;/p&gt; &lt;p align="justify"&gt;cd /mnt/old/etc&lt;/p&gt; &lt;p align="justify"&gt;rsync -vrplogDtH secondarymx domainalias valiases vfilters exim* proftpd* pure-ftpd* passwd* group* *domain* *named* wwwacct.conf cpupdate.conf quota.conf shadow* *rndc* ips* ipaddrpool* ssl /etc&lt;/p&gt; &lt;p align="justify"&gt;Now would be a good time to change your password for root:&lt;/p&gt; &lt;p align="justify"&gt;passwd&lt;/p&gt; &lt;p align="justify"&gt;&lt;strong&gt;III. Updating software and restarting services&lt;/strong&gt;&lt;/p&gt; &lt;p align="justify"&gt;/scripts/upcp&lt;/p&gt; &lt;p align="justify"&gt;/scripts/updatenow&lt;/p&gt; &lt;p align="justify"&gt;/scripts/sysup&lt;/p&gt; &lt;p align="justify"&gt;/scripts/fixeverything&lt;/p&gt; &lt;p align="justify"&gt;/scripts/exim4&lt;/p&gt; &lt;p align="justify"&gt;/scripts/easyapache&lt;/p&gt; &lt;p align="justify"&gt;/scripts/securetmp&lt;/p&gt; &lt;p align="justify"&gt;This is needed to update cpanel information. Please note, sshd might fail and not start after running fixeverything. You have to login to whm, and go to the rpm installer and “FORCE” install opensshd-server, opensshd, opensshd-client and then restart sshd from whm.&lt;/p&gt; &lt;p align="justify"&gt;&lt;strong&gt;IV. Restarting services&lt;/strong&gt;&lt;/p&gt; &lt;p align="justify"&gt;/scripts/restartsrv httpd&lt;/p&gt; &lt;p align="justify"&gt;/scripts/restartsrv cpanel&lt;/p&gt; &lt;p align="justify"&gt;/scripts/restartsrv mysql&lt;/p&gt; &lt;p align="justify"&gt;/scripts/restartsrv named&lt;/p&gt; &lt;p align="justify"&gt;/scripts/restartsrv exim&lt;/p&gt; &lt;p align="justify"&gt;Thats all. This will work 100% in redhat and fedora OS.  It will work fine on FreeBSD except slight changes in 2 lines:&lt;/p&gt; &lt;p align="justify"&gt;rsync -vrplogDtH /mnt/old/var/lib/mysql /var/lib&lt;/p&gt; &lt;p align="justify"&gt;should be:&lt;/p&gt; &lt;p align="justify"&gt;rsync -vrplogDtH /mnt/old/var/db/mysql /var/db&lt;/p&gt; &lt;p align="justify"&gt;and also after running “cd /mnt/old/etc” :&lt;/p&gt; &lt;p align="justify"&gt;rsync -vrplogDtH secondarymx domainalias valiases vfilters exim* proftpd* pure-ftpd* passwd* group* *domain* *named* wwwacct.conf cpupdate.conf quota.conf shadow* *rndc* ips* ipaddrpool* ssl /etc&lt;/p&gt; &lt;p align="justify"&gt;should be:&lt;/p&gt; &lt;p align="justify"&gt;rsync -vrplogDtH secondarymx domainalias valiases vfilters exim* cpupdate.conf quota.conf master.passwd* *rndc* ips* ipaddrpool* ssl /etc&lt;/p&gt; &lt;p align="justify"&gt;Other than that rest will work fine and should restore all accounts and settings.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-7006998303445490458?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/7006998303445490458/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/how-to-restore-off-mounted-slave-disk.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/7006998303445490458'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/7006998303445490458'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/how-to-restore-off-mounted-slave-disk.html' title='How to Restore off a mounted slave disk on Redhat + Cpanel (crash/hack/bad kernel)'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-5879710689765838244</id><published>2009-06-01T19:32:00.001-07:00</published><updated>2009-06-01T19:32:29.548-07:00</updated><title type='text'>Rvskin Install</title><content type='html'>&lt;p&gt;&lt;p&gt;mkdir /root/rvadmin&lt;/p&gt; &lt;p&gt;cd /root/rvadmin&lt;/p&gt; &lt;p&gt;wget http://download.rvglobalsoft.com/download.php/download/rvskin-auto/saveto/rvauto.tar.bz2&lt;/p&gt; &lt;p&gt;bunzip2 -d rvauto.tar.bz2&lt;/p&gt; &lt;p&gt;tar -xvf rvauto.tar&lt;/p&gt; &lt;p&gt;perl /root/rvadmin/auto_rvskin.pl&lt;/p&gt; &lt;p&gt;---&lt;/p&gt; &lt;p&gt;perl /root/rvadmin/uninstall.pl - uninstall&lt;/p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-5879710689765838244?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/5879710689765838244/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/rvskin-install.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/5879710689765838244'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/5879710689765838244'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/rvskin-install.html' title='Rvskin Install'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-7844617066711214190</id><published>2009-06-01T19:26:00.000-07:00</published><updated>2009-06-01T19:27:20.634-07:00</updated><title type='text'>cPanel and WHM Installation for Linux &amp; FreeBSD</title><content type='html'>&lt;p&gt;&lt;strong&gt;Cpanel:&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;1. Make a /home/cpins directory.&lt;/p&gt; &lt;p&gt;mkdir /home/cpins; cd /home/cpins;&lt;/p&gt; &lt;p&gt;2. Get the installation script from layer1.cpanel.net.&lt;/p&gt; &lt;p&gt;wget http://layer1.cpanel.net/latest&lt;/p&gt; &lt;p&gt;3. Finally, run the shell script.&lt;/p&gt; &lt;p&gt;sh latest&lt;/p&gt; &lt;p&gt;&lt;strong&gt;FreeBSD:&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;1. Make a /home/cpins directory.&lt;/p&gt; &lt;p&gt;mkdir /home/cpins; cd /home/cpins;&lt;/p&gt; &lt;p&gt;2. Get the installation script from layer1.cpanel.net.&lt;/p&gt; &lt;p&gt;fetch http://layer1.cpanel.net/latest&lt;/p&gt; &lt;p&gt;3. Finally, run the shell script.&lt;/p&gt; &lt;p&gt;sh latest&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-7844617066711214190?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/7844617066711214190/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/cpanel-and-whm-installation-for-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/7844617066711214190'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/7844617066711214190'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/cpanel-and-whm-installation-for-linux.html' title='cPanel and WHM Installation for Linux &amp;amp; FreeBSD'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-7260007076196608935</id><published>2009-06-01T19:18:00.001-07:00</published><updated>2009-06-01T19:18:40.231-07:00</updated><title type='text'>Installing DomainKeys on a cPanel server for server wide</title><content type='html'>&lt;p&gt;Run the following small script on the server.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;for i in `ls /var/cpanel/users` ;do /usr/local/cpanel/bin/domain_keys_installer $i ;done&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;This will install the domainkeys as serverwide.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-7260007076196608935?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/7260007076196608935/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/installing-domainkeys-on-cpanel-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/7260007076196608935'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/7260007076196608935'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/installing-domainkeys-on-cpanel-server.html' title='Installing DomainKeys on a cPanel server for server wide'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-206157457782547218</id><published>2009-06-01T19:17:00.002-07:00</published><updated>2009-06-01T19:18:10.357-07:00</updated><title type='text'>Spamassassin is not working in cPanel Server</title><content type='html'>&lt;p align="justify"&gt;Steps:&lt;/p&gt; &lt;p align="justify"&gt;1. Edit /etc/mail/spamassassin/local.cf  &gt;&gt; Uncomment lock_method flock&lt;br /&gt;2. rm -rf /var/lib/spamassassin&lt;br /&gt;3. rm -rf /usr/share/spamassassin&lt;br /&gt;4. /scripts/perlinstaller –force Mail::SpamAssassin&lt;br /&gt;5. /etc/init.d/exim restart&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-206157457782547218?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/206157457782547218/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/spamassassin-is-not-working-in-cpanel.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/206157457782547218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/206157457782547218'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/spamassassin-is-not-working-in-cpanel.html' title='Spamassassin is not working in cPanel Server'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-1359455300896298629</id><published>2009-06-01T19:17:00.001-07:00</published><updated>2009-06-01T19:17:40.281-07:00</updated><title type='text'>How to install domain keys for a single domain</title><content type='html'>&lt;p&gt;You can install domain keys on a cpanel server easily for a single domain. Run the following command shown below:&lt;/p&gt; &lt;p&gt;&lt;strong&gt;/usr/local/cpanel/bin/domain_keys_installer username&lt;/strong&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-1359455300896298629?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/1359455300896298629/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/how-to-install-domain-keys-for-single.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/1359455300896298629'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/1359455300896298629'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/how-to-install-domain-keys-for-single.html' title='How to install domain keys for a single domain'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-762084141005482752</id><published>2009-06-01T19:16:00.000-07:00</published><updated>2009-06-01T19:17:16.065-07:00</updated><title type='text'>Ports</title><content type='html'>&lt;p&gt;FTP             -    21&lt;/p&gt; &lt;p&gt;SSH            -    22&lt;/p&gt; &lt;p&gt;TELNET    -    23&lt;/p&gt; &lt;p&gt;SMTP       -    25&lt;/p&gt; &lt;p&gt;DNS           -    53&lt;/p&gt; &lt;p&gt;HTTP        -   80&lt;/p&gt; &lt;p&gt;POP3         -   110&lt;/p&gt; &lt;p&gt;IMAP         -   143&lt;/p&gt; &lt;p&gt;SECURE IMAP - 995&lt;/p&gt; &lt;p&gt;SECURE POP3 - 993&lt;/p&gt; &lt;p&gt;HTTPS      -   443&lt;/p&gt; &lt;p&gt;MSSQL     -  1433&lt;/p&gt; &lt;p&gt;MySQL     -  3306&lt;/p&gt; &lt;p&gt;CPANEL - 2082&lt;/p&gt; &lt;p&gt;SECURE CPANEL - 2083&lt;/p&gt; &lt;p&gt;WHM - 2086&lt;/p&gt; &lt;p&gt;SECURE WHM - 2087&lt;/p&gt; &lt;p&gt;WEBMAIL - 2095&lt;/p&gt; &lt;p&gt;SECURE WEBMAIL - 2096&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-762084141005482752?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/762084141005482752/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/ports.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/762084141005482752'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/762084141005482752'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/ports.html' title='Ports'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-9067565338389389401</id><published>2009-06-01T19:10:00.000-07:00</published><updated>2009-06-01T19:16:46.378-07:00</updated><title type='text'>How to update horde and squirrel mail</title><content type='html'>&lt;p&gt;Run the following command in the server it will update the latest version.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;/usr/local/cpanel/bin/update-horde –force&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;/usr/local/cpanel/bin/update-squirrelmail –force&lt;/strong&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-9067565338389389401?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/9067565338389389401/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/06/how-to-update-horde-and-squirrel-mail.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/9067565338389389401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/9067565338389389401'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/06/how-to-update-horde-and-squirrel-mail.html' title='How to update horde and squirrel mail'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-6210554116645728122</id><published>2009-04-25T04:44:00.003-07:00</published><updated>2009-04-25T04:44:39.077-07:00</updated><title type='text'>cPanel Chkservd</title><content type='html'>&lt;p&gt;Cpanel &lt;strong&gt;chkservd&lt;/strong&gt;:&lt;/p&gt; &lt;p&gt;Chkservd is a service running on Cpanel servers. Chkservd service monitors other service, if any of the service that is monitored by chkservd is found down, chkservd will restart the service and notify server admin&lt;/p&gt; &lt;p&gt;You can start, stop chkservd with following commands:&lt;/p&gt; &lt;p&gt;service chkservd start&lt;br /&gt;service chkservd stop&lt;br /&gt;/etc/rc.d/init.d/chkservd start&lt;br /&gt;/etc/rc.d/init.d/chkservd stop&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-6210554116645728122?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/6210554116645728122/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/04/cpanel-chkservd.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/6210554116645728122'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/6210554116645728122'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/04/cpanel-chkservd.html' title='cPanel Chkservd'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-1295171054622955918</id><published>2009-04-25T04:44:00.001-07:00</published><updated>2009-04-25T04:44:23.772-07:00</updated><title type='text'>Root partition is 100% full</title><content type='html'>&lt;p&gt;Normally in Cpanel servers “/” partition is filled 100% even though nothing in it.&lt;/p&gt; &lt;p&gt;This problem is mainly due to hidden files in “/” partition. It won’t be show for normal du -sch command.  Some time a server reboot may fix this issue. If not, you would need to find the hidden files.&lt;/p&gt; &lt;p&gt;Here is a command  which is used to list the all hidden files.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;du -sk .[A-z]* *|sort -n&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Just see how it will list all files.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-1295171054622955918?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/1295171054622955918/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/04/root-partition-is-100-full.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/1295171054622955918'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/1295171054622955918'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/04/root-partition-is-100-full.html' title='Root partition is 100% full'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-3670778473377606742</id><published>2009-04-25T04:42:00.004-07:00</published><updated>2009-04-25T04:44:07.136-07:00</updated><title type='text'>Solving outlook express errors</title><content type='html'>&lt;p&gt;Sometimes we get some errors while using outlook express but we can't understand what they mean and what could be the solution for that.&lt;/p&gt; &lt;p&gt;Here’s the usual errors codes with their solutions:&lt;/p&gt; &lt;p&gt;&lt;strong&gt;0×800CCC00&lt;/strong&gt; - Authentication did not load.&lt;br /&gt;Solution :&lt;br /&gt;*) Try closing and restarting Outlook express&lt;br /&gt;*) If still getting same error, wait 20-30 minutes for a server reset of your account then try again.&lt;br /&gt;*) It could be a corruption of the user account in Outlook Express. Try setting up a second identity and see if it works.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;0×800CCC01&lt;/strong&gt; - INVALID CERTIFICATE CONTENT&lt;br /&gt;&lt;strong&gt;0×800CCC02&lt;/strong&gt; INVALID CERTIFICATE DATE&lt;br /&gt;Solution :&lt;br /&gt;*) Get your certificate re-issued by your authority server.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;0×800CCC03&lt;/strong&gt; - USER ALREADY CONNECTED&lt;br /&gt;Solution :&lt;br /&gt;*) Close all connections on all machines, wait 20-30 minutes and try again.&lt;br /&gt;*) If you are not logged in on another machine or poplocked then someone may be using/downloading from your account or something is wrong with your account.&lt;br /&gt;*) Sometimes due to improper disconnection your account gets Poplocked so to get out of it either wait 20-30 minutes for it to time out or get somebody to shell into the mail server and stop the mail task that is running on the account.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;0×800CCC05&lt;/strong&gt; NOT CONNECTED TO SERVER&lt;br /&gt;&lt;strong&gt;0×800CCC0D&lt;/strong&gt; CANT FIND HOST - Cannot locate server&lt;br /&gt;Solution :&lt;br /&gt;*) You may have typed wrong mail server in your account settings or the server may be down.&lt;br /&gt;*) Reboot the computer and try again.&lt;br /&gt;*) Data may not be moving across the network properly. Check DNS numbers, remove and then reinstall TCP/IP in Control Panel &gt; Network.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;0×800CCC0A&lt;/strong&gt; MESSAGE DOWNLOAD INCOMPLETE&lt;br /&gt;&lt;strong&gt;0×800CCC19&lt;/strong&gt; TIMEOUT&lt;br /&gt;Solution :&lt;br /&gt;*) This error may be due to corruption of pop3uidl file. Close the Internet connection and all programs. Search for the file ‘pop3uidl and delete it. Reconnect and it should work.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;0×800CCC0F&lt;/strong&gt; CONNECTION DROPPED&lt;br /&gt;Solution :&lt;br /&gt;*) may be modem or network cable was disconnected. If this happens frequently then try updating the modem drivers or adding an Init string.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;0×800CCC10&lt;/strong&gt; INVALID ADDRESS - Address not known on server&lt;br /&gt;Solution :&lt;br /&gt;*) Check the spelling in the TO: field of the e-mail. Delete the old message from the Outbox and then try it again.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;0×800CCC12 &lt;/strong&gt;SOCKET READ ERROR - Unable to send Winsock request&lt;br /&gt;Solution :&lt;br /&gt;*) Remove the TCP/IP protocol and reinstall it. In windows, go into Network from the Control Panel. NOTE: You may need your Windows CD for this task!&lt;/p&gt; &lt;p&gt;&lt;strong&gt;0×800CCC16&lt;/strong&gt; INVALID ACCOUNT - User account not recognized&lt;br /&gt;Solution :&lt;br /&gt;*) Check the spelling of the account name and re-enter the password taking care to spell it correctly.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;0×800CCC18&lt;/strong&gt; SICILY LOGON FAILED - Logon attempt failed&lt;br /&gt;Solution :&lt;br /&gt;*) Check account information, making sure account is not case sensitive, close Outlook Express, restart the computer and try reconnecting.&lt;br /&gt;*) Create a different identity and see if it will logon on from this identity with the same information.&lt;br /&gt;*) Make sure the account is still active with the ISP.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;0×800CCC1A&lt;/strong&gt; SECURE CONNECT FAILED - Unable to connect using SSL&lt;br /&gt;Solution :&lt;br /&gt;*) Your ISP may not require an SSL connection. Turn off SSL in the e-mail account properties and try again.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-3670778473377606742?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/3670778473377606742/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/04/solving-outlook-express-errors.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/3670778473377606742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/3670778473377606742'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/04/solving-outlook-express-errors.html' title='Solving outlook express errors'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-4810768428795096070</id><published>2009-04-25T04:42:00.003-07:00</published><updated>2009-04-25T04:42:45.940-07:00</updated><title type='text'>Remotely Access MySQL Database</title><content type='html'>&lt;p&gt;The following article explains how to access your &lt;strong&gt;MySQL database remotely.&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;1)Go to Cpanel &gt;&gt; MySQL Databases &gt;&gt; Access Hosts: &gt;&gt; Add IP of the machine from which you want to access databse.&lt;/p&gt; &lt;p&gt;2)Click on Add host.In order to access your MySQL database, please follow these steps:&lt;/p&gt; &lt;p&gt;1. Log into your machine from which you want to access database remotely.&lt;/p&gt; &lt;p&gt;2. Open the MySQL client program on the server in the /usr/bin directory.&lt;/p&gt; &lt;p&gt;cd /usr/bin&lt;/p&gt; &lt;p&gt;Give the command&lt;br /&gt;# mysql&lt;/p&gt; &lt;p&gt;3.Type in the following syntax to access your database:&lt;/p&gt; &lt;p&gt;$ mysql -h {hostname} -u username -p {databasename}&lt;br /&gt;Password: {your password}&lt;/p&gt; &lt;p&gt;mysql &gt;&lt;/p&gt; &lt;p&gt;* hostname: the name of the MySQL server that you are assigned to, for example, domainname/servername&lt;br /&gt;* databasename: The name of your MySQL database&lt;br /&gt;* password: The password you use to access your MySQL database&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-4810768428795096070?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/4810768428795096070/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/04/remotely-access-mysql-database.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/4810768428795096070'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/4810768428795096070'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/04/remotely-access-mysql-database.html' title='Remotely Access MySQL Database'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-3691410460247309460</id><published>2009-04-25T04:42:00.001-07:00</published><updated>2009-04-25T04:42:24.201-07:00</updated><title type='text'>How to set the mysql database backup cronjob ?</title><content type='html'>&lt;p&gt;&lt;strong&gt;CRON&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Cron is a linux utility that schedules a command (or commands) to be executed periodically at certain times. They can perform user-defined tasks such as backing up databases, scheduling mailing lists, clearing old records, etc etc.&lt;/p&gt; &lt;p&gt;To set up a CRON Job, you need to know two things.&lt;/p&gt; &lt;p&gt;1. The command that is to be executed (often a user written script or a UNIX command)&lt;br /&gt;2. How often the command is to be executed (what days, months, dates, hours etc etc)&lt;/p&gt; &lt;p&gt;There are following different format to get the backup of mysql database using cron job&lt;/p&gt; &lt;p&gt;1) Simple cron job syntax to take database backup&lt;br /&gt;* * * * * /usr/bin/mysqldump -u databaseusername databasename -ppassword &gt; /path of database store.sql&lt;/p&gt; &lt;p&gt;2) Compress the database backup in gz format&lt;br /&gt;* * * * * /usr/bin/mysqldump -u databaseusername databasename -ppassword|gzip &gt; /path of database store.gz&lt;/p&gt; &lt;p&gt;3) Compress the database backup in bz2 format&lt;br /&gt;* * * * * /usr/bin/mysqldump -u datbaseusername databasename -pdatbasepassword|bzip2 -c &gt; /path of database store.bz2&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-3691410460247309460?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/3691410460247309460/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/04/how-to-set-mysql-database-backup.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/3691410460247309460'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/3691410460247309460'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/04/how-to-set-mysql-database-backup.html' title='How to set the mysql database backup cronjob ?'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-5054642078311716337</id><published>2009-04-25T04:41:00.003-07:00</published><updated>2009-04-25T04:41:57.849-07:00</updated><title type='text'>Horde session handler error</title><content type='html'>&lt;p&gt;If you are getting &lt;strong&gt;horde session handler error&lt;/strong&gt;, then please check if horde db is present on server or not. You can check it with&lt;/p&gt; &lt;p&gt;#mysqlshow |grep horde&lt;br /&gt;It should give you output like,&lt;/p&gt; &lt;p&gt;[~]#mysqlshow |grep horde&lt;br /&gt;| horde |&lt;/p&gt; &lt;p&gt;If the output is blank, then you need to create a db called horde.&lt;br /&gt;You can do it with commnd.&lt;br /&gt;#mysqladmin create horde&lt;/p&gt; &lt;p&gt;Then run a script :&lt;br /&gt;#/scripts/fullhordereset&lt;/p&gt; &lt;p&gt;If horde db is already exist on server then go to mysql and on mysql prompt run commands.&lt;/p&gt; &lt;p&gt;mysql&gt;use horde;&lt;br /&gt;mysql&gt;repair table horde_sessionhandler;&lt;br /&gt;mysql&gt;\q&lt;/p&gt; &lt;p&gt;Then on shell prompt run commands&lt;br /&gt;#touch /var/cpanel/usecpphp&lt;br /&gt;#/scripts/fullhordereset&lt;/p&gt; &lt;p&gt;It will fix the most of issue with horde.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-5054642078311716337?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/5054642078311716337/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/04/horde-session-handler-error.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/5054642078311716337'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/5054642078311716337'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/04/horde-session-handler-error.html' title='Horde session handler error'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-7038359139126191448</id><published>2009-04-25T04:41:00.001-07:00</published><updated>2009-04-25T04:41:40.451-07:00</updated><title type='text'>Default Mysql my.cnf configuration file</title><content type='html'>&lt;p&gt;If you are not aware of &lt;strong&gt;my.cnf&lt;/strong&gt; files configuration and want to use mysql server to optimize your database usage then replace this configuration file.&lt;/p&gt; &lt;p&gt;[mysqld]&lt;br /&gt;socket = /var/lib/mysql/mysql.sock&lt;br /&gt;safe-show-database&lt;br /&gt;old-password=1&lt;br /&gt;max_connections=500&lt;br /&gt;interactive_timeout=100&lt;br /&gt;wait_timeout=30&lt;br /&gt;connect_timeout=30&lt;br /&gt;thread_cache_size=8&lt;br /&gt;key_buffer=32M&lt;br /&gt;join_buffer=8M&lt;br /&gt;max_allowed_packet=32M&lt;br /&gt;table_cache=1024&lt;br /&gt;sort_buffer=32M&lt;br /&gt;record_buffer=8M&lt;br /&gt;thread_cache_size=128&lt;br /&gt;max_user_connections=30&lt;/p&gt; &lt;p&gt;thread_concurrency=4&lt;br /&gt;myisam_sort_buffer_size=64M&lt;br /&gt;query_cache_limit=2M&lt;br /&gt;query_cache_size=32M&lt;br /&gt;query_cache_type=1&lt;/p&gt; &lt;p&gt;old-passwords = 1&lt;/p&gt; &lt;p&gt;[safe_mysqld]&lt;br /&gt;err-log=/var/log/mysqld.log&lt;br /&gt;open_files_limit=8192&lt;/p&gt; &lt;p&gt;[mysqldump]&lt;br /&gt;quick&lt;br /&gt;max_allowed_packet=32M&lt;/p&gt; &lt;p&gt;[mysql]&lt;br /&gt;no-auto-rehash&lt;br /&gt;# Remove the next comment character if you are not familiar with SQL&lt;br /&gt;#safe-updates&lt;/p&gt; &lt;p&gt;[isamchk]&lt;br /&gt;key_buffer=64M&lt;br /&gt;sort_buffer=64M&lt;br /&gt;read_buffer=16M&lt;br /&gt;write_bufer=16M&lt;/p&gt; &lt;p&gt;[myisamchk]&lt;br /&gt;key_buffer=64M&lt;br /&gt;sort_buffer=64M&lt;br /&gt;read_buffer=16M&lt;br /&gt;write_buffer=16M&lt;/p&gt; &lt;p&gt;[mysqlhotcopy]&lt;br /&gt;interactive-timeout&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-7038359139126191448?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/7038359139126191448/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/04/default-mysql-mycnf-configuration-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/7038359139126191448'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/7038359139126191448'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/04/default-mysql-mycnf-configuration-file.html' title='Default Mysql my.cnf configuration file'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-4352226683638250497</id><published>2009-04-25T04:40:00.002-07:00</published><updated>2009-04-25T04:41:01.277-07:00</updated><title type='text'>OpenVZ</title><content type='html'>&lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;OpenVZ uses Operating System Virtualization technology through which you can partition a single physical server into multiple small computational partitions and thus a physical server can have multiple secure isolated operating systems. Each such partition looks and feels like a real server. OpenVZ is based on Linux OS.&lt;/p&gt;&lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;OpenVZ requires both the host and guest to be on Linux. OpenVZ allows to have multiple Virtual Environment (up to as many as several hundreds) on a single Hardware Node such physical server are know as Virtual Private Servers(VPS) or Virtual Environments(VE).&lt;/p&gt;&lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Each VE performs and executes exactly like a stand-alone server; VEs can be rebooted independently and have root access, users, IP addresses, memory, processes, files, applications, system libraries and configuration files.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Following are some important commands which are normally used while working on a Hardware Node.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;# vzlist -a : Shows list of all the VPS's hosted on the Node.&lt;br /&gt;# vzctl start VPS_ID: To start the VPS.&lt;br /&gt;# vzctl stop VPS_ID : To stop (Shut Down) the VPS&lt;br /&gt;# vzctl status VPS_ID : To view the status of the VPS&lt;br /&gt;# vzctl stop VPS_ID  : to stop the VPS quickly and forcefully&lt;br /&gt;# vzctl enter VPS_ID : To enter in a particular VPS&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;The OpenVZ project is an open source community project supported by SWsoft&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-4352226683638250497?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/4352226683638250497/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/04/openvz.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/4352226683638250497'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/4352226683638250497'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/04/openvz.html' title='OpenVZ'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-3558497360119266471</id><published>2009-04-25T04:40:00.001-07:00</published><updated>2009-04-25T04:40:25.368-07:00</updated><title type='text'>Domain Redirecting using mod_rewrite</title><content type='html'>&lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;&lt;p&gt;For some reason you need to redirect your domain you can do so by using following code and need to update .htaccess file.&lt;br /&gt;To redirect domain to www. domain you need to put the following mod_rewrite rule in .htaccess file inside public_html.&lt;/p&gt; &lt;p&gt;RewriteEngine on&lt;br /&gt;RewriteCond %{HTTP_HOST} ^domain\.com&lt;br /&gt;RewriteRule ^(.*)$ http://www.domain. com/$1 [R=permanent,L]&lt;/p&gt; &lt;p&gt;To use this rule mod_rewrite module is needed on server.&lt;/p&gt; &lt;p&gt;Note - Replace domain.com with your actual domain name.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-3558497360119266471?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/3558497360119266471/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/04/domain-redirecting-using-modrewrite.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/3558497360119266471'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/3558497360119266471'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/04/domain-redirecting-using-modrewrite.html' title='Domain Redirecting using mod_rewrite'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-2730425405639901884</id><published>2009-04-25T04:39:00.001-07:00</published><updated>2009-04-25T04:39:50.449-07:00</updated><title type='text'>Cron Jobs (Automated Processes)</title><content type='html'>&lt;p style="text-align:justify;" mce_style="text-align:justify;" align="justify"&gt;Cron is a unix, solaris utility that allows tasks to be automatically run in the background at regular intervals by the cron daemon.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;" align="justify"&gt;Cron job is an automated process that operates at predefined time intervals. For example, reindexing your Web site using Excite at 3:00am every morning.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;" align="justify"&gt;Cron daemon is a long-running process that executes commands at specific dates and times. You can use this to schedule activities, either as one-time events or as recurring tasks.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;" align="justify"&gt;For commands that need to be executed repeatedly (e.g., hourly, daily, or weekly), you can use the crontab command. The crontab command creates a crontab file containing commands and instructions for the cron daemon to execute. You can use the crontab command with the following options:crontab -a filename Install filename as your crontab file. On many systems, this command is executed simply as crontab filename (i.e., without the -a option).&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;" align="justify"&gt;crontab -e    Edit your crontab file, or create one if it doesn’t already exist.&lt;br /&gt;crontab -l     Display your crontab file.&lt;br /&gt;crontab -r    Remove your crontab file.&lt;br /&gt;crontab -v    Display the last time you edited your crontab file. (This option is available on only a few systems.)&lt;br /&gt;crontab -u  user   Used in conjunction with other options, this option allows you to modify or view the crontab file of user. When available, only administrators can use this option.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;" align="justify"&gt;Each entry in a crontab file consists of six fields, specifying in the following order:&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;" align="justify"&gt;minute(s) hour(s) day(s) month(s) weekday(s) command(s)&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;" align="justify"&gt;The fields are separated by spaces or tabs. The first five are integer patterns and the sixth is the command to execute. The following table briefly describes each of the fields:Field  Value  Description&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;" align="justify"&gt;minute 0-59     The exact minute that the command sequence executes&lt;br /&gt;hour 0-23         The hour of the day that the command sequence executes&lt;br /&gt;day 1-31            The day of the month that the command sequence executes&lt;br /&gt;month 1-12       The month of the year that the command sequence executes&lt;br /&gt;weekday 0-6      The day of the week that the command sequence executes (Sunday = 0, Monday = 1, Tuesday = 2, and so forth)&lt;br /&gt;command Special The complete sequence of commands to execute. The command string must conform to Bourne shell syntax. Commands, executables (such as scripts), or combinations are acceptable.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;" align="justify"&gt;Each of the patterns from the first five fields may be either * (an asterisk), meaning all legal values, or a list of elements separated by commas. An element is either a number or an inclusive range, indicated by two numbers separated by a minus sign (e.g., 10-12). You can specify days with two fields: day of the month and day of the week. If you specify both of them as a list of elements, cron will observe both of them;&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;" align="justify"&gt;for example:&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;" align="justify"&gt;0 0 1,15 * 1 /mydir/myprogram&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;" align="justify"&gt;The cron daemon would run the program myprogram in the mydir directory on the first and fifteenth of each month, as well as on every Monday. To specify days by only one field, the other field should be set to * , for example:&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;" align="justify"&gt;0 0 * * 1 /mydir/myprogram&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;" align="justify"&gt;In the above example, the program would run only on Mondays.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;" align="justify"&gt;If a cron job specified in your crontab entry produces any error messages when it runs, you will get a mail message reporting the errors.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;" align="justify"&gt;Disable Email&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;" align="justify"&gt;By default cron jobs sends a email to the user account executing the cronjob. If this is not needed put the following command At the end of the cron job line .&lt;br /&gt;&gt;/dev/null 2&gt;&amp;amp;1&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;" align="justify"&gt;Crontab Restrictions&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;" align="justify"&gt;You can execute crontab if your name appears in the file&lt;br /&gt;/usr/lib/cron/cron.allow. If that file does not exist, you can use&lt;br /&gt;crontab if your name does not appear in the file&lt;br /&gt;/usr/lib/cron/cron.deny.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;" align="justify"&gt;If only cron.deny exists and is empty, all users can use crontab. If neither file exists, only the root user can use crontab. The allow/deny files consist of one user name per line.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-2730425405639901884?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/2730425405639901884/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/04/cron-jobs-automated-processes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/2730425405639901884'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/2730425405639901884'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/04/cron-jobs-automated-processes.html' title='Cron Jobs (Automated Processes)'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-7989501356858818143</id><published>2009-04-25T04:38:00.003-07:00</published><updated>2009-04-25T04:38:42.907-07:00</updated><title type='text'>How to hide the PHP version to remote requests</title><content type='html'>&lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;In order to prevent PHP from exposing the fact that it is installed on the server, by adding to the web server header we need to locate in php.ini the variable expose_php and turn it off.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;By default expose_php is set to ‘On’&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;In your php.ini locate the line containing expose_php On and set it to Off ;&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;&lt;strong&gt;expose_php = Off&lt;/strong&gt;&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;After making this change PHP will no longer add it signature to the web server header. Doing this, will not make your server more secure but,it will just prevent remote hosts to easily see that you have PHP installed on the system and what version you are running.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-7989501356858818143?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/7989501356858818143/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/04/how-to-hide-php-version-to-remote.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/7989501356858818143'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/7989501356858818143'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/04/how-to-hide-php-version-to-remote.html' title='How to hide the PHP version to remote requests'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-36032065479977401</id><published>2009-04-25T04:38:00.001-07:00</published><updated>2009-04-25T04:38:18.850-07:00</updated><title type='text'>Linux Boot Sequence</title><content type='html'>&lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;The process of booting a Linux system consists of a number of stages as follows&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;1) BIOS&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;2) Master Boot Record (MBR)&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;3) LILO or GRUB&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;4) Kernel&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;5) init&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;6) Run Levels&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;The process of booting a Linux system consists of a number of stages&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;1)BIOS: Basic Input/Output System is the lowest level interface between the computer and peripherals which load boot sector from one of following devices&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Floppy&lt;br /&gt;CDROM&lt;br /&gt;Hard drive&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;The boot order can be changed from within the BIOS. BIOS setup can be entered by pressing a del ,F1 , F2, or F10 key during bootup.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;2)MBR:&lt;br /&gt;The first sector of the hard disk is reserved master boot record (MBR).&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;When we the Operating booting from a hard disk, the PC system BIOS loads and executes the boot loader code in the MBR. Here MBR needs to know which partitions on the disk have boot loader code specific to their operating systems in their boot sectors and then attempts to boot one of them.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Fedora Linux is supplied with the GRUB boot loader which is fairly sophisticated and therefore cannot entirely fit in the 512 bytes of the MBR.&lt;br /&gt;The GRUB MBR boot loader merely searches for a special boot partition and loads a second stage boot loader.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;This then reads the data in the /boot/grub/grub.conf configuration file, which lists all the available operating systems and their booting parameters. When this is complete, the second stage boot loader then displays the familiar Fedora branded splash screen that lists all the configured operating system kernels for your choice.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;3)Boot loader (GRUB or LILO)&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Lilo and Grub are installed or at the MBR (Master Boot Record), or at the first sector of the active partition.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Boot loader will ask for the OS label which will identify which kernel to run and where it is located (hard drive and partition specified). The installation process requires to creation/identification of partitions and where to install the OS. GRUB/LILO are also configured during this process. The boot loader then loads the Linux operating system.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;LILO: (Linux Loader)&lt;br /&gt;In case of a multi-boot config, LiLo permits the user two choose an operating system from the menu. The LiLo settings are stored at /etc/lilo.conf&lt;br /&gt;-LILO does not understand filesystems&lt;br /&gt;- code and kernel image to be loaded is stored as raw disk offsets&lt;br /&gt;-uses the BIOS routines to load&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Grub (GNU Grub Unified Boot Loader)&lt;br /&gt;- Understands file systems&lt;br /&gt;- config lives in /boot/grub/menu.lst or /boot/boot/menu.lst&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;4)Kernel&lt;br /&gt;-The kernel verifies hardware configuration and initialise devices.&lt;br /&gt;(optionally loads initrd, )&lt;br /&gt;-The kernel tries to mount the file system and the system filesmounts root filesystem specified by lilo or loadin with root= parameter&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;The file system type is automatically detected. The most used file systems on Linux are ext2 and ext3. If the mount fails, a so-called kernel panic will occur, and the system will “freeze”.&lt;br /&gt;System files are usually mounted in read-only mode, to permit a verification of them during the mount. This verification isn’t indicated if the files were mounted in read-write mode.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;-kernel prints: VFS: Mounted root (ext2 filesystem) readonly.&lt;br /&gt;* runs /sbin/init which is process number 1 (PID=1)&lt;br /&gt;- init prints: INIT: version 2.76 booting&lt;br /&gt;- can be changed with boot= parameter to lilo, eg boot=/bin/sh can be useful to rescue a system which is having trouble booting.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;After these steps, the kernel will start init, which will become process number 1, and will start the rest of the system.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;5) init process&lt;br /&gt;The init process is the last step in the boot procedure and parent of all the other processes. This process is the first running process on any Linux/UNIX system, and is started directly by the kernel. It is what loads the rest of the system, and always has a PID of 1.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Init is responsible for starting system processes as defined in the /etc/inittab file.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;The init process is never shut down. It is a user process and not a kernel system process although it does run as root.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Run Levels&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;0 halt&lt;br /&gt;1 single user&lt;br /&gt;2 Not used (user-definable)&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;3 Full multi-user mode (no GUI interface)&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;4 Not used (user-definable)&lt;br /&gt;5 X11 Full multiuser mode (with GUI interface)&lt;br /&gt;6 Reboot&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Based on the selected runlevel, the init process then executes startup scripts located in subdirectories of the /etc/rc.d directory. Scripts used for runlevels 0 to 6 are located in subdirectories /etc/rc.d/rc0.d through /etc/rc.d/rc6.d, respectively.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Default is defined in /etc/inittab, eg:&lt;br /&gt;o id:3:initdefault:&lt;br /&gt;The current runlevel can be changed by running /sbin/telinit # where # is the new runlevel, eg typing telinit 6 will reboot.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-36032065479977401?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/36032065479977401/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/04/linux-boot-sequence.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/36032065479977401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/36032065479977401'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/04/linux-boot-sequence.html' title='Linux Boot Sequence'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-7435658089150295249</id><published>2009-04-25T04:36:00.000-07:00</published><updated>2009-04-25T04:37:47.310-07:00</updated><title type='text'>CSF (configserver) firewall</title><content type='html'>&lt;p&gt;How to install and configure the CSF (configserver) firewall.&lt;/p&gt; &lt;p&gt;CSF can be used on a wide range of Linux systems, including those running cPanel.&lt;/p&gt; &lt;p&gt;Following are the steps to install and configure the CSF on Linux Server.&lt;/p&gt; &lt;p&gt;Installation is quite straightforward:&lt;/p&gt; &lt;p&gt;rm -fv csf.tgz&lt;/p&gt; &lt;p&gt;wget http://www.configserver.com/free/csf.tgz&lt;br /&gt;tar -xzf csf.tgz&lt;br /&gt;cd csf&lt;br /&gt;sh install.sh&lt;/p&gt; &lt;p&gt;If you would like to disable APF+BFD (which you will need to do if you have&lt;br /&gt;them installed otherwise they will conflict horribly):&lt;/p&gt; &lt;p&gt;sh disable_apf_bfd.sh&lt;/p&gt; &lt;p&gt;That’s it. You can then configure csf and lfd in WHM, or edit the files&lt;br /&gt;directly in /etc/csf/*&lt;/p&gt; &lt;p&gt;csf is preconfigured to work on a cPanel server with all the standard cPanel&lt;br /&gt;ports open. It also auto-configures your SSH port if it’s non-standard on&lt;br /&gt;installation.&lt;/p&gt; &lt;p&gt;To configure CSF modify the config files in /etc/csf/ - or if you are running WHM you can modify the CSF settings in WHM itself.&lt;/p&gt; &lt;p&gt;You should ensure that kernel logging daemon (klogd) is enabled. Typically, VPS servers have this disabled and you should check /etc/init.d/syslog and make sure that any klogd lines are not commented out. If you change the file, remember to restart syslog.&lt;/p&gt; &lt;p&gt;See the readme.txt file for more information.&lt;/p&gt; &lt;p&gt;Uninstallation&lt;br /&gt;==============&lt;br /&gt;Removing csf and lfd is even more simple:&lt;/p&gt; &lt;p&gt;cd /etc/csf&lt;br /&gt;sh uninstall.sh&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-7435658089150295249?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/7435658089150295249/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/04/csf-configserver-firewall.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/7435658089150295249'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/7435658089150295249'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/04/csf-configserver-firewall.html' title='CSF (configserver) firewall'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-9131471758270702702</id><published>2009-04-25T04:33:00.002-07:00</published><updated>2009-04-25T04:36:16.663-07:00</updated><title type='text'>How to get and restore database backup on linux server</title><content type='html'>For taking backup of your database on Linux Server you have to make sure that your database is good enough. with shell access you can take the database backup in .sql format with following command&lt;br /&gt;&lt;br /&gt;#mysqldump user_databasename &gt; database.sql&lt;br /&gt;&lt;br /&gt;As you are having database backup and want to restore it then use following command&lt;br /&gt;&lt;br /&gt;#mysql user_databasename &lt; database.sql&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-9131471758270702702?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/9131471758270702702/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/04/how-to-get-and-restore-database-backup.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/9131471758270702702'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/9131471758270702702'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/04/how-to-get-and-restore-database-backup.html' title='How to get and restore database backup on linux server'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-753239340555311512</id><published>2009-04-25T04:33:00.001-07:00</published><updated>2009-04-25T04:33:36.144-07:00</updated><title type='text'>Installing ImageMagik</title><content type='html'>&lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;ImageMagick is a software used to create, edit, and compose bitmap images. Using ImageMagick we can read, convert and write images in a variety of formats including DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, and TIFF. ImageMagick is used to translate, flip, mirror, rotate, scale, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;ImageMagick is typically utilized from the command line or you can use the features from programs written in your favorite programming language. Choose from these interfaces: G2F (Ada), MagickCore (C), MagickWand (C)&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;How to install ImageMagick On Linux Server&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;tar -zxvf ImageMagick*.tar.gz&lt;br /&gt;cd &lt;strong&gt;ImageMagick&lt;/strong&gt;*&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;./configure&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;make&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;make install&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;You can verify the installation with command :&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;&lt;strong&gt;which convert&lt;/strong&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-753239340555311512?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/753239340555311512/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/04/installing-imagemagik.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/753239340555311512'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/753239340555311512'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/04/installing-imagemagik.html' title='Installing ImageMagik'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-736912941867184083</id><published>2009-04-25T04:32:00.001-07:00</published><updated>2009-04-25T04:32:37.605-07:00</updated><title type='text'>Installing eAccelerator</title><content type='html'>&lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Eaccelerator is a free open-source PHP accelerator/encoder/caching utility that is based off of the old mmcache (which is no longer being maintained).&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;What Eaccelerator does is: it caches your PHP scripts so that the database is no longer being queried everytime someone needs a script. eAccelerator stores compiled PHP scripts in shared memory and executes code directly from it. This is particularly useful for large forums, but pretty much anyone can benefit from it. Since these scripts are cached, you’ll notice a decrease in memory use and server load.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Installation steps :&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Installing Eaccelerator&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;1. First, you’ll want to SSH into your server as the root user. you should be in the default directory now. If you’re not, type in cd ~&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;2. Now we’ll make the eaccelerator directory:&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;mkdir /ea/&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;cd /ea/&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;2. Now we’ll grab the files, and untar them:&lt;br /&gt;Notice that it’s a tar.bz2 file, so we need to decompress it twice.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;wget&lt;br /&gt;http://heanet.dl.sourceforge.net/sourceforge/eaccelerator/eaccelerator-0.9.4-rc1.tar.bz2&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;bzip2 -d eaccelerator-0.9.4-rc1.tar.bz2&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;tar xvf eaccelerator-0.9.4-rc1.tar&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;3. Now that we’ve done that, let’s install Eaccelerator:&lt;br /&gt;Note: in the following “export” command, you need to point that to where PHP is installed. For most, it’s usually either “usr/” or “usr/local”, but it may be something else.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;cd eaccelerator-0.9.4-rc1/&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;export PHP_PREFIX=”/usr”&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;$PHP_PREFIX/bin/phpize&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;./configure –enable-eaccelerator=shared&lt;br /&gt;–with-php-config=$PHP_PREFIX/bin/php-config&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;make&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;make install&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;4. It’s basically installed, now we need to edit the php.ini files to&lt;br /&gt;include Eaccelerator. This is usually found in the /etc/ folder, but if&lt;br /&gt;you can’t find it, run a “locate php.ini” (without quotes) to find it.&lt;br /&gt;[i]I’m editting my file with nano, which pretty much anyone with a modern server should have. You can use pico or vi, it’s your choice:&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;cd ~&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;nano /etc/php.ini&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Now find ;Windows Extensions (press ctrl + W). Remove the mmcache lines (if you had it installed before) above this and…&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;—————————————————————————-&lt;br /&gt;For a PHP extension install (most will probably want this)&lt;br /&gt;—————————————————————————-&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;extension=”eaccelerator.so”&lt;br /&gt;eaccelerator.shm_size=”16″&lt;br /&gt;eaccelerator.cache_dir=”/tmp/eaccelerator”&lt;br /&gt;eaccelerator.enable=”1″&lt;br /&gt;eaccelerator.optimizer=”1″&lt;br /&gt;eaccelerator.check_mtime=”1″&lt;br /&gt;eaccelerator.debug=”0″&lt;br /&gt;eaccelerator.filter=”"&lt;br /&gt;eaccelerator.shm_max=”0″&lt;br /&gt;eaccelerator.shm_ttl=”0″&lt;br /&gt;eaccelerator.shm_prune_period=”0″&lt;br /&gt;eaccelerator.shm_only=”0″&lt;br /&gt;eaccelerator.compress=”1″&lt;br /&gt;eaccelerator.compress_level=”9″&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;—————————————————————————-&lt;br /&gt;For a Zend extension install (only if you have Zend installed, or&lt;br /&gt;if you’re going to install it&lt;br /&gt;—————————————————————————-&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;zend_extension=”/usr/lib/php4/eaccelerator.so”&lt;br /&gt;eaccelerator.shm_size=”16″&lt;br /&gt;eaccelerator.cache_dir=”/tmp/eaccelerator”&lt;br /&gt;eaccelerator.enable=”1″&lt;br /&gt;eaccelerator.optimizer=”1″&lt;br /&gt;eaccelerator.check_mtime=”1″&lt;br /&gt;eaccelerator.debug=”0″&lt;br /&gt;eaccelerator.filter=”"&lt;br /&gt;eaccelerator.shm_max=”0″&lt;br /&gt;eaccelerator.shm_ttl=”0″&lt;br /&gt;eaccelerator.shm_prune_period=”0″&lt;br /&gt;eaccelerator.shm_only=”0″&lt;br /&gt;eaccelerator.compress=”1″&lt;br /&gt;eaccelerator.compress_level=”9″&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;5. Now we need to make the cache directory, where the cache files will be stored.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;cd ~&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;mkdir /tmp/eaccelerator/&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;chmod 0777 /tmp/eaccelerator/&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;6. Yay, it’s installed! Let’s restart Apache now so that Eaccelerator will start working:&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;service httpd restart&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;cp /ea/eaccelerator-0.9.4-rc1/eaccelerator.php /usr/local/apache/htdocs/&lt;br /&gt;—————————–&lt;br /&gt;7. You *should* notice some sort of speed boost or that the server&lt;br /&gt;load/memory use has decreased. But let’s just make sure that it’s&lt;br /&gt;installed properly.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Open up your favorite FTP client and upload the eaccelerator.php and eaccelerator_password.php files to any directory on your website. I uploaded mine to my forum directory, but you can pretty much place them anywhere in the public_html directory.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Once that’s done, you can go to&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;http://www.your-domain.com/path_to_s…ccelerator.php (of course,&lt;br /&gt;replacing that with the path to the script) to see if it’s installed. If&lt;br /&gt;it’s installed properly, you’ll see a screen like this:&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Otherwise, you’ll see a screen saying that it’s not installed. You have to go back through the instructions, retry it and see if that works. Check to make sure that you specified the right directories and files in the instructions above!&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Now, we’ll probably want to add a password to prevent some mean user from clearing the cached scripts or causing other bad stuff to happen. Navigate to the eaccelerator_password file and set an administrator name and password.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;This doesn’t set the password, but it gives you a line of code to place in your php.ini file (just below the eaccelerator part). Once you do this,  you need to log in to view the eaccelerator page.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;After you’re done, you can delete or rename this file, but it’s not required.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-736912941867184083?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/736912941867184083/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/04/installing-eaccelerator.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/736912941867184083'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/736912941867184083'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/04/installing-eaccelerator.html' title='Installing eAccelerator'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-8869539656573228859</id><published>2009-04-25T04:31:00.002-07:00</published><updated>2009-04-25T04:32:14.522-07:00</updated><title type='text'>Email Error: Unrouteable address</title><content type='html'>&lt;p&gt;While sending emails from your email address and you get the error Unrouteable address with RCPT reject. That means the problem at receivers end.&lt;/p&gt; &lt;p&gt;Check the following things.&lt;/p&gt; &lt;p&gt;1. Check the domains entry is available in userdoamins.&lt;/p&gt; &lt;p&gt;2. Check the domains entry is is available in localdomain&lt;/p&gt; &lt;p&gt;3. Check the domain must having catchall address set if not then set&lt;br /&gt;vi /etc/valiases/domain.com&lt;/p&gt; &lt;p&gt;&lt;strong&gt;*: username&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;4. Also make sure that the mail folder having ownership user:mail&lt;/p&gt; &lt;p&gt;5. Restart exim services once.&lt;/p&gt; &lt;p&gt;6. Now your problem will get resolved.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-8869539656573228859?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/8869539656573228859/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/04/email-error-unrouteable-address.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/8869539656573228859'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/8869539656573228859'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/04/email-error-unrouteable-address.html' title='Email Error: Unrouteable address'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-6815983539823477482</id><published>2009-04-25T04:31:00.001-07:00</published><updated>2009-04-25T04:31:22.532-07:00</updated><title type='text'>Prevent Hot Linking to images</title><content type='html'>&lt;p&gt;To stop other sites directly linking to your images and media files and stealing your bandwidth You need to add following code in your .htaccess file&lt;/p&gt; &lt;p&gt;RewriteEngine on&lt;br /&gt;RewriteCond %{HTTP_REFERER} !^$&lt;br /&gt;RewriteCond %{HTTP_REFERER} !^http://(www.)?domain.com(/)?.*$ [NC]&lt;br /&gt;RewriteRule .*.(gif|jpg|jpeg|bmp|wmv)$ http://www.domain.com/image.jpg [R,NC]&lt;/p&gt; &lt;p&gt;Note: replace your website with domain.com&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-6815983539823477482?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/6815983539823477482/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/04/prevent-hot-linking-to-images.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/6815983539823477482'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/6815983539823477482'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/04/prevent-hot-linking-to-images.html' title='Prevent Hot Linking to images'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-2412348588147342327</id><published>2009-04-25T04:30:00.002-07:00</published><updated>2009-04-25T04:31:04.722-07:00</updated><title type='text'>Installing SSL Certificate</title><content type='html'>&lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;For installing the SSL certificate you need to have a dedicated IP Address, and make sure that your domain is registred domain name and resolving perfectly&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Step 1: You need to generate CSR (certificate signing request ) from your webhost manager. which required following information.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;———————————–&lt;br /&gt;- Host to make cert for:&lt;br /&gt;- Country(2 letter Abbreviation):&lt;br /&gt;- State:&lt;br /&gt;- City:&lt;br /&gt;- Company Name:&lt;br /&gt;- Company Division:&lt;br /&gt;- Email:&lt;br /&gt;- Password:&lt;br /&gt;———————————–&lt;br /&gt;Also please create webmaster@yourdomain.com (replace yourdomain.com with the domain that you want the SSL certificate to be setup for) and provide us with its password so we can complete the installation process.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;After CSR generation you will get the CSR and RSA key&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;step 2: With the help of RSA key you need to purchase SSL certificate from any of SSL provider such as COMODO ,instant SSL&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;step 3: Once you got the SSL cerificate then you need to provide that certificate to hosting provider so the hosting provider will install SSL cerificate from WHM &gt;&gt; SSL/TLS &gt;&gt; Install a SSL Certificate and Setup the Domain option.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-2412348588147342327?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/2412348588147342327/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/04/installing-ssl-certificate.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/2412348588147342327'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/2412348588147342327'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/04/installing-ssl-certificate.html' title='Installing SSL Certificate'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-3858804745873756801</id><published>2009-04-25T04:30:00.001-07:00</published><updated>2009-04-25T04:30:45.727-07:00</updated><title type='text'>How to get Apache,php and mysql versions on linux server</title><content type='html'>&lt;p&gt;To get the apache version on Linux Server we have to use following command.&lt;/p&gt; &lt;p&gt;# &lt;strong&gt;/usr/local/apache/bin/httpd -v&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;To get the php version on Linux Server we have to use following command.&lt;/p&gt; &lt;p&gt;#&lt;strong&gt;php -v&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;you can get the php modules install on server with command #php -m&lt;br /&gt;To get the mysql version on linux server we have to use following command.&lt;/p&gt; &lt;p&gt;#&lt;strong&gt;mysql -v&lt;/strong&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-3858804745873756801?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/3858804745873756801/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/04/how-to-get-apachephp-and-mysql-versions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/3858804745873756801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/3858804745873756801'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/04/how-to-get-apachephp-and-mysql-versions.html' title='How to get Apache,php and mysql versions on linux server'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-3238890097020791019</id><published>2009-04-25T04:29:00.003-07:00</published><updated>2009-04-25T04:29:57.536-07:00</updated><title type='text'>How to avoid spams using cpanel</title><content type='html'>&lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Spam emails is nothing but flooding  Internet with many copies of the same email messages or legitimate emails . We can also called it as junk emails . It is very frustrating when we receive spam emails in our inbox. Many spammers use various tricks to send spam emails to unknown email addresses like anybody@domain.com , main@domain.com etc . If you are have a web hosting account with cpanel as your control panel then you can easily avoid spam emails using “Default Address” option.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;By default all your unrouted emails are received in your main users inbox.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;So you can avoid it by adding the following line in your cpanel &gt;&gt; mail &gt;&gt; default address option&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;&lt;strong&gt;•  :fail: no such address here&lt;/strong&gt;&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;You can also avoid spam emails using email filtering.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;&lt;strong&gt;Cpanel &gt;&gt; Email Filtering  &gt;&gt; add filter&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;Here you need to use your own filtering techniques like filter spam emails with specific subject, email address, contents, message ID etc.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-3238890097020791019?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/3238890097020791019/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/04/how-to-avoid-spams-using-cpanel.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/3238890097020791019'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/3238890097020791019'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/04/how-to-avoid-spams-using-cpanel.html' title='How to avoid spams using cpanel'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-8358663483608625765</id><published>2009-04-25T04:29:00.001-07:00</published><updated>2009-04-25T04:29:36.305-07:00</updated><title type='text'>Semget: No space left on device -- Semaphore</title><content type='html'>&lt;p&gt;&lt;strong&gt;[Fri Oct 10 00:11:01 2008] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten — Unclean shutdown of previous Apache run?&lt;br /&gt;semget: No space left on device&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;This error occurred because there is no more space left in Semaphore Arrays for Apache.&lt;/p&gt; &lt;p&gt;You can check semaphore arrays on your server using the following command .&lt;/p&gt; &lt;p&gt;# &lt;strong&gt;ipcs -s&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;If you see too many of them, run the script as given below&lt;/p&gt; &lt;p&gt;#&lt;strong&gt;for i in `ipcs -s | awk ‘{print $2}’`; do ipcrm -s $i;done&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Now restart Apache services&lt;/p&gt; &lt;p&gt;# &lt;strong&gt;service httpd startssl&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;&lt;em&gt;Now&lt;/em&gt;&lt;/strong&gt; &lt;em&gt;&lt;strong&gt;Fixed&lt;/strong&gt;&lt;/em&gt;….&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-8358663483608625765?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/8358663483608625765/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/04/semget-no-space-left-on-device.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/8358663483608625765'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/8358663483608625765'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/04/semget-no-space-left-on-device.html' title='Semget: No space left on device -- Semaphore'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-4062058874164564633</id><published>2009-04-25T04:28:00.000-07:00</published><updated>2009-04-25T04:29:10.707-07:00</updated><title type='text'>View webalizer stats without login to cpanel</title><content type='html'>&lt;p&gt;Is it possible to view webalizer stats without login to cpanel?&lt;/p&gt; &lt;p&gt;Yes. Do the following steps.&lt;/p&gt; &lt;p&gt;cd /home/username/www&lt;br /&gt;ln -s ../tmp/webalizer stats&lt;br /&gt;chown username.username stats&lt;br /&gt;cd ../tmp&lt;br /&gt;chmod 755 ./&lt;br /&gt;chmod 755 ./webalizer&lt;/p&gt; &lt;p&gt;will allow domain.com/stats/ for viewing stats without logging in to cpanel&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-4062058874164564633?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/4062058874164564633/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/04/view-webalizer-stats-without-login-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/4062058874164564633'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/4062058874164564633'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/04/view-webalizer-stats-without-login-to.html' title='View webalizer stats without login to cpanel'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-6927428699597037815</id><published>2009-04-25T04:27:00.003-07:00</published><updated>2009-04-25T04:27:59.044-07:00</updated><title type='text'>Addon domain, Subdomain and Park domain</title><content type='html'>&lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;&lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;&lt;strong&gt;What is Subdomain&lt;/strong&gt;&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;In the Domain Name System (DNS) hierarchy, a subdomain is a domain that is part of a larger domain name. Subdomains are separated by dots “.” and we can access them as sudomain.maindomain.com or domain.com/subdomain and are read from left to right.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Popular real-life examples of subdomains include news.google.com, mail.yahoo.com, in which news, mail and en are subdomains, respectively.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Eg. blog.domain.com&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;&lt;strong&gt;What is Parked domain&lt;/strong&gt;&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Domain pointers allow you to point or park additional domain names to your existing hosting account. This will allow users to also reach your website when entering the parked or pointed domain into their browsers.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;For example: if you park domain102.com at your hosting account for domain101.com, users visiting domain2.com will see the contents of domain1.com web page.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;In simple way you can access one website with two different names.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;&lt;strong&gt;What is Addon domain&lt;/strong&gt;&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Addon domains allow you to host more than one unique website (such that have different content) on your hosting account.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Example: domain101.com is the domain name you have signed up for. Then you decide to host another unique website, reached at domain102.com on the same account. That is when you need an addon domain.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-6927428699597037815?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/6927428699597037815/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/04/addon-domain-subdomain-and-park-domain.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/6927428699597037815'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/6927428699597037815'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/04/addon-domain-subdomain-and-park-domain.html' title='Addon domain, Subdomain and Park domain'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-847025741285257392</id><published>2009-04-25T04:27:00.001-07:00</published><updated>2009-04-25T04:27:19.229-07:00</updated><title type='text'>iPhone X-APOP authentication support and secure connection failed</title><content type='html'>&lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;When we add a new POP email account to iPhone, we got an error which said:&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;&lt;strong&gt;Secure Connection Failed - the certificate for user@domain.com may be invalid&lt;/strong&gt;&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Then, it asked if he wanted to Cancel or Continue.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Whenever we clicked Continue, the verifying POP account information just continued processing. It was like the iPhone freezed or hanged.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;please perform the following steps to add a new POP email account&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;1. Click Settings&lt;br /&gt;2. Click General&lt;br /&gt;3. Click Auto-Lock&lt;br /&gt;4. Click Never (don’t let it go to sleep)&lt;br /&gt;5. Go back to Settings&lt;br /&gt;6. Click Mail&lt;br /&gt;7. Click Add Account&lt;br /&gt;8. Click Other &gt; POP and fill in the required information&lt;br /&gt;9. Click Save and wait (Verifying POP account information)&lt;br /&gt;10. Click Continue when Secure Connection Failed is prompted&lt;br /&gt;11. Click Continue/Yes if you get either of these message:&lt;br /&gt;* SSL connection failed, would you like to try without it?&lt;br /&gt;* Secure Connection Failed…user@domain.com…invalid&lt;br /&gt;12. It should complete and you’ll see your account added but to complete…&lt;br /&gt;13. Click the new email account&lt;br /&gt;14. Scroll down and Click Advanced&lt;br /&gt;15. Turn off: Use SSL (both incoming and outgoing)&lt;br /&gt;16. Make sure Authentication is Password&lt;br /&gt;17. Set Server Port for Outgoing Settings&lt;br /&gt;18. And you’re done!&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Your outgoing port may be different from what I have mentioned so check with your Technical Support or Website Hosting administrator.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;In addition to iPhone email encounters, also got this message when we checking email :&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;&lt;strong&gt;Cannot Get Mail&lt;br /&gt;The POP Server “mail.domain.com” does not support X-APOP authentication. Please check your account settings and try again.&lt;/strong&gt;&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;If you get this message, you’ll need to set the Authentication to Password. Please check your settings, it was set to MDA-5albeit only having MD5 Challenge-Response and HTTP MD5 Digest in the Authentication Settings. Anyway, the Authentication settings is found in the Advanced area of your email accounts. This may only happen to your default email account if you’re on POP.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;So if you experience the iPhone mail X-APOP authentication support or secure connection failed, &lt;strong&gt;I hope this helps you too.&lt;/strong&gt;&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;p.s: After you’re done, you can set your Auto-Lock back to your own preference.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-847025741285257392?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/847025741285257392/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/04/iphone-x-apop-authentication-support.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/847025741285257392'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/847025741285257392'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/04/iphone-x-apop-authentication-support.html' title='iPhone X-APOP authentication support and secure connection failed'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-2402995568481912154</id><published>2009-04-25T04:26:00.001-07:00</published><updated>2009-04-25T04:26:55.754-07:00</updated><title type='text'>Fantastico Installation</title><content type='html'>&lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;SSH to your server(s) and enter following commands:&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;cd /usr/local/cpanel/whostmgr/docroot/cgi&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;wget -N http://files.betaservant.com/files/free/fantastico_whm_admin.tgz&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;tar -xzpf fantastico_whm_admin.tgz&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;rm -rf fantastico_whm_admin.tgz&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;NOTE: if you have problems contacting this server, please try this alternate location:&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;wget -N http://netenberg.com/files/free/fantastico_whm_admin.tgz&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Now go to WHM, login as root and follow the link&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;WHM -&gt; Add-Ons (Plugins on v11.x or higher) -&gt; Fantastico De Luxe WHM Admin (scroll down the left menu).&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Upon loading, Fantastico De Luxe WHM Admin will auto-update your existing installation (if existing). All admin files (masterfiles, tarballs, settings etc) will be moved to or created at /var/netenberg.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;—&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;After the installation is complete, click on “Settings” and go through the settings. While some settings are not important, some other (marked below with an *) are essential for a proper functioning of Fantastico installations.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Language: Select the language for the admin backend AND default language for users without a language selected.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Email notifications: Enter an email address in order to receive notifications when users perform installations using Fantastico.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Master files settings (*): If you are not an advanced user who modifies the master files, leave this to “Remove”. Change this only if you know what you are doing&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;PHPsuexec (*): VERY ESSENTIAL!!! Changing this value will not install or de-install phpsuexec for you. It will only tell Fantastico that you have phpsuexec installed or not installed on your server. Change to “installed” if you perform installations which produce an “Internal Server Error”. Notice: Changes will not apply to existing installations! You have to re-install in order to have working installations.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Path to netPBM: Enter the full path to the netPBM binaries in order to enable Gallery installations. As long as this field has no value, your users will not be able to install Gallery.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Select Fantastico licensing and files server: If the Fantastico pages take long to load switch to the server that works best for you. Fantastico will auto-switch if connections time out.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Update preference: Select latest version (sometimes experimental) or stable version (best working).&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Remote MySQL server&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Open the file&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;/usr/local/cpanel/3rdparty/fantastico/includes/mysqlconfig.php&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;and follow the instructions.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Also read these:&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;http://netenberg.com/forum/viewtopic.php?t=866&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;http://netenberg.com/forum/viewtopic.php?p=11482#11482&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;If your users don’t see a Fantastico link in their CPanel: Go to WHM and edit the “default” Features List.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Activate Fantastico.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-2402995568481912154?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/2402995568481912154/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/04/fantastico-installation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/2402995568481912154'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/2402995568481912154'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/04/fantastico-installation.html' title='Fantastico Installation'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-5043739192517707545</id><published>2009-04-25T04:24:00.000-07:00</published><updated>2009-04-25T04:26:05.237-07:00</updated><title type='text'>HowTo: install cPanel on a Linux O/S server</title><content type='html'>&lt;p&gt;Installing cPanel on a linux box is as simple as:&lt;/p&gt; &lt;p&gt;cd /home&lt;/p&gt; &lt;p&gt;&lt;em&gt;&lt;strong&gt;wget layer1.cpanel.net/latest&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;&lt;em&gt;sh latest&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;After you install cPanel you may want to visit &lt;a href="http://www.webhostgear.com"&gt;http://www.webhostgear.com&lt;/a&gt; and search for the cPanel newbee user guide&lt;/p&gt; &lt;p&gt;Have Fun!&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-5043739192517707545?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/5043739192517707545/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/04/howto-install-cpanel-on-linux-os-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/5043739192517707545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/5043739192517707545'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/04/howto-install-cpanel-on-linux-os-server.html' title='HowTo: install cPanel on a Linux O/S server'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-6448681227468870195</id><published>2009-04-25T04:23:00.000-07:00</published><updated>2009-04-25T04:24:29.448-07:00</updated><title type='text'>Directory Structure of Cpanel</title><content type='html'>&lt;p&gt;&lt;strong&gt;Apache&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;/usr/local/apache&lt;br /&gt;+ bin- apache binaries are stored here - httpd, apachectl, apxs&lt;br /&gt;+ conf - configuration files - httpd.conf&lt;br /&gt;+ cgi-bin&lt;br /&gt;+ domlogs - domain log files are stored here&lt;br /&gt;+ htdocs&lt;br /&gt;+ include - header files&lt;br /&gt;+ libexec - shared object (.so) files are stored here - libphp4.so,mod_rewrite.so&lt;br /&gt;+ logs - apache logs - access_log, error_log, suexec_log&lt;br /&gt;+ man - apache manual pages&lt;br /&gt;+ proxy -&lt;br /&gt;+ icons -&lt;/p&gt; &lt;p&gt;Init Script :/etc/rc.d/init.d/httpd - apache start script&lt;br /&gt;Cpanel script to restart apache - /scripts/restartsrv_httpd&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Exim&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Conf : /etc/exim.conf - exim main configuration file&lt;br /&gt;/etc/localdomains - list of domains allowed to relay mail&lt;br /&gt;Log : /var/log/exim_mainlog - incoming/outgoing mails are logged here&lt;br /&gt;/var/log/exim_rejectlog - exim rejected mails are reported here&lt;br /&gt;/var/log/exim_paniclog - exim errors are logged here&lt;br /&gt;Mail queue: /var/spool/exim/input&lt;br /&gt;Cpanel script to restart exim - /scripts/restartsrv_exim&lt;br /&gt;Email forwarders and catchall address file - /etc/valiases/domainname.com&lt;br /&gt;Email filters file - /etc/vfilters/domainname.com&lt;br /&gt;POP user authentication file - /home/username/etc/domainname/passwd&lt;br /&gt;catchall inbox - /home/username/mail/inbox&lt;br /&gt;POP user inbox - /home/username/mail/domainname/popusername/inbox&lt;br /&gt;POP user spambox - /home/username/mail/domainname/popusername/spam&lt;br /&gt;Program : /usr/sbin/exim (suid - -rwsr-xr-x 1 root root )&lt;br /&gt;Init Script: /etc/rc.d/init.d/exim&lt;/p&gt; &lt;p&gt;&lt;strong&gt;ProFTPD&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Program :/usr/sbin/proftpd&lt;br /&gt;Init Script :/etc/rc.d/init.d/proftpd&lt;br /&gt;Conf: /etc/proftpd.conf&lt;br /&gt;Log: /var/log/messages, /var/log/xferlog&lt;br /&gt;FTP accounts file - /etc/proftpd/username - all ftp accounts for the domain are listed here&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Pure-FTPD&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Program : /usr/sbin/pure-ftpd&lt;br /&gt;Init Script :/etc/rc.d/init.d/pure-ftpd&lt;br /&gt;Conf: /etc/pure-ftpd.conf&lt;br /&gt;Anonymous ftp document root - /etc/pure-ftpd/ip-address&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Frontpage Extensions&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Program - (Install): /usr/local/frontpage/version5.0/bin/owsadm.exe&lt;br /&gt;Uninstall and then install for re-installations&lt;br /&gt;FP files are found as _vti-bin, _vti-pvt, _vti-cnf, vti-log inside the public_html&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Mysql&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Program : /usr/bin/mysql&lt;br /&gt;Init Script : /etc/rc.d/init.d/mysql&lt;br /&gt;Conf : /etc/my.cnf, /root/.my.cnf&lt;br /&gt;Data directory - /var/lib/mysql - Where all databases are stored.&lt;br /&gt;Database naming convention - username_dbname (eg: john_sales)&lt;br /&gt;Permissions on databases - drwx 2 mysql mysql&lt;br /&gt;Socket file - /var/lib/mysql/mysql.sock, /tmp/ mysql.sock&lt;/p&gt; &lt;p&gt;&lt;strong&gt;SSHD&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Program :/usr/local/sbin/sshd&lt;br /&gt;Init Script :/etc/rc.d/init.d/sshd&lt;br /&gt;/etc/ssh/sshd_config&lt;br /&gt;Log: /var/log/messages&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Perl&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Program :/usr/bin/perl&lt;br /&gt;Directory :/usr/lib/perl5/5.6.1/&lt;/p&gt; &lt;p&gt;&lt;strong&gt;PHP&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Program :/usr/local/bin/php, /usr/bin/php&lt;br /&gt;ini file: /usr/local/lib/php.ini - apache must be restarted after any change to this file&lt;br /&gt;php can be recomplied using /scripts/easyapache&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Named(BIND)&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Program: /usr/sbin/named&lt;br /&gt;Init Script: /etc/rc.d/init.d/named&lt;br /&gt;/etc/named.conf&lt;br /&gt;db records:/var/named/&lt;br /&gt;/var/log/messages&lt;/p&gt; &lt;p&gt;&lt;strong&gt;cPanel&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;/usr/local/cpanel&lt;br /&gt;+ 3rdparty/ - tools like fantastico, mailman files are located here&lt;br /&gt;+ addons/ - AdvancedGuestBook, phpBB etc&lt;br /&gt;+ base/ - phpmyadmin, squirrelmail, skins, webmail etc&lt;br /&gt;+ bin/ - cpanel binaries&lt;br /&gt;+ cgi-sys/ - cgi files like cgiemail, formmail.cgi, formmail.pl etc&lt;br /&gt;+ logs/ - cpanel access log and error log&lt;br /&gt;+ whostmgr/ - whm related files&lt;br /&gt;&lt;strong&gt;WHM&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;/var/cpanel - whm files&lt;br /&gt;+ bandwidth/ - rrd files of domains&lt;br /&gt;+ username.accts - reseller accounts are listed in this files&lt;br /&gt;+ packages - hosting packages are listed here&lt;br /&gt;+ root.accts - root owned domains are listed here&lt;br /&gt;+ suspended - suspended accounts are listed here&lt;br /&gt;+ users/ - cpanel user file - theme, bwlimit, addon, parked, sub-domains all are listed in this files&lt;br /&gt;+ zonetemplates/ - dns zone template files are taken from here&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Important cPanel/WHM files&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;/etc/httpd/conf/httpd.conf - apache configuration file&lt;br /&gt;/etc/exim.conf - mail server configuration file&lt;br /&gt;/etc/named.conf - name server (named) configuration file&lt;br /&gt;/etc/proftpd.conf - proftpd server configuration file&lt;br /&gt;/etc/pure-ftpd.conf - pure-ftpd server configuration file&lt;br /&gt;/etc/valiases/domainname - catchall and forwarders are set here&lt;br /&gt;/etc/vfilters/domainname - email filters are set here&lt;br /&gt;/etc/userdomains - all domains are listed here - addons, parked,subdomains along with their usernames&lt;br /&gt;/etc/localdomains - exim related file - all domains should be listed here to be able to send mails&lt;br /&gt;/var/cpanel/users/username - cpanel user file&lt;br /&gt;/var/cpanel/cpanel.config - cpanel configuration file ( Tweak Settings )*&lt;br /&gt;/etc/cpbackup-userskip.conf -&lt;br /&gt;/etc/sysconfig/network - Networking Setup*&lt;br /&gt;/etc/hosts -&lt;br /&gt;/var/spool/exim -&lt;br /&gt;/var/spool/cron -&lt;br /&gt;/etc/resolv.conf - Networking Setup–&gt; Resolver Configuration&lt;br /&gt;/etc/nameserverips - Networking Setup–&gt; Nameserver IPs ( FOr resellers togive their nameservers )&lt;br /&gt;/var/cpanel/resellers - For addpkg, etc permissions for resellers.&lt;br /&gt;/etc/chkserv.d - Main &gt;&gt; Service Configuration &gt;&gt; Service Manager *&lt;br /&gt;/var/run/chkservd - Main &gt;&gt; Server Status &gt;&gt; Service Status *&lt;br /&gt;/var/log/dcpumon - top log process&lt;br /&gt;/root/cpanel3-skel - skel directory. Eg: public_ftp, public_html. (AccountFunctions–&gt;Skeleton Directory )*&lt;br /&gt;/etc/wwwacct.conf - account creation defaults file in WHM (Basic cPanel/WHMSetup)*&lt;br /&gt;/etc/cpupdate.conf - Update Config *&lt;br /&gt;/etc/cpbackup.conf - Configure Backup*&lt;br /&gt;/etc/clamav.conf - clamav (antivirus configuration file )&lt;br /&gt;/etc/my.cnf - mysql configuration file&lt;br /&gt;/usr/local/Zend/etc/php.ini OR /usr/local/lib/php.ini - php configuration file&lt;br /&gt;/etc/ips - ip addresses on the server (except the shared ip) (IP Functions–&gt;Show IP Address Usage )*&lt;br /&gt;/etc/ipaddrpool - ip addresses which are free&lt;br /&gt;/etc/ips.dnsmaster - name server ips&lt;br /&gt;/var/cpanel/Counters - To get the counter of each users.&lt;br /&gt;/var/cpanel/bandwidth - To get bandwith usage of domains&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-6448681227468870195?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/6448681227468870195/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/04/directory-structure-of-cpanel.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/6448681227468870195'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/6448681227468870195'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/04/directory-structure-of-cpanel.html' title='Directory Structure of Cpanel'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-134906335043046854</id><published>2009-04-25T04:19:00.000-07:00</published><updated>2009-04-25T04:22:40.866-07:00</updated><title type='text'>20 ways to Secure your Apache Configuration</title><content type='html'>&lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;&lt;strong&gt;&lt;em&gt;Here are 20 things you can do to make your apache configuration more secure.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Disclaimer: The thing about security is that there are no guarantees or absolutes. These suggestions should make your server a bit tighter, but don't think your server is necessarily secure after following these suggestions.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Additionally some of these suggestions may decrease performance, or cause problems due to your environment. It is up to you to determine if any of the changes I suggest are not compatible with your requirements. In other words proceed at your own risk.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;&lt;strong&gt;First, make sure you've installed latest security patches&lt;/strong&gt;&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;There is no sense in putting locks on the windows, if your door is wide open. As such, if you're not patched up there isn't really much point in continuing any longer on this list. Go ahead and bookmark this page so you can come back later, and patch your server.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;&lt;strong&gt;Hide the Apache Version number, and other sensitive information.&lt;/strong&gt;&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;By default many Apache installations tell the world what version of Apache you're running, what operating system/version you're running, and even what Apache Modules are installed on the server. Attackers can use this information to their advantage when performing an attack. It also sends the message that you have left most defaults alone.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;There are two directives that you need to add, or edit in your httpd.conf file:&lt;br /&gt;ServerSignature Off&lt;br /&gt;ServerTokens Prod&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;The ServerSignature appears on the bottom of pages generated by apache such as 404 pages, directory listings, etc.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;The ServerTokens directive is used to determine what Apache will put in the Server HTTP response header. By setting it to Prod it sets the HTTP response header as follows:&lt;br /&gt;Server: Apache&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;If you're super paranoid you could change this to something other than "Apache" by editing the source code, or by using mod_security (see below).&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;&lt;strong&gt;Make sure apache is running under its own user account and group&lt;/strong&gt;&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Several apache installations have it run as the user nobody. So suppose both Apache, and your mail server were running as nobody an attack through Apache may allow the mail server to also be compromised, and vise versa.&lt;br /&gt;User apache&lt;br /&gt;Group apache&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;&lt;strong&gt;Ensure that files outside the web root are not served&lt;/strong&gt;&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;We don't want apache to be able to access any files out side of its web root. So assuming all your web sites are placed under one directory (we will call this /web), you would set it up as follows:&lt;br /&gt;&lt;directory&gt;&lt;br /&gt;Order Deny,Allow&lt;br /&gt;Deny from all&lt;br /&gt;Options None&lt;br /&gt;AllowOverride None&lt;br /&gt;&lt;/directory&gt;&lt;br /&gt;&lt;directory&gt;&lt;br /&gt;Order Allow,Deny&lt;br /&gt;Allow from all&lt;br /&gt;&lt;/directory&gt;&lt;br /&gt;"Note that because we set Options None and AllowOverride None this will turn off all options and overrides for the server. You now have to add them explicitly for each directory that requires an Option or Override."&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;&lt;strong&gt;Turn off directory browsing&lt;/strong&gt;&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;You can do this with an Options directive inside a Directory tag. Set Options to either None or -Indexes&lt;br /&gt;Options -Indexes&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;&lt;strong&gt;Turn off server side includes&lt;/strong&gt;&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;This is also done with the Options directive inside a Directory tag. Set Options to either None or -Includes&lt;br /&gt;Options -Includes&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;&lt;strong&gt;Turn off CGI execution&lt;/strong&gt;&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;If you're not using CGI turn it off with the Options directive inside a Directory tag. Set Options to either None or -ExecCGI&lt;br /&gt;Options -ExecCGI&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;&lt;strong&gt;Don't allow apache to follow symbolic links&lt;/strong&gt;&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;This can again can be done using the Options directive inside a Directory tag. Set Options to either None or -FollowSymLinks&lt;br /&gt;Options -FollowSymLinks&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;&lt;strong&gt;Turning off multiple Options&lt;/strong&gt;&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;If you want to turn off all Options simply use:&lt;br /&gt;Options None&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;If you only want to turn off some separate each option with a space in your Options directive:&lt;br /&gt;Options -ExecCGI -FollowSymLinks -Indexes&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;&lt;strong&gt;Turn off support for .htaccess files&lt;/strong&gt;&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;This is done in a Directory tag but with the AllowOverride directive. Set it to None.&lt;br /&gt;AllowOverride None&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;If you require Overrides ensure that they cannot be downloaded, and/or change the name to something other than .htaccess. For example we could change it to .httpdoverride, and block all files that start with .ht from being downloaded as follows:&lt;br /&gt;AccessFileName .httpdoverride&lt;br /&gt;&lt;files&gt;&lt;br /&gt;Order allow,deny&lt;br /&gt;Deny from all&lt;br /&gt;Satisfy All&lt;br /&gt;&lt;/files&gt;&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;&lt;strong&gt;Run mod_security&lt;/strong&gt;&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;mod_security is a super handy Apache module written by Ivan Ristic, the author of Apache Security from O'Reilly press.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;You can do the following with mod_security:&lt;br /&gt;Simple filtering&lt;br /&gt;Regular Expression based filtering&lt;br /&gt;URL Encoding Validation&lt;br /&gt;Unicode Encoding Validation&lt;br /&gt;Auditing&lt;br /&gt;Null byte attack prevention&lt;br /&gt;Upload memory limits&lt;br /&gt;Server identity masking&lt;br /&gt;Built in Chroot support&lt;br /&gt;And more&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;&lt;strong&gt;Disable any unnecessary modules&lt;/strong&gt;&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Apache typically comes with several modules installed. Go through the apache module documentation and learn what each module you have enabled actually does. Many times you will find that you don't need to have the said module enabled.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Look for lines in your httpd.conf that contain LoadModule. To disable the module you can typically just add a # at the beginning of the line. To search for modules run:&lt;br /&gt;grep LoadModule httpd.conf&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Here are some modules that are typically enabled but often not needed: mod_imap, mod_include, mod_info, mod_userdir, mod_status, mod_cgi, mod_autoindex.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;&lt;strong&gt;Make sure only root has read access to apache's config and binaries&lt;/strong&gt;&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;This can be done assuming your apache installation is located at /usr/local/apache as follows:&lt;br /&gt;chown -R root:root /usr/local/apache&lt;br /&gt;chmod -R o-rwx /usr/local/apache&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;&lt;strong&gt;Lower the Timeout value&lt;/strong&gt;&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;By default the Timeout directive is set to 300 seconds. You can decrease help mitigate the potential effects of a denial of service attack.&lt;br /&gt;Timeout 45&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;&lt;strong&gt;Limiting large requests&lt;/strong&gt;&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Apache has several directives that allow you to limit the size of a request, this can also be useful for mitigating the effects of a denial of service attack.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;A good place to start is the LimitRequestBody directive. This directive is set to unlimited by default. If you are allowing file uploads of no larger than 1MB, you could set this setting to something like:&lt;br /&gt;LimitRequestBody 1048576&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;If you're not allowing file uploads you can set it even smaller.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Some other directives to look at are LimitRequestFields, LimitRequestFieldSize and LimitRequestLine. These directives are set to a reasonable defaults for most servers, but you may want to tweak them to best fit your needs. See the documentation for more info.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;&lt;strong&gt;Limiting the size of an XML Body&lt;/strong&gt;&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;If you're running mod_dav (typically used with subversion) then you may want to limit the max size of an XML request body. The LimitXMLRequestBody directive is only available on Apache 2, and its default value is 1 million bytes (approx 1mb). Many tutorials will have you set this value to 0 which means files of any size may be uploaded, which may be necessary if you're using WebDAV to upload large files, but if you're simply using it for source control, you can probably get away with setting an upper bound, such as 10mb:&lt;br /&gt;LimitXMLRequestBody 10485760&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;&lt;strong&gt;Limiting Concurrency&lt;/strong&gt;&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Apache has several configuration settings that can be used to adjust handling of concurrent requests. The MaxClients is the maximum number of child processes that will be created to serve requests. This may be set too high if your server doesn't have enough memory to handle a large number of concurrent requests.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Other directives such as MaxSpareServers, MaxRequestsPerChild, and on Apache2 ThreadsPerChild, ServerLimit, and MaxSpareThreads are important to adjust to match your operating system, and hardware.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;&lt;strong&gt;Restricting Access by IP&lt;/strong&gt;&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;If you have a resource that should only by accessed by a certain network, or IP address you can enforce this in your apache configuration. For instance if you want to restrict access to your intranet to allow only the 176.16 network:&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Order Deny,Allow&lt;br /&gt;Deny from all&lt;br /&gt;Allow from 176.16.0.0/16&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;Or by IP:&lt;br /&gt;Order Deny,Allow&lt;br /&gt;Deny from all&lt;br /&gt;Allow from 127.0.0.1&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;&lt;strong&gt;Adjusting KeepAlive settings&lt;/strong&gt;&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;According to the Apache documentation using HTTP Keep Alive's can improve client performance by as much as 50%, so be careful before changing these settings, you will be trading performance for a slight denial of service mitigation.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;KeepAlive's are turned on by default and you should leave them on, but you may consider changing the MaxKeepAliveRequests which defaults to 100, and the KeepAliveTimeout which defaults to 15. Analyze your log files to determine the appropriate values.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;&lt;strong&gt;Run Apache in a Chroot environment&lt;/strong&gt;&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;chroot allows you to run a program in its own isolated jail. This prevents a break in on one service from being able to effect anything else on the server.&lt;/p&gt; &lt;p style="text-align:justify;" mce_style="text-align:justify;"&gt;It can be fairly tricky to set this up using chroot due to library dependencies. I mentioned above that the mod_security module has built in chroot support. It makes the process as simple as adding a mod_security directive to your configuration:&lt;br /&gt;SecChrootDir /chroot/apache&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-134906335043046854?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/134906335043046854/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/04/20-ways-to-secure-your-apache.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/134906335043046854'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/134906335043046854'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/04/20-ways-to-secure-your-apache.html' title='20 ways to Secure your Apache Configuration'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-7986321240613601602</id><published>2009-01-28T21:43:00.000-08:00</published><updated>2009-01-28T21:47:51.474-08:00</updated><title type='text'>How to enable both 'register globals' and ' magic_quotes_gpc' using your .htaccess or php.ini</title><content type='html'>&lt;p&gt;A lot of hosts these days have php’s Register_Globals set to off by default. This is a server wide setting.  You can change this for your individual sites by adding a line to the .htaccess file or php.ini file in your root home folder:&lt;/p&gt; &lt;p&gt;&lt;strong&gt;In&lt;/strong&gt; &lt;strong&gt;htaccess&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;php_value register_globals on&lt;/p&gt; &lt;p&gt;php_value magic_quotes_gpc off&lt;/p&gt; &lt;p&gt;&lt;strong&gt;In php.ini&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;register_globals = On&lt;/p&gt; &lt;p&gt;magic_quotes_gpc = Off&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-7986321240613601602?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/7986321240613601602/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/01/how-to-enable-both-register-globals-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/7986321240613601602'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/7986321240613601602'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/01/how-to-enable-both-register-globals-and.html' title='How to enable both &apos;register globals&apos; and &apos; magic_quotes_gpc&apos; using your .htaccess or php.ini'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-2031818357456726501</id><published>2009-01-27T23:41:00.001-08:00</published><updated>2009-01-27T23:41:50.758-08:00</updated><title type='text'>Apache startup Fail</title><content type='html'>&lt;p&gt;You may sometimes encounter the following problem while starting apache server&lt;/p&gt; &lt;p&gt;====&lt;/p&gt; &lt;p&gt;[root@epsilon root]# /etc/init.d/httpd start&lt;br /&gt;Starting httpd: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:&lt;strong&gt;80&lt;/strong&gt;&lt;br /&gt;no listening sockets available, shutting down&lt;br /&gt;Unable to open logs&lt;br /&gt;[FAILED]&lt;br /&gt;====&lt;/p&gt; &lt;p&gt;To fix this run the following commands&lt;/p&gt; &lt;p&gt;#&lt;strong&gt;fuser -k -n tcp 80&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;That's all&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-2031818357456726501?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/2031818357456726501/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/01/apache-startup-fail.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/2031818357456726501'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/2031818357456726501'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/01/apache-startup-fail.html' title='Apache startup Fail'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-414397543359693756</id><published>2009-01-27T22:33:00.000-08:00</published><updated>2009-01-27T22:34:38.817-08:00</updated><title type='text'>MySQL Commands</title><content type='html'>Create a database on the sql server.&lt;br /&gt;&lt;br /&gt;mysql&gt; create database [databasename];&lt;br /&gt;&lt;br /&gt;List all databases on the sql server.&lt;br /&gt;&lt;br /&gt;mysql&gt; show databases;&lt;br /&gt;&lt;br /&gt;Switch to a database.&lt;br /&gt;&lt;br /&gt;mysql&gt; use [db name];&lt;br /&gt;&lt;br /&gt;To see all the tables in the db.&lt;br /&gt;&lt;br /&gt;mysql&gt; show tables;&lt;br /&gt;&lt;br /&gt;To see database's field formats.&lt;br /&gt;&lt;br /&gt;mysql&gt; describe [table name];&lt;br /&gt;&lt;br /&gt;To delete a db.&lt;br /&gt;&lt;br /&gt;mysql&gt; drop database [database name];&lt;br /&gt;&lt;br /&gt;To delete a table.&lt;br /&gt;&lt;br /&gt;mysql&gt; drop table [table name];&lt;br /&gt;&lt;br /&gt;Show all data in a table.&lt;br /&gt;&lt;br /&gt;mysql&gt; SELECT * FROM [table name];&lt;br /&gt;&lt;br /&gt;Returns the columns and column information pertaining to the designated table.&lt;br /&gt;&lt;br /&gt;mysql&gt; show columns from [table name];&lt;br /&gt;&lt;br /&gt;Show certain selected rows with the value "whatever".&lt;br /&gt;&lt;br /&gt;mysql&gt; SELECT * FROM [table name] WHERE [field name] = "whatever";&lt;br /&gt;&lt;br /&gt;Show all records containing the name "Bob" AND the phone number '3444444'.&lt;br /&gt;&lt;br /&gt;mysql&gt; SELECT * FROM [table name] WHERE name = "Bob" AND phone_number = '3444444';&lt;br /&gt;&lt;br /&gt;Show all records not containing the name "Bob" AND the phone number '3444444' order by the phone_number field.&lt;br /&gt;&lt;br /&gt;mysql&gt; SELECT * FROM [table name] WHERE name != "Bob" AND phone_number = '3444444' order by phone_number;&lt;br /&gt;&lt;br /&gt;Show all records starting with the letters 'bob' AND the phone number '3444444'.&lt;br /&gt;&lt;br /&gt;mysql&gt; SELECT * FROM [table name] WHERE name like "Bob%" AND phone_number = '3444444';&lt;br /&gt;&lt;br /&gt;Show all records starting with the letters 'bob' AND the phone number '3444444' limit to records 1 through 5.&lt;br /&gt;&lt;br /&gt;mysql&gt; SELECT * FROM [table name] WHERE name like "Bob%" AND phone_number = '3444444' limit 1,5;&lt;br /&gt;&lt;br /&gt;Use a regular expression to find records. Use "REGEXP BINARY" to force case-sensitivity. This finds any record beginning with a.&lt;br /&gt;&lt;br /&gt;mysql&gt; SELECT * FROM [table name] WHERE rec RLIKE "^a";&lt;br /&gt;&lt;br /&gt;Show unique records.&lt;br /&gt;&lt;br /&gt;mysql&gt; SELECT DISTINCT [column name] FROM [table name];&lt;br /&gt;&lt;br /&gt;Show selected records sorted in an ascending (asc) or descending (desc).&lt;br /&gt;&lt;br /&gt;mysql&gt; SELECT [col1],[col2] FROM [table name] ORDER BY [col2] DESC;&lt;br /&gt;&lt;br /&gt;Return number of rows.&lt;br /&gt;&lt;br /&gt;mysql&gt; SELECT COUNT(*) FROM [table name];&lt;br /&gt;&lt;br /&gt;Sum column.&lt;br /&gt;&lt;br /&gt;mysql&gt; SELECT SUM(*) FROM [table name];&lt;br /&gt;&lt;br /&gt;Join tables on common columns.&lt;br /&gt;&lt;br /&gt;mysql&gt; select lookup.illustrationid, lookup.personid,person.birthday from lookup left join person on lookup.personid=person.personid=statement to join birthday in person table with primary illustration id;&lt;br /&gt;&lt;br /&gt;Creating a new user. Login as root. Switch to the MySQL db. Make the user. Update privs.&lt;br /&gt;&lt;br /&gt;# mysql -u root -p&lt;br /&gt;mysql&gt; use mysql;&lt;br /&gt;mysql&gt; INSERT INTO user (Host,User,Password) VALUES('%','username',PASSWORD('password'));&lt;br /&gt;mysql&gt; flush privileges;&lt;br /&gt;&lt;br /&gt;Change a users password from unix shell.&lt;br /&gt;&lt;br /&gt;# [mysql dir]/bin/mysqladmin -u username -h hostname.blah.org -p password 'new-password'&lt;br /&gt;&lt;br /&gt;Change a users password from MySQL prompt. Login as root. Set the password. Update privs.&lt;br /&gt;&lt;br /&gt;# mysql -u root -p&lt;br /&gt;mysql&gt; SET PASSWORD FOR 'user'@'hostname' = PASSWORD('passwordhere');&lt;br /&gt;mysql&gt; flush privileges;&lt;br /&gt;&lt;br /&gt;Recover a MySQL root password. Stop the MySQL server process. Start again with no grant tables. Login to MySQL as root. Setnew password. Exit MySQL and restart MySQL server.&lt;br /&gt;&lt;br /&gt;# /etc/init.d/mysql stop&lt;br /&gt;# mysqld_safe --skip-grant-tables &amp;amp;&lt;br /&gt;# mysql -u root&lt;br /&gt;mysql&gt; use mysql;&lt;br /&gt;mysql&gt; update user set password=PASSWORD("newrootpassword") where User='root';&lt;br /&gt;mysql&gt; flush privileges;&lt;br /&gt;mysql&gt; quit&lt;br /&gt;# /etc/init.d/mysql stop&lt;br /&gt;# /etc/init.d/mysql start&lt;br /&gt;&lt;br /&gt;Set a root password if there is on root password.&lt;br /&gt;&lt;br /&gt;# mysqladmin -u root password newpassword&lt;br /&gt;&lt;br /&gt;Update a root password.&lt;br /&gt;&lt;br /&gt;# mysqladmin -u root -p oldpassword newpassword&lt;br /&gt;&lt;br /&gt;Allow the user "bob" to connect to the server from localhost using the password "passwd". Login as root. Switch to the MySQL db. Give privs. Update privs.&lt;br /&gt;&lt;br /&gt;# mysql -u root -p&lt;br /&gt;mysql&gt; use mysql;&lt;br /&gt;mysql&gt; grant usage on *.* to bob@localhost identified by 'passwd';&lt;br /&gt;mysql&gt; flush privileges;&lt;br /&gt;&lt;br /&gt;Give user privilages for a db. Login as root. Switch to the MySQL db. Grant privs. Update privs.&lt;br /&gt;&lt;br /&gt;# mysql -u root -p&lt;br /&gt;mysql&gt; use mysql;&lt;br /&gt;mysql&gt; INSERT INTO user (Host,Db,User,Select_priv,Insert_priv,Update_priv,Delete_priv,Create_priv,Drop_priv) VALUES ('%','databasename','username','Y','Y','Y','Y','Y','N');&lt;br /&gt;mysql&gt; flush privileges;&lt;br /&gt;&lt;br /&gt;or&lt;br /&gt;&lt;br /&gt;mysql&gt; grant all privileges on databasename.* to username@localhost;&lt;br /&gt;mysql&gt; flush privileges;&lt;br /&gt;&lt;br /&gt;To update info already in a table.&lt;br /&gt;&lt;br /&gt;mysql&gt; UPDATE [table name] SET Select_priv = 'Y',Insert_priv = 'Y',Update_priv = 'Y' where [field name] = 'user';&lt;br /&gt;&lt;br /&gt;Delete a row(s) from a table.&lt;br /&gt;&lt;br /&gt;mysql&gt; DELETE from [table name] where [field name] = 'whatever';&lt;br /&gt;&lt;br /&gt;Update database permissions/privilages.&lt;br /&gt;&lt;br /&gt;mysql&gt; flush privileges;&lt;br /&gt;&lt;br /&gt;Delete a column.&lt;br /&gt;&lt;br /&gt;mysql&gt; alter table [table name] drop column [column name];&lt;br /&gt;&lt;br /&gt;Add a new column to db.&lt;br /&gt;&lt;br /&gt;mysql&gt; alter table [table name] add column [new column name] varchar (20);&lt;br /&gt;&lt;br /&gt;Change column name.&lt;br /&gt;&lt;br /&gt;mysql&gt; alter table [table name] change [old column name] [new column name] varchar (50);&lt;br /&gt;&lt;br /&gt;Make a unique column so you get no dupes.&lt;br /&gt;&lt;br /&gt;mysql&gt; alter table [table name] add unique ([column name]);&lt;br /&gt;&lt;br /&gt;Make a column bigger.&lt;br /&gt;&lt;br /&gt;mysql&gt; alter table [table name] modify [column name] VARCHAR(3);&lt;br /&gt;&lt;br /&gt;Delete unique from table.&lt;br /&gt;&lt;br /&gt;mysql&gt; alter table [table name] drop index [colmn name];&lt;br /&gt;&lt;br /&gt;Load a CSV file into a table.&lt;br /&gt;&lt;br /&gt;mysql&gt; LOAD DATA INFILE '/tmp/filename.csv' replace INTO TABLE [table name] FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n' (field1,field2,field3);&lt;br /&gt;&lt;br /&gt;Dump all databases for backup. Backup file is sql commands to recreate all db's.&lt;br /&gt;&lt;br /&gt;# [mysql dir]/bin/mysqldump -u root -ppassword --opt &gt;/tmp/alldatabases.sql&lt;br /&gt;&lt;br /&gt;Dump one database for backup.&lt;br /&gt;&lt;br /&gt;# [mysql dir]/bin/mysqldump -u username -ppassword --databases databasename &gt;/tmp/databasename.sql&lt;br /&gt;&lt;br /&gt;Dump a table from a database.&lt;br /&gt;&lt;br /&gt;# [mysql dir]/bin/mysqldump -c -u username -ppassword databasename tablename &gt; /tmp/databasename.tablename.sql&lt;br /&gt;&lt;br /&gt;Restore database (or database table) from backup.&lt;br /&gt;&lt;br /&gt;# [mysql dir]/bin/mysql -u username -ppassword databasename &lt; /tmp/databasename.sql&lt;br /&gt;&lt;br /&gt;Create Table Example 1.&lt;br /&gt;&lt;br /&gt;mysql&gt; CREATE TABLE [table name] (firstname VARCHAR(20), middleinitial VARCHAR(3), lastname VARCHAR(35),suffix VARCHAR(3),officeid VARCHAR(10),userid VARCHAR(15),username VARCHAR(8),email VARCHAR(35),phone VARCHAR(25), groups VARCHAR(15),datestampDATE,timestamp time,pgpemail VARCHAR(255));&lt;br /&gt;&lt;br /&gt;Create Table Example 2.&lt;br /&gt;&lt;br /&gt;mysql&gt; create table [table name] (personid int(50) not null auto_increment primary key,firstname varchar(35),middlename varchar(50),lastnamevarchar(50) default 'bato');&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-414397543359693756?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/414397543359693756/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/01/mysql-commands.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/414397543359693756'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/414397543359693756'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/01/mysql-commands.html' title='MySQL Commands'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-3144237112574454372</id><published>2009-01-19T18:09:00.000-08:00</published><updated>2009-01-19T18:12:59.326-08:00</updated><title type='text'>Basic cPanel Scripts</title><content type='html'>&lt;p&gt;cPanel and WHM has a large number of predefined scripts available in the /scripts folder. The available scripts are as follows:&lt;/p&gt;&lt;p&gt;/scripts/adddns                      --  Add a Dns Entry&lt;/p&gt;&lt;p&gt;/scripts/addfpmail                  --  Install Frontpage Mail Exts&lt;br /&gt;&lt;/p&gt;/scripts/addservlets               --  Add JavaServlets to an account (JSP plugin required)&lt;br /&gt;/scripts/adduser                     --  Add a User&lt;br /&gt;/scripts/admin                         -- Run WHM Lite&lt;br /&gt;/scripts/apachelimits             --  Add Rlimits (CPU and MEM limits) to apache.&lt;br /&gt;/scripts/autorepair                 --  For repairing  spam database, horde patch etc.&lt;br /&gt;/scripts/cpbackup                  -- Backing up accounts&lt;br /&gt;/scripts/courierup                  -- Reinstall courier&lt;br /&gt;/scripts/dnstransfer               -- Resync with a master DNS Server&lt;br /&gt;/scripts/editquota                  -- Edit A User's Quota&lt;br /&gt;/scripts/eximup                      -- Reinstall exim&lt;br /&gt;/scripts/finddev                      -- Search For Trojans in /dev&lt;br /&gt;/scripts/findtrojans                -- Locate Trojan Horses&lt;br /&gt;&lt;br /&gt;/scripts/findtrojans &gt; /var/log/trojans&lt;br /&gt;/scripts/fixtrojans /var/log/trojans&lt;br /&gt;&lt;br /&gt;/scripts/fixcartwithsuexec      -- Make Interchange work with suexec&lt;br /&gt;/scripts/fixquotas                    -- Fix account's quota&lt;br /&gt;/scripts/fixhome                      -- Fix Permissions on accounts&lt;br /&gt;/scripts/fixinterchange           -- Fix Most Problems with Interchange&lt;br /&gt;/scripts/fixndc                          -- To try and fix domain controller&lt;br /&gt;/scripts/fixtrojans                    -- Run on a trojans horse file created by findtrojans to remove them&lt;br /&gt;/scripts/fixwebalizer                -- Run this if a user's stats stop working&lt;br /&gt;/scripts/fixvaliases                  -- Fix a broken valias file&lt;br /&gt;scripts/fullhordereset             -- Reset the horde database&lt;br /&gt;/scripts/generate_maildirsize-- Fix mailbox size&lt;br /&gt;/scripts/hdparamify                   -- Turn on DMA and 32bit IDE hard drive access (once per boot)&lt;br /&gt;/scripts/initquotas                     --  Re-scan quotas. Usually fixes Disk space display problems&lt;br /&gt;/scripts/initsuexec                    -- Turn on SUEXEC (probably a bad idea)&lt;br /&gt;/scripts/installzendopt             -- Fetch + Install Zend Optimizer&lt;br /&gt;/scripts/ipusage                        -- Display IP usage Report&lt;br /&gt;/scripts/killacct                          -- Terminate an Account&lt;br /&gt;/scripts/killbadrpms                 -- Delete \"Security Problem Infested RPMS\"&lt;br /&gt;/scripts/killdns                           -- Delete a dns zone&lt;br /&gt;/scripts/mailperm                      -- Fix Various Mail Permission Problems&lt;br /&gt;/scripts/mailtroubleshoot         -- Attempt to Troubleshoot a Mail Problem&lt;br /&gt;/scripts/makecpphp                  -- Compile cpanel php&lt;br /&gt;/scripts/mysqlpasswd               -- Change a Mysql Password&lt;br /&gt;/scripts/mysqlup                        -- Reinstall mysql&lt;br /&gt;/scripts/newftpuser                    -- Create a new ftp user&lt;br /&gt;/scripts/quicksecure                  -- Kill Potential Security Problem Services&lt;br /&gt;/scripts/perlinstaller                   -- Install a perl module&lt;br /&gt;/scripts/pkgacct                          -- To take backup of an account&lt;br /&gt;/scripts/rebuildippool                -- Rebuild Ip Address Pool&lt;br /&gt;/scripts/reinstallmailman          -- Reinstall MailMan&lt;br /&gt;/scripts/realperlinstaller            -- Install a perl module&lt;br /&gt;/scripts/remdefssl                       -- Delete Nasty SSL entry in apache default httpd.conf&lt;br /&gt;/scripts/restartsrv                        -- Restart a Service (valid services: httpd,proftpd,exim,sshd,cppop,bind,mysql)&lt;br /&gt;/scripts/restorepkg                      -- Restore an account&lt;br /&gt;/scripts/rpmup                              -- Syncup Security Updates from RedHat/Mandrake&lt;br /&gt;/scripts/runweblogs                     -- Force an awstats update.&lt;br /&gt;/scripts/runlogsnow                     -- Force a webalizer/analog update.&lt;br /&gt;/scripts/secureit                            -- Remove non-important suid binaries&lt;br /&gt;/scripts/setupfp4                           -- Install Frontpage 4+ on an account.&lt;br /&gt;/scripts/setupfp5                           -- Install Frontpage 5+ on an account.&lt;br /&gt;/scripts/simpleps                          -- Return a Simple process list. Useful for finding where cgi scripts are running from.&lt;br /&gt;/scripts/suspendacct                   -- Suspend an account&lt;br /&gt;/scripts/sysup                                -- Syncup Cpanel RPM Updates&lt;br /&gt;/scripts/ulimitnamed                    -- RH 6 only. Install a version of bind to handle many many zones.&lt;br /&gt;/scripts/unblockip                         -- Unblock an IP&lt;br /&gt;/scripts/unsuspendacct               -- UnSuspend an account&lt;br /&gt;/scripts/upcp                                  -- Update Cpanel&lt;br /&gt;/scripts/updatenow                       -- Update /scripts&lt;br /&gt;/scripts/updateuserdomains       -- Update /etc/userdomains file&lt;br /&gt;/scripts/wwwacct                            -- Create a New Account&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-3144237112574454372?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/3144237112574454372/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/01/basic-cpanel-scripts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/3144237112574454372'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/3144237112574454372'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/01/basic-cpanel-scripts.html' title='Basic cPanel Scripts'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-1638226939069491600</id><published>2009-01-19T00:56:00.000-08:00</published><updated>2009-01-19T01:05:54.640-08:00</updated><title type='text'>Apache Useful Commands</title><content type='html'>httpd -v &lt;br /&gt;&lt;p&gt;Outputs the build date and version of the Apache server.&lt;/p&gt;&lt;p&gt;httpd -l&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Lists compiled in Apache modules&lt;/p&gt;&lt;p&gt;httpd status&lt;br /&gt;&lt;/p&gt;Only works if mod_status is enabled and shows a page of active connections&lt;br /&gt;&lt;p&gt;service httpd restart&lt;/p&gt;&lt;p&gt;Restarted Apache web server&lt;br /&gt;&lt;/p&gt;&lt;p&gt;/etc/init.d/httpd startssl&lt;/p&gt;&lt;p&gt;Start apache with SSL enabled (if not in the conf)&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-1638226939069491600?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/1638226939069491600/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/01/apache-useful-commands.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/1638226939069491600'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/1638226939069491600'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/01/apache-useful-commands.html' title='Apache Useful Commands'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-1096144620196382318</id><published>2009-01-19T00:44:00.000-08:00</published><updated>2009-01-19T00:54:17.493-08:00</updated><title type='text'>cPanel Logs - A detailed view</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_Z9jEefy19os/SXQ-EDbeUOI/AAAAAAAAAEI/7NkcuQtkoFU/s1600-h/large-cpanel-logo-300x126.gif"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 300px; height: 126px;" src="http://1.bp.blogspot.com/_Z9jEefy19os/SXQ-EDbeUOI/AAAAAAAAAEI/7NkcuQtkoFU/s320/large-cpanel-logo-300x126.gif" border="0" alt="" id="BLOGGER_PHOTO_ID_5292923701428113634" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div align="justify"&gt;Applications can log the system activity in two ways, one being according to their autonomous logic &amp;amp; the other through the system’s log daemon, well know as syslog..&lt;br /&gt;&lt;br /&gt;The syslog daemon’s configuration file /etc/syslog.conf contains all the necessary paths/locations as to where the logs are stored.&lt;br /&gt;&lt;br /&gt;Usually the directory /var/log/ is used for the system logs but other applications use the applications specified directories to store their log files…&lt;br /&gt;Many distributions provide tools to manage and analyze the system logs.&lt;br /&gt;&lt;br /&gt;Logrotate is a well known log rotation tool which usually is configured in the /etc/logrotate.conf file.&lt;br /&gt;It may also have additional package-defined configurations in the /etc/logrotate.d/ directory..&lt;br /&gt;In order to understand what’s happening on the system a brief analysis of /etc/syslog.conf is mandatory for checking the main logs positions.&lt;br /&gt;&lt;br /&gt;Here are some basic log files, their locations &amp;amp; a brief description which can be found in Linux distros [mostly in cPanel ]:&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;strong&gt;General:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Quote:&lt;br /&gt;cPanel/WHM Initial Installation Errors:&lt;br /&gt;Location : /var/log/cpanel*install*&lt;br /&gt;Description : These log files contain cPanel installation logs &amp;amp; should be referenced first for any issues resulting from new cPanel installations..&lt;br /&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;Quote:&lt;br /&gt;Cpanel/WHM Service Status Logs:&lt;br /&gt;Location : /var/log/chkservd.log&lt;br /&gt;Description :The service monitoring demon (chkservd) logs all service checks here. Failed service are represented with a [-] and active services are represented by [+].&lt;br /&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;Quote:&lt;br /&gt;Cpanel/WHM Accounting Logs:&lt;br /&gt;Location : /var/cpanel/accounting.log&lt;br /&gt;Description : Contains a list of accounting functions performed through WHM, including account removal and creation..&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;cPanel/WHM Specific Requests and Errors:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Quote:&lt;br /&gt;cPanel error logs:&lt;br /&gt;Location : /usr/local/cpanel/logs/error_log&lt;br /&gt;Description : cPanel logs any error it incurs here. This should be checked when you encounter errors or strange behavior in cPanel/WHM…&lt;br /&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;Quote:&lt;br /&gt;cPanel License Error Logs:&lt;br /&gt;Location : /usr/local/cpanel/logs/license_log&lt;br /&gt;Description : All license update attempts are logged here. If you run into any errors related to license when logging in, check here.&lt;br /&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;Quote:&lt;br /&gt;Stats Daemon Logs:&lt;br /&gt;Location : /usr/local/cpanel/logs/stats_log&lt;br /&gt;Description : The stats daemon (cpanellogd) logs the output from all stats generators (Awstats, Webalizer, Analog) here.&lt;br /&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;Quote:&lt;br /&gt;Client Information, Requested URL Logs:&lt;br /&gt;Location : /usr/local/cpanel/logs/access_log&lt;br /&gt;Description : General information related to access cPanel requests is logged here.&lt;br /&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;Quote:&lt;br /&gt;cPanel/WHM Update Logs:&lt;br /&gt;Location : /var/cpanel/updatelogs/update-[TIMESTAMP].log&lt;br /&gt;Description : Contains all output from each cPanel update [upcp]. It’s named with the timestamp at which the upcp process was initiated..&lt;br /&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;Quote:&lt;br /&gt;Bandwidth Logs:&lt;br /&gt;Location : /var/cpanel/bandwidth&lt;br /&gt;Description : Files contain a list of the bandwidth history for each account. Each named after their respective user.&lt;br /&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;Quote:&lt;br /&gt;Tailwatchd [New]:&lt;br /&gt;Location : /usr/local/cpanel/logs/tailwatchd_log&lt;br /&gt;Description : Logs for daemon configuired under tailwatchd ie. cPBandwd, Eximstats, Antirelayd.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Apache Logs:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Quote:&lt;br /&gt;General Error and Auditing Logs:&lt;br /&gt;Location : /usr/local/apache/logs/error_log&lt;br /&gt;Description : All exceptions caught by httpd along with standard error output from CGI applications are logged here..&lt;br /&gt;The first place you should look when httpd crashes or you incur errors when accessing website.&lt;br /&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;Quote:&lt;br /&gt;Apache SuExec Logs:&lt;br /&gt;Location : /usr/local/apache/logs/suexec_log&lt;br /&gt;Description : Auditing information reported by suexec each time a CGI application is executed. Useful for debugging internal server errors, with no relevant information being reported to the Apache error_log, check here for potential suexec policy violations…&lt;br /&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;Quote:&lt;br /&gt;Domain Access Logs:&lt;br /&gt;Location : /usr/local/apache/domlogs/domain.com&lt;br /&gt;Description : General access log file for each domain configured with cPanel.&lt;br /&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;Quote:&lt;br /&gt;Apache Access Logs:&lt;br /&gt;Location : /usr/local/apache/logs/access_log&lt;br /&gt;Description : Complete web server access log records all requests processed by the server.&lt;br /&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;strong&gt;Exim :&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Quote:&lt;br /&gt;Message Reception and Delivery:&lt;br /&gt;Location : /var/log/exim_mainlog or /var/log/exim/mainlog&lt;br /&gt;Description : Receives an entry every time a message is received or delivered.&lt;br /&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;Quote:&lt;br /&gt;Exim ACLs/Policies based RejectLog :&lt;br /&gt;Location : /var/log/exim_rejectlog&lt;br /&gt;Description : An entry is written to this log every time a message is rejected based on either ACLs or other policies eg: aliases configured to :fail&lt;br /&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;Quote:&lt;br /&gt;Unexpected or Fatal Errors:&lt;br /&gt;Location : /var/log/exim_paniclog&lt;br /&gt;Description : Logs any entries exim doesn’t know how to handle. It’s generally a really bad thing when log entries are being written here, and they should be properly investigated..&lt;br /&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;Quote:&lt;br /&gt;IMAP/POP/SpamAssassin General Logging and Errors:&lt;br /&gt;Location : /var/log/maillog &amp;amp; /var/log/messages&lt;br /&gt;Description : The IMAP, POP, and SpamAssassin services all log here. This includes all general logging information (login attempts, transactions, spam scoring), along with fatal errors.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;FTP:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Quote:&lt;br /&gt;FTP Logins and General Errors:&lt;br /&gt;Location : /var/log/messages&lt;br /&gt;Description : General information and login attempts are logged here..&lt;br /&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;Quote:&lt;br /&gt;FTP Transactions logging:&lt;br /&gt;Location : /var/log/xferlog or /var/log/messages&lt;br /&gt;Description : Is a symbolic link in most cases to /usr/local/apache/domlogs/ftpxferlog, which contains a history of the transactions made by FTP users…&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;MySQL:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Quote:&lt;br /&gt;MySQL General Information and Errors :&lt;br /&gt;Location : /var/lib/mysql/$(hostname).err&lt;br /&gt;Description : This path could vary, but is generally located in /var/lib/mysql. Could also be located at /var/log/mysqld.log&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Security:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Quote:&lt;br /&gt;Authentication attempts:&lt;br /&gt;Location : /var/log/secure&lt;br /&gt;Description : Logs all daemons which requires PAM Authentication.&lt;br /&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;Quote:&lt;br /&gt;Tracking all Bad Logins and Logouts:&lt;br /&gt;Location : /var/log/btmp&lt;br /&gt;Description : Log of all attempted bad logins to the system. Accessed via the lastb command..&lt;br /&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;Quote:&lt;br /&gt;Tracking all Logins and Logouts:&lt;br /&gt;Location : /var/log/wtmp&lt;br /&gt;Description : The wtmp file records all logins and logouts.&lt;br /&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;Quote:&lt;br /&gt;Last Logins:&lt;br /&gt;Location : /var/log/lastlog&lt;br /&gt;Description : Database times of previous user logins. The lastlog file is a database which contains info on the last login of each user.&lt;br /&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;Quote:&lt;br /&gt;WebDav or WebDisk Log :&lt;br /&gt;Location : /usr/local/cpanel/logs/cpdavd_error_log&lt;br /&gt;Description : The cpdavd daemon is “WebDav” (better known as “WebDisk") which was introduced in cPanel 11 to allow users to mount their home directory on their personal computer, always having access to the files and content…&lt;br /&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;Quote:&lt;br /&gt;Cphulkd Logs:&lt;br /&gt;Location : /usr/local/cpanel/logs/cphulkd_errors.log&lt;br /&gt;Description : cPHulk Brute Force Protection prevents malicious forces from trying to access your server’s services by guessing the login password for that service….&lt;br /&gt;It blacklists IPs that it thinks are trying to run a brute force attack.&lt;br /&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;Quote:&lt;br /&gt;Failure Logging:&lt;br /&gt;Location : /var/log/faillog&lt;br /&gt;Description : Faillog formats the contents of the failure log from /var/log/faillog database. It also can be used for maintains failure counters and limits. Run faillog without arguments display only list of user faillog records who have ever had a login failure.&lt;br /&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;Quote:&lt;br /&gt;Startup/Boot, Kernel &amp;amp; Hardware error messages :&lt;br /&gt;Location : /var/log/dmesg&lt;br /&gt;Description : dmesg is a “window” into the kernels ring-buffer. It’s a message buffer of the kernel. The content of this file is referred to by the dmesg command. It shows bootlog and the hardware errors..&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-1096144620196382318?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/1096144620196382318/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/01/cpanel-logs-detailed-view.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/1096144620196382318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/1096144620196382318'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/01/cpanel-logs-detailed-view.html' title='cPanel Logs - A detailed view'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_Z9jEefy19os/SXQ-EDbeUOI/AAAAAAAAAEI/7NkcuQtkoFU/s72-c/large-cpanel-logo-300x126.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-9188418205186116239</id><published>2009-01-18T08:56:00.000-08:00</published><updated>2009-01-18T09:01:11.613-08:00</updated><title type='text'>How to configure OutLook email client?</title><content type='html'>&lt;p&gt;Steps to configure OutLook Email client:&lt;/p&gt;&lt;p&gt;1. Click “Tools” -&gt; “Email Accounts” on the menu bar.&lt;br /&gt;&lt;br /&gt;2. Select “Add a new e-mail account” and click “Next”.&lt;br /&gt;&lt;br /&gt;3. Select “POP3″ and click “Next”.&lt;br /&gt;&lt;br /&gt;4. Enter your name and email address under “User Information”.&lt;br /&gt;&lt;br /&gt;5. Under “Logon Information”, enter the username and password you use to login to the mail server. MAKE SURE to put the domain at the end of the username — e.g. “user@domain.com” and not just “user”.&lt;br /&gt;&lt;br /&gt;6. Check “Remember password” if desired.&lt;br /&gt;&lt;br /&gt;7. Under “Server Information”, enter the mailserver in both the POP3 and SMTP fields.&lt;br /&gt;&lt;br /&gt;8. Click “More Settings…”.&lt;br /&gt;&lt;br /&gt;9. Open the tab “Outgoing Server”. Check the box that says “My outgoing server (SMTP) requires authentication”, and make sure that “Use same settings as my incoming mail server” is selected beneath that.&lt;br /&gt;&lt;br /&gt;10. Click “OK”, then “Next”, and then “Finish”.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-9188418205186116239?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/9188418205186116239/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/01/how-to-configure-outlook-email-client.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/9188418205186116239'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/9188418205186116239'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/01/how-to-configure-outlook-email-client.html' title='How to configure OutLook email client?'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-8298356296174419218</id><published>2009-01-18T08:32:00.000-08:00</published><updated>2009-01-18T08:56:18.627-08:00</updated><title type='text'>How to reset MySQL root password?</title><content type='html'>If you forgot root password for your MySQL server, you can follow the steps below to reset it.&lt;br /&gt;&lt;br /&gt;1. Login to the server as root and stop MySQL service.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;# /etc/init.d/mysqld stop&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;2. Start mysqld_safe service.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;# mysqld_safe –skip-grant-tables &amp;amp;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;3. Login to MySQL server now. It won’t ask you for a password.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;# mysql -u root&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;4. Set up a new MySQL root user password:&lt;br /&gt;&lt;br /&gt;mysql&gt;&lt;strong&gt; use mysql;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;mysql&gt; &lt;strong&gt;update user set password=PASSWORD(”NEW-ROOT-PASSWORD”) where User=’root‘;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;mysql&gt; &lt;strong&gt;flush privileges;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;mysql&gt; &lt;strong&gt;quit&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;5. Restart your MySQL service.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;# /etc/init.d/mysqld restart&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;6. Try to login using new password. It should work fine.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;# mysql -u root -p&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;That’s it !!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-8298356296174419218?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/8298356296174419218/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/01/how-to-reset-mysql-root-password.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/8298356296174419218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/8298356296174419218'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/01/how-to-reset-mysql-root-password.html' title='How to reset MySQL root password?'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-1735141726562148833</id><published>2009-01-18T05:05:00.000-08:00</published><updated>2009-01-18T05:06:47.486-08:00</updated><title type='text'>Installation of mod_security</title><content type='html'>Here are the step for mod_security installation.&lt;br /&gt;&lt;br /&gt;1. Login to the server with root password.&lt;br /&gt;&lt;br /&gt;2. Downlaod of the latest version of mod_security&lt;br /&gt;&lt;br /&gt;wget http://www.modsecurity.org/download/…y-1.7.4.tar.gz&lt;br /&gt;&lt;br /&gt;3 Untar the file.&lt;br /&gt;&lt;br /&gt;tar zxvf mod_security-1.7.4.tar.gz&lt;br /&gt;&lt;br /&gt;4. Now, cd mod_security-1.7.4/&lt;br /&gt;&lt;br /&gt;5. Now check for apache version is installed on the server&lt;br /&gt;&lt;br /&gt;APACHE 1.3.x users&lt;br /&gt;cd apache1/&lt;br /&gt;APACHE 2.x users&lt;br /&gt;cd apache2/&lt;br /&gt;&lt;br /&gt;6. Compliling the module&lt;br /&gt;&lt;br /&gt;/usr/local/apache/bin/apxs -cia mod_security.c&lt;br /&gt;&lt;br /&gt;7. Edit the apache config file now, just take the backup of the file if needed for precaution.&lt;br /&gt;&lt;br /&gt;vi /usr/local/apache/conf/httpd.conf&lt;br /&gt;&lt;br /&gt;Now, check the followin;&lt;br /&gt;&lt;br /&gt;# Turn the filtering engine On or Off&lt;br /&gt;&lt;strong&gt;SecFilterEngine On&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;# Change Server: string&lt;br /&gt;SecServerSignature ” ”&lt;br /&gt;&lt;br /&gt;# Make sure that URL encoding is valid&lt;br /&gt;SecFilterCheckURLEncoding On&lt;br /&gt;&lt;br /&gt;# This setting should be set to On only if the Web site is&lt;br /&gt;# using the Unicode encoding. Otherwise it may interfere with&lt;br /&gt;# the normal Web site operation.&lt;br /&gt;SecFilterCheckUnicodeEncoding Off&lt;br /&gt;&lt;br /&gt;# Only allow bytes from this range&lt;br /&gt;SecFilterForceByteRange 1 255&lt;br /&gt;&lt;br /&gt;# The audit engine works independently and&lt;br /&gt;# can be turned On of Off on the per-server or&lt;br /&gt;# on the per-directory basis. “On” will log everything,&lt;br /&gt;# “DynamicOrRelevant” will log dynamic requests or violations,&lt;br /&gt;# and “RelevantOnly” will only log policy violations&lt;br /&gt;SecAuditEngine RelevantOnly&lt;br /&gt;&lt;br /&gt;# The name of the audit log file&lt;br /&gt;SecAuditLog /var/log/httpd/audit_log&lt;br /&gt;&lt;br /&gt;# Should mod_security inspect POST payloads&lt;br /&gt;SecFilterScanPOST On&lt;br /&gt;&lt;br /&gt;# Action to take by default&lt;br /&gt;SecFilterDefaultAction “deny,log,status:500?&lt;br /&gt;&lt;br /&gt;# Require HTTP_USER_AGENT and HTTP_HOST in all requests&lt;br /&gt;SecFilterSelective “HTTP_USER_AGENT|HTTP_HOST” “^$”&lt;br /&gt;&lt;br /&gt;# Prevent path traversal (..) attacks&lt;br /&gt;SecFilter “../”&lt;br /&gt;&lt;br /&gt;# Weaker XSS protection but allows common HTML tags&lt;br /&gt;SecFilter “”&lt;br /&gt;&lt;br /&gt;# Very crude filters to prevent SQL injection attacks&lt;br /&gt;SecFilter “delete[[:space:]]+from”&lt;br /&gt;SecFilter “insert[[:space:]]+into”&lt;br /&gt;SecFilter “select.+from”&lt;br /&gt;&lt;br /&gt;# Protecting from XSS attacks through the PHP session cookie&lt;br /&gt;SecFilterSelective ARG_PHPSESSID “!^[0-9a-z]*$”&lt;br /&gt;SecFilterSelective COOKIE_PHPSESSID “!^[0-9a-z]*$”&lt;br /&gt;&lt;br /&gt;8. Last but not the least — Restart Apache.&lt;br /&gt;&lt;br /&gt;The installations process finished.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-1735141726562148833?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/1735141726562148833/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/01/installation-of-modsecurity.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/1735141726562148833'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/1735141726562148833'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/01/installation-of-modsecurity.html' title='Installation of mod_security'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2258928174306208999.post-3000879464682644947</id><published>2009-01-18T04:55:00.000-08:00</published><updated>2009-01-18T05:02:37.311-08:00</updated><title type='text'>How to Install Mod_perl on cpanel server</title><content type='html'>&lt;p&gt;&lt;/p&gt;&lt;p align="justify"&gt;&lt;span style="font-family:lucida grande;"&gt;* First-To install Mod_perl, Login to your existing account or create new account. You may select either the rvskin admin account or fantastico admin account. In case if you’ve install it in the rvadmin account, then you can proceed as below.&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:lucida grande;"&gt;* SSH into the server, and go to:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:lucida grande;"&gt;cd /home/rvadmin/ directory&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:lucida grande;"&gt;*  Get the mod_perl-1.29.tar.gz&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:lucida grande;"&gt;wget http://perl.apache.org/dist/mod_perl-1.0-current.tar.gz&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-family:lucida grande;"&gt;* Unpack the file:&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="font-family:lucida grande;"&gt;tar xzf mod_perl-1.29.tar.gz&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-family:lucida grande;"&gt;* Move to the mod_perl directoy:&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="font-family:lucida grande;"&gt;cd mod_perl-1.29&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-family:lucida grande;"&gt;* Configure&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="font-family:lucida grande;"&gt;perl Makefile.PL USE_APXS=1 WITH_APXS=/usr/local/apache/bin/apxs EVERYTHING=1&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-family:lucida grande;"&gt;*  Run Make&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="font-family:lucida grande;"&gt;make&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-family:lucida grande;"&gt;* Run Install&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="font-family:lucida grande;"&gt;make install&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-family:lucida grande;"&gt;*  Activate Mod Perl&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;strong&gt;&lt;span style="font-family:lucida grande;"&gt;/usr/local/apache/bin/apxs -a -n perl -i libperl.so&lt;/span&gt;&lt;/strong&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div align="justify"&gt;&lt;span style="font-family:lucida grande;"&gt;#########&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;Create the script as shown below, and add it to the root directory of the mod_perl account holder (for this case rvadmin), and modify the permissions (chmod +x add-mod-perl.sh), so to add mod_perl back into apache, you just require to run the script, and then confirm that apache restarted with mod perl in it, you can then check in WHM/News to see if mod_perl is listed .&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;#########&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;Now  you will need to run if you re-compile Apache. The mod_perl binary is at&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;/home/rvadmin/mod_perl-1.29/apaci/libperl.so, to make it more simple just put the following lines in a file:&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:lucida grande;"&gt;— cut here —&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;strong&gt;&lt;span style="font-family:lucida grande;"&gt;#!/bin/sh&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;libperl=/home/rvadmin/mod_perl-1.29/apaci/libperl.so&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;apxs=/usr/local/apache/bin/apxs&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;$apxs -a -n perl -i $libperl&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;/etc/init.d/httpd stop&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;/etc/init.d/httpd start&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:lucida grande;"&gt;— cut here —&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:lucida grande;"&gt;Name the file add-mod-perl.sh and execute “chmod +x add-mod-perl.sh”. after compiling apache run the script (”./add-mod-perl.sh”) and it should  work.&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2258928174306208999-3000879464682644947?l=amshameer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amshameer.blogspot.com/feeds/3000879464682644947/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amshameer.blogspot.com/2009/01/how-to-install-modperl-on-cpanel-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/3000879464682644947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2258928174306208999/posts/default/3000879464682644947'/><link rel='alternate' type='text/html' href='http://amshameer.blogspot.com/2009/01/how-to-install-modperl-on-cpanel-server.html' title='How to Install Mod_perl on cpanel server'/><author><name>Shameer A M</name><uri>http://www.blogger.com/profile/01473854194197647986</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_Z9jEefy19os/SXArS-DeMOI/AAAAAAAAADs/6LPo6t-pNhw/S220/my.jpg'/></author><thr:total>0</thr:total></entry></feed>
