How to redirect a website using .htaccess? Redirect website http://mydomain.com to http://www.mynewdomain.comRewriteEngine onRewriteCond %{HTTP_HOST} ^mydomain\.com$RewriteRule ^(.*)$ http://www.mynewdomain.com [R=301,L] Redirect website mydomain.com with and without www requests to http://www.mynewdomain.comRewriteEngine onRewriteCond %{HTTP_HOST} ^www\.mydomain\.com$ [OR]RewriteCond %{HTTP_HOST} ^mydomain\.com$RewriteRule ^(.*)$ http://www.mynewdomain.com [R=301,L] Redirect requests from http://mydomain.com to http://mydomain.com/subdirectory i.e. redirecting requests from main domain to… Continue Reading .htaccess Redirection.

How to install NAGIOS in linux or windows server? Solution. INSTALLATION Download the latest version of nagios from the following linkhttp://www.nagios.org/download/Then, unpack the Nagios distribution, use the following command#tar xzf nagios-2.6.tar.gzNavigate  to the newly created directory#cd nagios-version (nagios-2.6)Run the configure script# ./configure –prefix=/usr/local/nagios –with-cgiurl=/nagios/cgi-bin —with-htmurl=/nagios/ –with-nagios-user=nagios –with-nagios-group=nagios –with-command-group=nagios where–prefix=/usr/local/nagios is… Continue Reading Nagios installation.

OpenVZ Commands Introduction ====================vz -> recommends ext3 file systemPIM -> IP:4643PMC -> mangaing h/w nodePPP -> for managing a single containerAll the above things need a license from parallel==================== Templates ====================OS template -> vzpkg (cache needs to created before creating the container)EZ template -> points to the repository that contains… Continue Reading Open VZ and commands

Some Plesk 1. Getting all the domain account information from Plesk———————————————————————— mysql -uadmin -p`cat /etc/psa/.psa.shadow` -D psa -e “select login,password,home from sys_users INNER JOIN accounts on accounts.id=sys_users.account_id;” 2. Get client login details from Plesk.———————————————– mysql -uadmin -p`cat /etc/psa/.psa.shadow` -D psa -e “select login,password from clients INNER JOIN accounts on accounts.id=clients.account_id;”… Continue Reading Plesk and MYSQL

LiteSpeed installation in WHM. How to add the liteSpeed module or plugin in the cPanel WHM. cd /usr/srcwget http://www.litespeedtech.com/packages/cpanel/lsws_whm_plugin_install.shchmod 700 lsws_whm_plugin_install.sh./lsws_whm_plugin_install.shrm -f lsws_whm_plugin_install.sh Login to WHM, “LiteSpeed Web Server Plugin for WHM” should show up in WHM “Plugins” section.Now you can then install/manage LiteSpeed Web Server from WHM.

How to install cloudlinuxOS in your shared server. It is easy to switch cPanel server from CentOS 5.x to CloudLinux. The process takes a few minutes and replaces just a handful of RPMs. 1) Get either by getting trial subscription or by purchasing subscription2) Download script: cpanel2cl3) Execute sh cpanel2cl… Continue Reading install cloudlinuxOS in cpanel.

These are the few useful path for ASSP spam filter set in the cPanel. find the email: each time you need to analyze an email problem first check if the problem is on ASSP using commands like this # tail -60000 /usr/local/assp/maillog.txt | grep “email” or# tail -60000 /usr/local/assp/maillog.txt |… Continue Reading ASSP spam filter in cpanel. useful commands.

Hello, Is there any way to decrypt “Cpanel password. I know that the cPanel user is listed in “/etc/passwd” and password is encrypted in the “/etc/shadow”. If some one forgets the password the only option available is to reset the password. Is there any option to view the password without… Continue Reading cPanel password – decrypt it

Hello, In my VPS, PHP info page is not working. Its not showing changes when I do modifications. Please help me to fix the issue.? Solution: 1)Copy /usr/local/cpanel/cgi-sys/php5.cgi to /home/username/ public_html/cgi-bin 2)Add the below given script root [/home/username/public_html/cgi-bin]# vi phpini.cgi#!/bin/shexport PHPRC=/home/username/public_htmlexec /home/username/public_html/cgi-bin/php5.cgi 3)And added a php.ini in the location (/home/username/public_html)… Continue Reading PHP info page is not working