Archive

Archive for June, 2012

How to Install EAccelerator, IonCube, Zend Optimizer, SourceGuardian, and SuHosin outside of EasyApache

June 30th, 2012 No comments

How to Install EAccelerator, IonCube, Zend Optimizer, SourceGuardian, and SuHosin outside of EasyApache

 

You can use /scripts/phpextensionmgr to install or uninstall these modules!

/scripts/phpextensionmgr list
Available Extensions:
EAccelerator
IonCubeLoader
Zendopt
SourceGuardian
PHPSuHosin

If you wanted to install Zend Optimizer use the below command.

/scripts/phpextensionmgr install Zendopt
Installing Zendopt
Determining PHP version
Installing Zend Optimizer binary
Activating Zend Optimizer in /usr/local/lib/php.ini
Zend Optimizer activated
Skipping install to /usr/local/php4, missing php.ini

 

Categories: CPanel / WHM, PHP Tags:

How to install WatchMySQL Plugin in WHM

June 30th, 2012 No comments

How to install WatchMySQL Plugin in WHM

Installation

Go to the below path

cd /sbin

Remove the file or take the backup

rm -f watchmysql

Download watchmysql plugin using the below link

wget http://www.ndchost.com/cpanel-whm/scripts/watchmysql/download.php

Change the ownership of that file

chown root.root watchmysql

Change permission of the file.

chmod 0750 watchmysql

 

Configuration

Before you run the script you must first configure it. Use edit to open the watchmysql script and set the options.

#Sets the maximum concurrent connections per MySQL user.

my $max_concurrent_connections = '15';

#Who to tell about this user... (email)

my $warning_email = [email protected]';

#Kill Abuser's MySQL Connections (0 = no, 1 = yes)

my $kill_user = '0';

#MySQL polling in seconds (600 = 10 minutes)

my $check_interval = '600';

 

Running

To start this script simply run the following command

/sbin/watchmysql &

If you want the script to start when the system boots you need to add the above line to /etc/rc.local

 

Categories: CPanel / WHM, MySql, WHM Plugins Tags:

How to reset litespeed admin password

June 30th, 2012 No comments

How to reset litespeed admin password

Go to the below path

/usr/local/lsws/admin/misc

run the below command

sh admpass.sh

It will show below output

Please specify the user name of administrator.
This is the user name required to login the administration Web interface.

User name [admin]: admin

Please specify the administrator’s password.
This is the password required to login the administration Web interface.

Password:
Retype password:
Administrator’s username/password is updated successfully!

It will ask for the username type (admin) and password you want to set

 

How to uninstall nginx from linux cpanel server

June 2nd, 2012 No comments

How to uninstall nginx from linux cpanel server

Go to the path where you have downloaded the tar file on nginx. I have downloaded that file in the below path.

cd /usr/local/src

Go inside nginx folder

cd publicnginx

run the below command to unsinstall it.

./nginxinstaller uninstall

 

How to install nginx on cpanel server

June 2nd, 2012 No comments

How to install nginx on cpanel server

Go to the below path

cd /usr/local/src

Download the nginx admin file.

wget http://nginxcp.com/nginxadmin2.6-stable.tar

Untar that file using below command

tar -xvf nginxadmin2.6-stable.tar

go to that folder

cd publicnginx

Install nginx using the below steps

./nginxinstaller install

 

 

 

 

Categories: Apache, CPanel / WHM, Installation Tags: