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

Error : Request exceeded the limit of 10 internal redirects due to probable configuration error. Use ‘LimitInternalRecursion’ to increase the limit if necessary. Use ‘LogLevel debug’ to get a backtrace Solution : When access the domain and the domain not shows the content and the server logs shows the above error then you need to  [ Read More ]

disable directory listing in tomcat

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

disable directory listing,Tomcat + cpanel,web.xml file,tomcat,cpanel,index.jsp

File path in PLESK

Posted by Rishikesh Vispute Categories: Plesk

File path in PLESK

How to redirect domain to sub-directory without redirect to URL

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 following lines  [ Read More ]

How to protect CRE Loaded admin area ? or Problem when page requires authentication or How to set  password protection for sub directory  without affecting to other .htaccess rewrite rules Ans : You will notice that the default .htaccess will not work if your page requires authentication. Suppose you have set the password protection for  [ Read More ]

If you want to copy all of the files and folders from one host to another by using the ftp account. Then use the following command to download the files/folders on remote server by using wget. Use this command on destination server. wget -r ftp://username:password@ip.of.old.host Some on the hosting provider disabled the main ftp account  [ Read More ]

how to update the awstat in plesk

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

How to update the awstat on plesk manually/automatically ? Ans: You can easily update the awstat for the particular domain  by using following command. /usr/local/psa/admin/sbin/statistics –calculate-one –domain-name=domain.com Note: Replace the domain.com equal to original domain name. If you want to update the awstat for all the domains which is hosted on the serve then use  [ Read More ]

javax.naming.NameNotFoundException

Posted by Rishikesh Vispute Categories: Error and solution, Tomcat

Error: javax.naming.NameNotFoundException: Name jdbc is not bound in this Context Solution : When I have access  site in browser then catalina.out logs show the above error and the database is not connected , I have tried all of the possibilities but  this issue is sorted  with following solution. I have moved the mysql-connector-java-*.jar file from  [ Read More ]

Request Entity Too Large

Posted by Rishikesh Vispute Categories: Error and solution

Error : Request Entity Too Large The requested resource /send.php does not allow request data with POST requests, or the amount of data provided in the request exceeds the capacity limit. 01 3006 Solution : This error due the variables_order used on the server. The default variables_order used on the cpanel server is “EGPCS”. If  [ Read More ]

How to set the Cronjob for first Sunday of the every month. Ans: You can not set such type of cron by using the cPanel. I have used  following script to set this cron. This script detect the first Sunday of every month and then execute the defined script. Add the following Cron to execute  [ Read More ]

Install php soap on the linux plesk server

Posted by Rishikesh Vispute Categories: Installation, Plesk

How to install php soap on the linux plesk server(centos 5 -i386) ? Ans : You can easily installed php soap by using the rpm rpm -ivh http://www6.atomicorp.com/channels/atomic/centos/5/i386/RPMS/php-soap-5.2.13-1.el5.art.i386.rpm Then check it by using the command php -m | grep soap soap Done

How to migrate  and restore single account from one cpanel server to another cpanel server Login to source server : /scripts/whoowns domain.com It shows the username for that domain name. You can create  full backup  of account which contain all data, database and emails by using following command. #/scripts/pkgacct username Change the permission #chmod 755  [ Read More ]

enable mysql Query cache

Posted by Rishikesh Vispute Categories: mysql

How to enable mysql Query cache on linux server? Ans: You need to login to mysql by using root accesss. ========================== root@server[~]#mysql -u root –pPASSWORD mysql> SET GLOBAL query_cache_size = 16777216;              (If you want to set query_cache_size=16 MB) ========================== Then open the my.cnf file and add the following directives. # vi /etc/my.cnf query_cache_size = 268435456  [ Read More ]

How to Re-Install cPanel Softwares

Posted by Rishikesh Vispute Categories: cpanel

You can easily reinstall the cpanel softwares. Roundcube: /usr/local/cpanel/bin/update-roundcube –force Horde: /usr/local/cpanel/bin/update-horde –force or /scripts/fullhordereset Squirrelmail /usr/local/cpanel/bin/update-squirrelmail –force cPanel /scripts/upcp MySQL /scripts/mysqlup PostgreSQL /scripts/installpostgres phpMyAdmin /usr/local/cpanel/bin/updatephpmyadmin pureFTP /scripts/ftpup –force (See: Installing and Configuring pure-FTP) Exim /scripts/eximup Courier IMAP /scripts/courierup –force (See: Installing/Configuring Courier IMAP) Dovecot /scripts/dovecotup –force (See: Installing and Configuring Dovecot) cpAddons /scripts/cpaddonsup NSD/BIND  [ Read More ]

http://localhost/removecookies”

Posted by Rishikesh Vispute Categories: Uncategorized

When any page shows blank page and redirected to the URL http://localhost/removecookies” Then the problem due the mod security check the server  logs and disable the mod security rules which is affected for your domain. If server logs not shows any error logs then completely disable the mod security for your domain.

Error : Exception printing is disabled by default for security reasons. Error log record number: XXXXXXXXXXXXXXX Solution : After installation of magento then some of pages shows this error. Exception printing is disabled by default for security reasons. Error log record number: XXXXXXXXXXXXXXX In this case you need to check following steps. 1) Go to  [ Read More ]

remove index.php from url in magento

Posted by Rishikesh Vispute Categories: magento

How to remove index.php from url in magento Ans : If you want to access your magento URL without index.php for example: http://domain.com/index.php/category to http://domain.com/category then use the following steps 1) Login to admin section by using the URL http://domain.com/index.php/admin 2) then go to “System >>  Configuration >>Web >> Search Engines Optimization” Use Web Server  [ Read More ]

To Disable SSLv2 and enable SSLv3 in the server in cpanel Linux Server Edit the ssl.conf file root@server []# vi /usr/local/apache/conf/ssl.conf Edit the line from SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL To SSLProtocol -SSLv2 +SSLv3 +TLSv1 SSLCipherSuite !NULL:!ADH:!EXP:!LOW:SSLv3:+HIGH:+MEDIUM root@server []# /etc/init.d/httpd restart You can connect the server using OpenSSL to test it SSLv3 enable or not : root@server []#  [ Read More ]

view the content of .csr file

Posted by Rishikesh Vispute Categories: Uncategorized

If you want to check the .csr file content then use the following command to check the details of CSR. openssl req -text -noout -in host.csr Note: change the host.csr to original .csf file name.

joomla permission in plesx

Posted by Rishikesh Vispute Categories: Joomla

When joomla admin section shows the all files unwritable  in ” System Info” Then you need to correct the permission by using following  steps. I am able to solve this issue with the following steps. cd /var/www/vhosts/[domain.com] chown -R [username]:psacln httpdocs chmod -R g+w httpdocs find httpdocs -type d -exec chmod g+s {} \; Add  [ Read More ]

If you want to install software/packages after installation of linux  (CentOS, Fedora etc.). You can create the yum repository to install all the software/packages which is present into the instillation CD. When you have try to install software/packages then some time it shows dependencies problems. To fix this problem I suggest your create the local machine  [ Read More ]

How to Add ssh user on linux server ? Ans: You can use the putyykey generator and generate the ssh key for the user and copy into the local computer.You can download the puttykey generator from the URL http://the.earth.li/~sgtatham/putty/latest/x86/puttygen.exe The following are the steps for creating ssh user with the authentication :- #adduser test #passwd  [ Read More ]

What is appbase and docbase

Posted by Rishikesh Vispute Categories: Tomcat

What is appbase and docbase ? Ans : appBase : The Application Base directory for this virtual host. This is the path-name of a directory that may contain web applications to be deployed on this virtual host. You may specify an absolute path name for this directory, or a path name that is relative to  [ Read More ]

How to enable SSI ?

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

How to enable Server Side Includes on the server ? Ans: First you can check SSI are enabled on your server or not.  So create one test.html file and add the following code . <!–#ECHO var=”DATE_LOCAL” –> Then access the page by using the URL http://domain.com/test.html  and  it shows the current date to the screen  [ Read More ]

Neither the JAVA_HOME nor the JRE_HOME environment variable is defined

access .jsp pages by using the temporay URL

Posted by Rishikesh Vispute Categories: cpanel, Tomcat

If  domain does not points to the server and you want to access .jsp pages by using the temporary URL (ex: http://domain.com/~username ) Solution: Add the following code in server.xml file under the virtual host entry for any domain. <Listener className=”org.apache.catalina.startup.UserConfig” directoryName=”public_html” homeBase=”/home” userClass=”org.apache.catalina.startup.HomesUserDatabase”/> For example : Web files would need to be in directories  [ Read More ]

Optimized by SEO Ultimate