Problem With Solutions

Something Different In Linux

Previous Next
  • redirect all URLs to anoter blog URLs

    If you want to redirect all the URLs  from one blog to another blog URLs then add the following rewrite rules in .htaccess files. Example : I have redirected  my old blog from "http://www.bestdesigns.co.in/blog to my new domain http://www.bestdesigns.co.in/blog. I have added the following rewrite rules into old blog .htaccess files menas ...

  • Configure CNAME and MX records for Google Apps in cpanel server

    How to configure Google Apps in cpanel server ? OR How Configuring DNS CNAME and MX records for Google Apps in cpanel server ? Ans : Google Apps is a suite of Google applications that brings together essential services to help your business. This is a hosted service that lets businesses, schools, and ...

  • reset root password in Debian

    How to reset root password in single user mode in Debian ? Ans : At grub-boot loader screen. Select Recovery mode the version of the kernel that you wish to boot and type e for edit. Select the line that starts with kernel and type e to edit the line. Go to the ...

  • empty trash folder automatically

    How to disable delete emails from trash after 7 days ? Ans : Sometimes  Problems arise when clients E mail accounts run out of its quota, even tough the In-boxes kept empty, they somehow forget to clean the Trash boxes too. After checking it is found that, all the E mails were ...

  • How to install phpmyadmin on linux

    How to install phpmyadmin on linux server ? Ans : phpMyAdmin is a free software tool written in PHP intended to handle the administration of MySQL over the World Wide Web. phpMyAdmin supports a wide range of operations with MySQL. The most frequently used operations are supported by the user interface (managing ...

  • how to install APC

    How to install APC on Linux ? Ans: The Alternative PHP Cache (APC) is a free and open opcode cache for PHP. Its goal is to provide a free, open, and robust framework for caching and optimizing PHP intermediate code. Besides being a opcode cache it provides a user cache for storing ...

  • https to http redirection

    How to redirect domain from https://domain.com to http://domain.com ? Ans: If you tried all the possibilities with the .htaccess file and your domain is still not redirected from https to http then finally you can add following code in virtual host entry means in httpd.conf file. Search the 443 entry for a ...

  • disable directory listing in tomcat

    How to disable directory listing in Tomcat? + cPanel server ? Ans : By default the directory listing is enabled on the tomcat  server. You can disable it by using the following steps. There are basically 2 methods of "turning off" this option : * Create an index.jsp  file and place it in the ...

  • redirect domain to subdirectory without redirect url

    How to redirect domain to sub-directory without redirect to  URL ? Ans: If you want to redirect your domain name to sub-directory but the url shows only domain name For example : http://www.bestdesigns.co.in/blog redirect to http://www.bestdesigns.co.in/blog/blog but the URL shows only http://www.bestdesigns.co.in/blog Then add the following rules in your .htaccess file. <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_HOST} ^indianwebportal\.com RewriteRule ...

  • How to create email account in postfix mail server

    How to create email account in postfix mail server? Ans : Postfix configuration files are stored in "/etc/postfix". The two main postfix configuration files are master.cf and main.cf, although we will only be dealing with main.cf  here. First we are going to make some additions or changes to the main.cf configuration file. The ...

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

Posted by Rishikesh Vispute Categories: Email Marketing Series, How to, Installation

How 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 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

Posted by Rishikesh Vispute Categories: Email problems, Error and solution

Error : 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

Posted by Rishikesh Vispute Categories: mysql, Plesk

Error :  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

Posted by Rishikesh Vispute Categories: Email Marketing Series, How to, Tomcat

How 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 ]

How to install RvSiteBuilder on cpanel server

Posted by Rishikesh Vispute Categories: Installation

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

Posted by Rishikesh Vispute Categories: Shell Programming and Scripting

1 ) 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

Posted by Rishikesh Vispute Categories: Joomla

How 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 ]

If 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 ]

Error : 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

cgi_bin shows the internal server error

Posted by Rishikesh Vispute Categories: Error and solution, htaccess

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

Posted by Rishikesh Vispute Categories: htaccess, Knowledge

How 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

Posted by Rishikesh Vispute Categories: mysql

Error : 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

Posted by Rishikesh Vispute Categories: PHP, Uncategorized

How 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

How 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

Posted by Rishikesh Vispute Categories: Error and solution, Joomla

Error  : 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

Posted by Rishikesh Vispute Categories: htaccess, Wordpress

Fixing .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

Posted by Rishikesh Vispute Categories: Error and solution, htaccess

If 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

Posted by Rishikesh Vispute Categories: Installation

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 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

Posted by Rishikesh Vispute Categories: Error and solution, htaccess

If 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”;

Page optimized by WP Minify WordPress Plugin

Optimized by SEO Ultimate