How to install tomcat 6 on the linux server ? When you have installed tomcat by using Easy-Apache then it installed Tomcat 5.5 and if you want to installed Tomcat 6.0 then you need to made some necessary changes on the server. 1) First install Tomcat 5 by using Easy-Apache means java is also installed [ Read More ]
How to uninstall ffmpeg
Categories: Email Marketing Series, How to, InstallationHow to uninstall ffmpeg ? Ans : I have installed the ffmpeg by using the /usr/local/src/ffmpeg directory so I have uninstalled it by using the same directory. cd /usr/local/src/ffmpeg make uninstall Deleting ffmpeg-related files from /usr/lib & /usr/bin folders. You can confirm by using following command to uninstall ffmpeg. locate ffmpeg | grep bin cd [ Read More ]
How to update the yum repository on Centos 5 server
Categories: Email Marketing Series, How to, Installation, KnowledgeHow to update the yum repository on Centos 5 server 1) yum install yum-fastestmirror 2) yum install yum-priorities 3) uname -i If the output is i386 then cd /usr/local/src wget http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm 4) Install key rpm –import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt 5)Install rpmforge rpm -ivh rpmforge-release-0.3.6-1.el5.rf.i386.rpm 6) yum check-update It will take some time to update teh RPM and [ Read More ]
Unrouteable address
Categories: Email problems, Error and solutionError : A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed: test@domain.com Unrouteable address” Solution : Suppose you have try to send emails from domain.com to any other email account and the server shows the above error then [ Read More ]
How to install imagick on linux server ? Solution : ================ cd /usr/local/src wget http://pecl.php.net/get/imagick-2.2.0.tgz tar -zxvf imagick-2.2.0.tgz cd imagick-2.2.0 phpize ./configure make make install ================ Done
reset mysql password in plesk
Categories: mysql, PleskError : ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES) Solution : To find password for user admin, run [root@server22 ~]# cat /etc/psa/.psa.shadow FfRBehWy [root@server22 ~]# To login to MySQL mysql -u admin -pFfRBehWy For example [root@server22 ~]# mysql -u admin -pFfRBehWy Welcome to the MySQL monitor. Commands end with ; or [ Read More ]
Error : … cannot restore segment prot after reloc: Permission denied Solution : This problem is most probably caused by the security extension SeLinux. I am sure that the “SeLinux” is enable on the server. You need to disable the SeLinux on the server. By Default SELinux is set to “enforcing” in CentOS on boot, [ Read More ]
start/stop tomcat in cpanel server
Categories: Email Marketing Series, How to, TomcatHow to start/stop tomcat by using ” /etc/init.d/tomcat” command. Ans : 1) Check linux server run level by using following command who -r If runlevel is 3 then create the file vi /etc/rc.d/init.d/tomcat and add the following code ==================================== #!/bin/sh JAVA_HOME=/usr/local/jdk; export JAVA_HOME TOMCAT_HOME=/usr/local/jakarta/tomcat; export TOMCAT_HOME $TOMCAT_HOME/bin/catalina.sh $* ==================================== Save the file and then change [ Read More ]
If you want to install Rvsite builder on cpanel server then use the following simple steps. cd /usr/local/cpanel/whostmgr/docroot/cgi/ rm -f rvsitebuilderinstaller.tar wget http://download.rvglobalsoft.com/rvsitebuilderinstaller.tar tar -xvf rvsitebuilderinstaller.tar chmod 755 addon_rvsitebuilder.cgi Login to WHM as root, you will find RVSiteBuilder Installer menu under the Plugins Section. Click RVSiteBuilder Installer to begin the installation process. You will be [ Read More ]
Some common script
Categories: Shell Programming and Scripting1 ) Script to change server wide ownership for all cpanel users. ==================== #!/bin/bash cd /var/cpanel/users for user in * do chown -Rv $user.$mail /home/$user/etc chown -v $user.$nobody /home/$user/public_html chown -Rv $user.$user /home/$user done ====================
Custom 404 page in joomla
Categories: JoomlaHow to set the custom 404 page in joomla? or Change default “Joomla 404 component not found” page Ans : Create 404.shtml file under the document root then open the error.php file vi /home/username/public_html/templates/system/error.php then add the following code below the line “defined( ‘_JEXEC’ ) or die( ‘Restricted access’ );” ======================================= if (($this->error->code) == ’404′) [ Read More ]
Set expiration for you index page
Categories: Email Marketing Series, How to, PHP, Shell Programming and ScriptingIf you want to set the expiration to your site means after some date or year your site shows custom error on the page then you can add following code in index page below the “<?php” code and set the date as per your request. ============================================ $exp_date = “2010-04-31″; $todays_date = date(“Y-m-d”); $today = [ Read More ]
ruby lib version (1.8.7) doesn’t match executable version
Categories: Error and solution, Ruby and RailsError : When accessing the page and it shows the “Internal server errror” and the server logs shows the folloging error /home/username/public_html/rubytest2.htm:6: /usr/local/lib/ruby/1.8/i686-linux/rbconfig.rb:7: ruby lib version (1.8.7) doesn’t match executable version (1.8.6) (RuntimeError) [Sun Mar 28 11:42:45 2010] [error] [client 124.124.251.228] Premature end of script headers: /home/username/public_html/cgi-bin/eruby.cgi [Sun Mar 28 11:42:45 2010] [error] [client 124.124.251.228] [ Read More ]
You can get MPlayer via Subversion. Issue the following command to get the latest sources: root@server[] cd /usr/local/src svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer root@server[] svn update root@server[] cd mplayer root@server[]./configure root@server[] make root@server[] make install Done You can check the path of mplayer by using the command root@server [ ] which mplayer /usr/local/bin/mplayer Done
Error: 500 internal server error is shown when access URL http://domain.com/cgi-bin/index.php Solution : Add the following Handler in httpd.conf file or .htaccess file. AddHandler application/x-httpd-php .php Done
Remove extensions from url
Categories: htaccess, KnowledgeHow to remove the .php extension from the URL ? Ans : Add the following code in .htaccess file ====================== Options +FollowSymLinks Options +Indexes RewriteEngine on RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^([^\.]+)$ $1.php [NC,L] ====================== How to remove the .html extension from the URL ? Ans : Add the following code in .htaccess file ====================== Options [ Read More ]
mysqldump: Got error
Categories: mysqlError : When you try to run the mysqldump command to make a backup of database then encounter the following error-exception: mysqldump databasename > databasename.sql mysqldump: Got error: 1016: Can’t open file: ‘./databasename/wp_142_term_taxonomy.frm’ (errno: 24) when using LOCK TABLES Solution: Open the file /etc/my.cnf and add the following line and restart the mysql service on [ Read More ]
Enable mssql support on Linux server
Categories: PHP, UncategorizedHow to enable mssql support on Linux server ? Ans : You need to first compile freetds and then compile PHP with freetds support. What is FreeTDS? FreeTDS is a free implementation of the TDS (Tabular Data Stream) protocol that is used by Sybase and Microsoft for their database products. It implements TDS 4.2, 5.0, [ Read More ]
Error : Are you getting this wordpress error whilst trying to automatically update wordpress or a plugin Incompatible archive: PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature Solution : The error due the disk space is full of your account. You need to upgrade your hosting plan or deleted some unwanted [ Read More ]
Error : Curl webservice CURLE_SSL_CACERT (60) Peer certificate cannot be authenticated with known CA certificates. Solution: Add the following line in your file on which you have access the domain. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); Done
Remove IP from Brute Force Protection
Categories: Basic Linux, Email Marketing Series, Error and solution, How toHow to remove blocked ip address from the Brute Force Protection by using SSH ? When WHM locks out an user account, especially “root”, the best way is to wait for 10 minutes to see if the account will be unlocked. If the locks persists, webmaster and administrator who still can remote login via SSH [ Read More ]
Warning: POST Content-Length of
Categories: Error and solution, JoomlaError : Warning: POST Content-Length of 9897293 bytes exceeds the limit of 8388608 bytes in Unknown on line 0 Solution: If you are facing same error in joomla then you need to increase the “post_max_size” in php.ini file post_max_size =8M Replaced with post_max_size = 12 M Done
.htaccess Generation Issues in wordpress
Categories: htaccess, WordpressFixing .htaccess Generation Issues in wordpress If your installation of WordPress does not generate a .htaccess file or if it does not write the new rules onto your existing .htaccess file then there are a couple reasons that could be causing this. Work step by step and continue to the next step only if the [ Read More ]
Redirect domain to .cgi file
Categories: Error and solution, htaccessIf you want to redirect your domain http://domain.co.uk to http://domain.co.uk/cgi-bin/test/subdirectory/test.cgi file then add the following rewrite rule in .htaccess file ==================== Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.domain\.co\.uk$ [NC] RewriteRule ^/?$ “http\:\/\/www\.domain\.co\.uk\/cgi-bin\/test\/subdirectory\/test\.cgi$1″ [R=301,L] ==================== Or ==================== http://domain.com to http://domain.com/cgi-bin/subdirectory/test.cgi then add the following rewrite rule in .htaccess file ==================== RewriteEngine on RewriteCond %{HTTP_HOST} ^domain.com$ [OR] [ Read More ]
How to install xpdf , libXp and antiword on Linux (Centos or Redhat 32 Bit ) server cd /usr/local/src/ Dowload following RPM’s files under the /usr/local/src/ directrory. wget http://mit.edu/zacheiss/dev/rhlinux/redhat-7.1-updates/SRPMS/xpdf-0.92-4.71.0.src.rpm wget ftp://ftp.univie.ac.at/systems/linux/fedora/core/6/i386/os/Fedora/RPMS/libXp-1.0.0-8.i386.rpm wget http://dag.wieers.com/rpm/packages/antiword/antiword-0.37-3.el5.rf.i386.rpm or http://dag.wieers.com/rpm/packages/antiword/?N=A Then rpm -ivh xpdf-0.92-4.71.0.src.rpm rpm -ivh libXp-1.0.0-8.i386.rpm rpm -ivh antiword-0.37-3.el5.rf.i386.rpm Then you can check it root@server [/usr/local/src]# which xpdf /usr/local/bin/xpdf [ Read More ]
Warning: shell_exec() has been disabled for security reasons in
Categories: cpanel, Error and solutionWarning: shell_exec() has been disabled for security reasons in You would receive the above warning message while accessing Fantastico through cPanel. Please check if the below options are selected in WHM (you need to access WHM as root) Login to your WHM control panel as root scroll down to the PHP section and make sure [ Read More ]
CodeIgniter redirection problem
Categories: Error and solution, htaccessIf CodeIgniter is installed on the linux server and the .htaccess file is correct but your domain is not working properly then you need to set the “uri_protocol” in the “system/application/config/config.php” file is as follows. $config['uri_protocol'] = “REQUEST_URI”;










