MyTrueHost launched Web Hosting for Indian clients just in Rs 60/Month with various payment options(netbanking, debit card, credit card,cash card or paypal).
Please Visit at https://www.mytruehost.in

How to patch openssl version?

You can patch openssl version by using following steps but make sure that you are able to SSH server as root user user.

root@gunjan[/usr/local/src]#cd /usr/local/src
root@gunjan[/usr/local/src]#wget http://www.openssl.org/source/openssl-0.9.8h.tar.gz
root@gunjan[/usr/local/src]#tar -zxf openssl-0.9.8h.tar.gz
root@gunjan[/usr/local/src]#cd openssl-0.9.8h
root@gunjan[/usr/local/src]#./Configure –prefix=/usr debug-linux-pentium (or choose right os)
root@gunjan[/usr/local/src]#make
root@gunjan[/usr/local/src]#make install

To check openssl version simply run openssl version

root@gunjan[/usr/local/src]#openssl version

 

How to install install Eaccelerator?

To install Eaccelerator manually refer following steps one by one carefully.

1. First you need to login into shell as root user

2. Now we’ll make the eaccelerator directory:

root@gunjan[]#cd ~

root@gunjan[~]#mkdir /eaccelerator/

root@gunjan[~]#cd /eaccelerator/

2. Now download the source file

root@gunjan[~]#wget http://heanet.dl.sourceforge.net/sourceforge/eaccelerator/eaccelerator-0.9.4-rc1.tar.bz2

root@gunjan[~]#bzip2 -d eaccelerator-0.9.4-rc1.tar.bz2

root@gunjan[~]#tar xvf eaccelerator-0.9.4-rc1.tar

3. Now install Eaccelerator:

root@gunjan[~]#cd eaccelerator-0.9.4-rc1/

root@gunjan[~]#export PHP_PREFIX=”/usr”

root@gunjan[~]#$PHP_PREFIX/bin/phpize

root@gunjan[~]#./configure –enable-eaccelerator=shared –with-php-config=$PHP_PREFIX/bin/php-config

root@gunjan[~]#make

root@gunjan[~]#make install

4. Now basically eaccelerator installed, now we need to edit the php.ini files to
include Eaccelerator extension.

root@gunjan[~]#php -i | grep php.ini
Configuration File (php.ini) Path => /usr/local/lib
Loaded Configuration File => /usr/local/lib/php.ini

root@gunjan[~]#pico /usr/local/lib/php.ini

copy and paste following lines php.ini carefully
———————-
extension=”eaccelerator.so”
eaccelerator.shm_size=”16?
eaccelerator.cache_dir=”/tmp/eaccelerator”
eaccelerator.enable=”1?
eaccelerator.optimizer=”1?
eaccelerator.check_mtime=”1?
eaccelerator.debug=”0?
eaccelerator.filter=””
eaccelerator.shm_max=”0?
eaccelerator.shm_ttl=”0?
eaccelerator.shm_prune_period=”0?
eaccelerator.shm_only=”0?
eaccelerator.compress=”1?
eaccelerator.compress_level=”9?
———————-

For a Zend extension install server (only if you have Zend installed on your server, or
if you’re going to install it)

———————-
zend_extension=”/usr/lib/php4/eaccelerator.so”
eaccelerator.shm_size=”16?
eaccelerator.cache_dir=”/tmp/eaccelerator”
eaccelerator.enable=”1?
eaccelerator.optimizer=”1?
eaccelerator.check_mtime=”1?
eaccelerator.debug=”0?
eaccelerator.filter=””
eaccelerator.shm_max=”0?
eaccelerator.shm_ttl=”0?
eaccelerator.shm_prune_period=”0?
eaccelerator.shm_only=”0?
eaccelerator.compress=”1?
eaccelerator.compress_level=”9?
———————-

5. Now you need to make the cache directory on your server, where the cache files will be
stored for eaccelerator
root@gunjan[]#cd ~

root@gunjan[~]#mkdir /tmp/eaccelerator/

root@gunjan[~]#chmod 0777 /tmp/eaccelerator/

6. Now restart Apache so that Eaccelerator will start working:

service httpd restart

Now check eAccelerator by using following command

root@gunjan[~]#php -v
PHP 5.2.11 with Suhosin-Patch 0.9.7 (cli) (built: Nov 20 2009 14:28:34)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
with eAccelerator v0.9.5.3, Copyright (c) 2004-2006 eAccelerator, by eAccelerator
with the ionCube PHP Loader v3.3.7, Copyright (c) 2002-2009, by ionCube Ltd., and
with SourceGuardian v8.0, Copyright (c) 2000-2009, by Inovica Ltd.
with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies
with Suhosin v0.9.29, Copyright (c) 2007, by SektionEins GmbH

You done it

 

How to install YUM on plain Server?

First you need to login into shell as root user than follow the steps one by one.

[root@gunjan]#mkdir /root/support  && cd /root/support

[root@gunjan]#wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/gmp-4.1.4-10.el5.i386.rpm

[root@gunjan]#rpm -Uvh gmp-4.1.4-10.el5.i386.rpm

[root@gunjan]#wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/readline-5.1-3.el5.i386.rpm

[root@gunjan]#rpm -Uvh readline-5.1-3.el5.i386.rpm

[root@gunjan]#wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-2.4.3-27.el5.i386.rpm

[root@gunjan]#rpm -Uvh python-2.4.3-27.el5.i386.rpm

[root@gunjan]#wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/libxml2-2.6.26-2.1.2.8.i386.rpm

[root@gunjan]#rpm -Uvh libxml2-2.6.26-2.1.2.8.i386.rpm

[root@gunjan]#wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/libxml2-python-2.6.26-2.1.2.8.i386.rpm

[root@gunjan]#rpm -Uvh libxml2-python-2.6.26-2.1.2.8.i386.rpm

[root@gunjan]#wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/expat-1.95.8-8.2.1.i386.rpm

[root@gunjan]#rpm -Uvh expat-1.95.8-8.2.1.i386.rpm

[root@gunjan]#wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-elementtree-1.2.6-5.i386.rpm

[root@gunjan]#rpm -Uvh python-elementtree-1.2.6-5.i386.rpm

[root@gunjan]#wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/sqlite-3.3.6-5.i386.rpm

[root@gunjan]#rpm -Uvh sqlite-3.3.6-5.i386.rpm

[root@gunjan]#wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-sqlite-1.1.7-1.2.1.i386.rpm

[root@gunjan]#rpm -Uvh python-sqlite-1.1.7-1.2.1.i386.rpm

[root@gunjan]#wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/elfutils-0.137-3.el5.i386.rpm

[root@gunjan]#rpm -Uvh elfutils-0.137-3.el5.i386.rpm

[root@gunjan]#wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/rpm-python-4.4.2.3-18.el5.i386.rpm

[root@gunjan]#rpm -Uvh rpm-python-4.4.2.3-18.el5.i386.rpm

[root@gunjan]#It will throw following error.

[root@gunjan]# rpm -Uvh rpm-python-4.4.2.3-18.el5.i386.rpm

warning: rpm-python-4.4.2.3-18.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
error: Failed dependencies:
popt = 1.10.2.3-18.el5 is needed by rpm-python-4.4.2.3-18.el5.i386
rpm = 4.4.2.3-18.el5 is needed by rpm-python-4.4.2.3-18.el5.i386
rpm-libs = 4.4.2.3-18.el5 is needed by rpm-python-4.4.2.3-18.el5.i386

In that case search dependencies in following URL

http://rpm.pbone.net/

[root@gunjan]#wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/m2crypto-0.16-6.el5.6.i386.rpm

[root@gunjan]#rpm -Uvh m2crypto-0.16-6.el5.6.i386.rpm

[root@gunjan]#wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-urlgrabber-3.1.0-5.el5.noarch.rpm

[root@gunjan]#rpm -Uvh python-urlgrabber-3.1.0-5.el5.noarch.rpm

[root@gunjan]#wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/yum-3.2.22-20.el5.centos.noarch.rpm

[root@gunjan]#rpm -Uvh yum-3.2.22-20.el5.centos.noarch.rpm

It will throw following error.

[root@gunjan]# rpm -Uvh yum-3.2.22-20.el5.centos.noarch.rpm
warning: yum-3.2.22-20.el5.centos.noarch.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
error: Failed dependencies:
python-iniparse is needed by yum-3.2.22-20.el5.centos.noarch
rpm-python is needed by yum-3.2.22-20.el5.centos.noarch
yum-fastestmirror is needed by yum-3.2.22-20.el5.centos.noarch
yum-metadata-parser >= 1.1.0 is needed by yum-3.2.22-20.el5.centos.noarch

In that case search dependencies in following URL

http://rpm.pbone.net/

Once you complete all dependencies you can update yum by using following command

[root@gunjan]#yum -y update

 

cPanel easyapache error “pdo was disabled by the dso patch”

While enabling the PDO extension using the /scripts/easyapache the following error occur

pdo was disabled by the dso patch

To avoid above error message do not select “Concurrent DSO patch” option in EasyApache under the “Exhaustive Options List” and recompile the Apache with the PDO module.

 

Reinstall Frontpage extensions on the domain

You can reinstall the Frontpage extension for single hosting account / domain by using following command from shell.

cd /usr/local/frontpage/version5.0/bin

./owsadm.exe -o install -u cpanel_user_name -p 80 -m www.domainname.com -servconf /usr/local/apache/conf/httpd.conf -xuser cpanel_user_name

 

Install and uninstall Frontpage for single domain from Shell.

First you need to login into your server with the root login details and then run followings commands one by one

/scripts/setupfp5:

What is the servername you want to setup? www.****.org
Saving .htaccess file: /home/****/public_html/.htaccess
Using Upgrade Mode
Saving .htaccess file: /home/****/public_html/_private/.htaccess

For remove /scripts/unsetupfp4

What is the servername you want to setup? www.****.org
Saving .htaccess file: /home/****/public_html/.htaccess
Using Upgrade Mode
Saving .htaccess file: /home/****/public_html/_private/.htaccess

Thats it

 

Frontpage problem

If anyone facing problems with the FrontPage installation then first uninstall the installed FrontPage from shell /home/user/public_html (Change the user to your user name)
Then run the following commands one by one.

rm -rf .htaccess.*
rm -rf _vti_pvt/
rm -rf _derived
rm -rf _private
rm -rf _vti_*

If server is SuExec enabled then first disable it from the WHM
And install FrontPage for the specific domain where you have seems the problem and then try to publish site by using Frontpage. If you are still facing the problem then

remove all the .htaccess.* from/home/user/public_html and remove all _* (private,vti,etc)one by one carefully.

Now try to install it and check for the permission and ownership of public_html folder

Permission and ownership need to be as follows

chown user:user public_html -R
chmod 755 public_html -R

if the problem still persists then check whether the permission of public_html/_vti_pvt/service.pwd is 600 or not?

(try even setting an attr and set the permission to 600)

ie
chmod 600 service.pwd
chattr +i service.pwd
chattr -i service.pwd

It will sort out your problem enjoy

 

Connect and publish files by using Frontpage

Following are the steps to connect the Frontpage and publish the sites files/folders.

1.Begin by starting Microsoft FrontPage Explorer from your Windows Start Menu.

2.Select Open Web… from the File… menu. This will open the Open Web dialogue.

3.In the Open Web dialogue, select the My Network Places icon.

4.Now, enter http://www.yourdomainname.com into the Web Name field. Click Open to continue.

5.You will now be presented with a pop-up window entitled Enter Network Password.Enter your cPanel or FTP Username and Password without any space. Click OK to continue.

6.FrontPage Explorer will open a Folder List window at the left-hand edge of the Explorer screen that will contain the entire directory structure for your webspace.

7.To edit pages using FrontPage, double-click any of the web pages listed in the Folder List. A new FrontPage window will open for each page you select.

8. To upload newly-modified pages to the web, select File… then save… from the FrontPage Explorer tool bar. Your web pages will automatically reflect your latest changes.

 

Secure FTP by changing FTP port.

In recent few months FTP brute force attacks increased on most the cPanel servers. To avoid such attacks, we can simple default FTP account or change FTP port. If you are shared server then client won’t be happy after disabling default FTP which is cPanel login details. There for simply change the FTP port number by using following steps.

Log in to server as root user and open default FTP configuration file.

server@root[~]pico /etc/pure-ftpd.conf

Search for following line and change it

From

#Bind 127.0.0.1,21

To

Bind 0.0.0.0,121

It means all ip will connect to FTP service on port 121 but make sure that you have opened a port 121 in server firewall and restart the FTP service.

 

How to reset the load value for server?

You can set the load value for server by using following steps but make sure that you are having root login details to make server wide chanegs.

Edit the file

/var/cpanel/cpanel.config

and change extracpus to a number larger then 0

Then run /usr/local/cpanel/startup afterwards to pickup the changes.