CAll Us: USA +1 9176775553   Login

change reseller ownership

How to change the reseller ownership from one reseller user to another reseller user by using SSH Ans: If you want to change the reseller ownership means the old reseller is “test” and you have created new account with the user name “indian” and you want to move all the domains which is under the […]

Read More »

how to upgrade php version on plesk

How to upgrade  php version on plesk ? Ans : – You can simply upgrade the php version on LINUX PLESK server by using following steps root@server [/] # cd /usr/local/src root@server [/usr/local/src]#  wget -q -O – http://www.atomicorp.com/installers/atomic.sh | sh root@server [/usr/local/src]#  yum upgrade php root@server [/usr/local/src]#  /etc/init.d/psa stopall root@server [/usr/local/src]#  /etc/init.d/psa startall root@server [/usr/local/src]#  […]

Read More »

block ftp access using firewall

Block FTP access using the IPtables(Default system firewall) 1) If you want to completely disable the FTP access on the server then run the command : root@server[#] iptables -A INPUT -p tcp –dport 21 -j DROP 2) If you want to block FTP access for a Specific IP then run the below command : root@server[#] […]

Read More »

Reset MySQL root Password

If you have forget the mysql root password and you are not able to access your mysql service then you need to reset the password of mysql root user by using following steps Ans : 1)root@server [~] /etc/init.d/mysqld stop 2) Start to MySQL server without password: root@server [~] mysqld_safe –skip-grant-tables & 3) root@server [~] mysql […]

Read More »

How to install red5 on linux server

How to install red5 on linux server ? Ans : I have used following steps to install the red5 on linux server. root@server [] cd /etc/init.d/ root@server [] wget http://www.indianwebportal.com/downloads/red5 root@server [] chmod 755 red5 root@server [] yum -y install java-1.6.0-openjdk java-1.6.0-openjdk-devel root@server [] cd /usr/src root@server [] rm -rf apache-ant-1.8.0-bin.tar.gz apache-ant-1.8.0 red5-0.8.0.tar.gz root@server [] […]

Read More »

Custom php.ini not working on SuExec Enabled Server

How to enable Custom php.ini  on SuExec Enabled Server ? Ans : Normally, on SuExec Enabled Server, you can create php.ini in your account to customize php settings for your account. If php.ini is created under an account with customize php setting and it doesn’t work for you, then this is because override is disabled […]

Read More »

Install ConfigServer

Install ConfigServer Security & Firewall rm -fv csf.tgz wget http://www.configserver.com/free/csf.tgz tar -xzf csf.tgz cd csf sh install.sh Remove installation files: cd .. rm -Rfv csf/ csf.tgz Install ConfigServer Mail Manage rm -fv cmm.tgz wget http://www.configserver.com/free/cmm.tgz tar -xzf cmm.tgz cd cmm sh install.sh Remove installation files: cd .. rm -Rfv cmm/ cmm.tgz To uninstall: rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/addon_cmm.cgi […]

Read More »

upgrade mysql version on linux server

You can upgrade your mysql version from 5.0 to 5.5 by using following steps 1. Enable remi repository for yum wget http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm sudo rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm 2. Run mysqldump to export data out from MySQL 5.0 mysqldump -uroot -p –all-databases > mysqlbackup.sql 3. Run ‘yum –enablerepo=remi install mysql mysql-server mysqlclient’ 4. Run […]

Read More »

script to check NFS mount point

How to check NFS mount point by using the script ? Ans : If you we have mounted the NFS directory one or  more servers and you want to monitor that mount point then you can use the following method. 1) Check the mount point directoy name, in the following example the mount directory name […]

Read More »

How to downgrade openssl version on linux

Question : How to downgrade openssl version on linux ? Ans : If you are facing any issue related to SSL or if you are not able to access the https website in IE from the windows XP then the problem in the related supported openssl version. The windows XP not supported some latest openssl […]

Read More »

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 left in the […]

Read More »

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 end of […]

Read More »

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 institutions use […]

Read More »

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.indianwebportal.com. I have added the following rewrite rules into old blog .htaccess files menas when any one […]

Read More »

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 domain and add […]

Read More »

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 application data. APC […]

Read More »

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 databases, tables, fields, […]

Read More »

Problem in password protection using .htaccess

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 »

Using wget to download FTP folders

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

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 »

cronjob for first sunday of the every month.

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 »

how to enable SSL3.0 on cpanel server

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 »

create yum repository on local machine

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 »

SSH with private key authentication

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 »

How to enable SSI ?

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 »

How to Install tomcat 6 on cpanel server

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

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

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 »

How to install imagick on linux server

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

Read More »

start/stop tomcat in cpanel server

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 »

Set expiration for you index page

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 »

How to install mplayer on linux server

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

Read More »

Remove IP from Brute Force Protection

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 »

mysql connection in jsp

Database Connection by using jsp page . The URL based mysql connection  is ================================= jdbc:mysql://serverip address/DATABASENAME?user=USERNAME&password=PASSWORD ================================= OR ================================= <!– Database connection settings –> <property name=”connection.driver_class”>com.mysql.jdbc.Driver</property> <property name=”connection.url”>jdbc:mysql://localhost/database_name</property> <property name=”connection.username”>databses_user</property> <property name=”connection.password”>password</property> <!– configuration pool via c3p0–> ================================= OR ================================= try { Class.forName(“com.mysql.jdbc.Driver”).newInstance(); // here we are connecting to localhost, port 3306. Change it to […]

Read More »

How to update webalizer?

Some time the webalizer is not updated automatically , at that time you need to update the webalizer manually by using following command. /usr/local/cpanel/3rdparty/bin/english/webalizer  -N  10  -D  /home/username/tmp/webalizer/dns_cache.db -R 250 -p -n domain.com -o  /home/username/tmp/webalizer   /usr/local/apache/domlogs/domain.com Note : Replace username equal to correct username and domain.com equal to correct domain name.

Read More »

Redirection from http to https

How to Redirect from http to https URL. If the ssl is installed on the server and you want to all the request redirected to https then you need to add the folloing code in .htaccess file. ============================ RewriteEngine on Options +FollowSymLinks RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R] ============================ or ============================ RewriteEngine on Options […]

Read More »

Accessing perl file without .pl extention

How to Access  perl script file without .pl extention for example: http://192.168.o.2/~test/cgi-bin/testperlpath.pl here in this case client want to access testperlpath.pl file without .pl extention like http://192.168.o.2/~test/cgi-bin/testperlpath then you need to add handler in .htaccess file <Files ~ ‘^[^.]*$’> SetHandler cgi-script </Files> Done

Read More »

How to disable Core file generation

How to disable Core file generation first of all delete the core files which are preset on the server or under any account then vi /etc/init.d/httpd and below the “ulimit -n 16384” you need to put ulimit -c 0 And Command to delete core files #find ./ -name “core.*” -exec rm -f {} \;

Read More »

How to compress CSS with gZIP

How to compress my CSS with gZIP? To compress your CSS files with gZIP there are two things that you should do. First, add the following line to the .htaccess file in your public_html folder: AddHandler application/x-httpd-php52 .css By doing this, you allow the server to process .css files through PHP. Next, add the following […]

Read More »

How to disabled the suhosin for the perticular domain

How to disabled the suhosin for the perticular domain search suhosin in php.ini file ============================= extension=”suhosin.so” ; Filtering Options suhosin.get.max_vars = 114096 suhosin.post.max_vars = 114096 ================================ and change it to ========================== ;extension=”suhosin.so” ; Filtering Options ;suhosin.get.max_vars = 114096 ;suhosin.post.max_vars = 114096 ==============================

Read More »

How to Upgrade from moodle 1.8 to 1.9

Upgrade from moodle 1.8 to 1.9 (with Nwiki upgrade) A very quick how to to upgrade moodle 1.8 to moodle 1.9 (with Nwiki upgrade from 1.8 to 1.9): 1. Stop you moodle 1.8 (mantainence mode) 2. Copy your moodle BD (ispconfig is great for this) to a new one (here is dbmoodle19) 3. cp /home/public_html/moodle18 […]

Read More »

How to Redirect a Web Page Using a 301 Redirect

How to Redirect a Web Page Using a 301 Redirect You’ve just edited or modified some pages of your web site and those pages have high search engine rankings that you don’t want to lose. How can you safely redirect web site traffic from your old pages to the new pages without losing your rankings? […]

Read More »

Perl script run without .pl extension.

Perl script run without .pl extension. If client want to run perl script without .pl extension then add the following rule in the .htaccess file under the public_html folder. ============== <Files ~ ‘^[^.]*$’> SetHandler cgi-script </Files> ==============

Read More »

check gzip compression is enable or not

How to check gzip compression is enable on the server or domain. The gzip compression required mod_gzip.c or mod_deflate.c module installed on the server. How you can check this module installed on  the server root@server [~]# /usr/local/apache/bin/httpd -l or root@server [~]# httpd -l If one of the module is installed on the server then, you […]

Read More »

How to enable https for tomcat

If you are looking to enable HTTPS in Tomcat first thing you will have to do is generating a server certificate for your website. A key tool command which comes with your JRE( Java Runtime Environment). Open a command shell which should know how to find your Java runtime environment properly. If you are using […]

Read More »

How to disable banner for server.

How to disable banner for server. anter server ip address in centralops.net/com then click on —- you will see server naem and operating system : this you need to disable vi /usr/local/apache/conf/modsec.conf add one line in the file SecServerSignature “IIS admin”

Read More »