Extracting tarball................... ............... ............... Done
Extracting Domain....Done
Generating Account....
Account Creation Status: failed (Unable to validate setting for cpmod...)
Extract Failed
Invalid Account
Solution:
1) In order to get this issue resolved first of all you need to extract the backup file in test directory:
2) then go to the the directory which you just extracted then go to cp directory
3) there you will get the file with cpanel username you need to edit that file and check for
FEATURELIST and RS
if these values are something custom then you need to set them as :
FEATURELIST=default
RS=x3
save this file and now compress the backup again and try to restore it.
It should get restored without any issues.
Thursday, March 21, 2013
Wednesday, March 20, 2013
install php shield in phpmotion
Installing phpShield Loaders
The first thing we need to do is check a couple of PHP settings. The easiest way to do this is with a phpinfo file. If you don't know how to create a phpinfo file, you can
Now that you have a php info file, upload it to your website's public_html directory and view it in your browser by typing http://www.yoursite.com/phpinfo.php in your address bar. You want to find/verify the following in your phpinfo.php file:Your PHP version
Thread Safety is disabled
enable_dl is set to on
The path to your extension_dir
Path to your php.ini file
Now connect to your webserver using your favorite SSH client and login as root.
Create a new working directory then change directories:
mkdir ~/phpshield cd ~/phpshield
Download the phpSHIELD loaders:
wget http://phpshield.com/loaders/phpshield.loaders.linux.zip
or if you have a 64 bit OS (most people will have a 32 bit OS so you will most likely use the code above)
wget http://phpshield.com/loaders/phpshield.loaders.linux-64.zip
Extract the loaders:
unzip phpshield.loaders.linux.zip
If you do a directory list: ls
you will see a bunch of files named phpshield.4.3.lin to phpshield.5.2.lin
. What we want to do here is find the phpshield file with the number that matches your PHP version. You can find your PHP version at the very top of your phpinfo file from earlier.
Now we need to copy the appropriate phpshield loader file to your PHP extensions directory.
cp ~/phpshield/phpshield.x.x.lin /path/to/your/php/extensions/directory
Replace x.x above with your PHP version and use the path to your PHP extensions directory (you should have found this in step 2 above.)
Open your php.ini file
nano /path/to/php/ini/php.ini
You should have found the path to your php.ini file in your phpinfo.php file from earlier.
Append the following to the Dynamic Extensions section of your php.ini file:
extension=phpshield/phpshield.x.x.lin
Replace x.x with the number on the phpshield file you moved earlier.
The first thing we need to do is check a couple of PHP settings. The easiest way to do this is with a phpinfo file. If you don't know how to create a phpinfo file, you can
Now that you have a php info file, upload it to your website's public_html directory and view it in your browser by typing http://www.yoursite.com/phpinfo.php in your address bar. You want to find/verify the following in your phpinfo.php file:Your PHP version
Thread Safety is disabled
enable_dl is set to on
The path to your extension_dir
Path to your php.ini file
Now connect to your webserver using your favorite SSH client and login as root.
Create a new working directory then change directories:
mkdir ~/phpshield cd ~/phpshield
Download the phpSHIELD loaders:
wget http://phpshield.com/loaders/phpshield.loaders.linux.zip
or if you have a 64 bit OS (most people will have a 32 bit OS so you will most likely use the code above)
wget http://phpshield.com/loaders/phpshield.loaders.linux-64.zip
Extract the loaders:
unzip phpshield.loaders.linux.zip
If you do a directory list: ls
you will see a bunch of files named phpshield.4.3.lin to phpshield.5.2.lin
. What we want to do here is find the phpshield file with the number that matches your PHP version. You can find your PHP version at the very top of your phpinfo file from earlier.
Now we need to copy the appropriate phpshield loader file to your PHP extensions directory.
cp ~/phpshield/phpshield.x.x.lin /path/to/your/php/extensions/directory
Replace x.x above with your PHP version and use the path to your PHP extensions directory (you should have found this in step 2 above.)
Open your php.ini file
nano /path/to/php/ini/php.ini
You should have found the path to your php.ini file in your phpinfo.php file from earlier.
Append the following to the Dynamic Extensions section of your php.ini file:
extension=phpshield/phpshield.x.x.lin
Replace x.x with the number on the phpshield file you moved earlier.
Finally, restart httpd: /etc/rc.d/init.d/httpd restart
func setlocale(ru_RU.CP1251) php
func setlocale(ru_RU.CP1251)
localedef --no-archive -c -i ru_RU -f CP1251 ru_RU.cp1251
localedef --no-archive -c -i ru_RU -f CP1251 ru_RU.cp1251
Sunday, March 10, 2013
How to enable/Disable cPanel webmail interface for a user account or in server.
How to enable/Disable cPanel webmail interface for a user account or in server.
Customer wants to enable only the HORDE webmail interface for his domain and disable the rest. Usually there are three (3) webmail clients (horde, squirrel mail, roundcube). However, I was advised to make sure that a specific customer does not see more than one specified. I enabled “AUTOLOAD” option in the webmail interface but he is not satisfied. He came back asking to allow only HORDE interface for his webmail. How should i do that?
Solution: Consider my domain name is “hemanth.com” and my account name is “hemanth“. Now follow the steps below.
Customer wants to enable only the HORDE webmail interface for his domain and disable the rest. Usually there are three (3) webmail clients (horde, squirrel mail, roundcube). However, I was advised to make sure that a specific customer does not see more than one specified. I enabled “AUTOLOAD” option in the webmail interface but he is not satisfied. He came back asking to allow only HORDE interface for his webmail. How should i do that?
Solution: Consider my domain name is “hemanth.com” and my account name is “hemanth“. Now follow the steps below.
====================This option for that particular user account:
1) SSH to your server
2) Go to “cd /var/cpanel/users/”
3) vi hemanth
4) Paste the following lines
skiphorde=0
skipsqmail=1
skiprcmail=1
1) SSH to your server
2) Go to “cd /var/cpanel/users/”
3) vi hemanth
4) Paste the following lines
skiphorde=0
skipsqmail=1
skiprcmail=1
Note: The option 0 is enable and 1 is disable. in above line only HORDE is enabled in the webmail and Roundcube and squirrel is disabled.
5) Then restart the cpanel service
/etc/init.d/cpanel restart
/etc/init.d/cpanel restart
Now login to your webmail and check for the option.
This will change the server wide for all the domains in the server:
1) Login to your WHM
2) Go to “Server Configuration”
3) Click on “Tweak Settings”
4) Select mail option.
5) Turn off “Round Cube and Squirrel”
6) Save it.====================Redirections
http://your-domain.com:2095/3rdparty/roundcube/index.php
http://your-domain.com:2095/horde/login.php
1) Login to your WHM
2) Go to “Server Configuration”
3) Click on “Tweak Settings”
4) Select mail option.
5) Turn off “Round Cube and Squirrel”
6) Save it.====================Redirections
http://your-domain.com:2095/3rdparty/roundcube/index.php
http://your-domain.com:2095/horde/login.php
http://your-domain.com:2095/3rdparty/squirrelmail/src/login.php
Note: You must replace your-domain.com with your actual domain name in the above examples.
Php.ini using .htaccess
http://www.suphp.org/DocumentationView.html?file=apache/CONFIG
if you want to use "/path/to/server/config/php.ini", use
"suPHP_ConfigPath /path/to/server/config".
in .htaccess
if you want to use "/path/to/server/config/php.ini", use
"suPHP_ConfigPath /path/to/server/config".
in .htaccess
Saturday, March 9, 2013
Htop installation
Htop is an interactive and real time process monitoring application for Linux. It shows complete list of processes running and easy to use for normal tasks. We can interact with mouse those who love to play with mouse. You can scroll vertically to view the full process list, and scroll horizontally to view the full command line of the process.
Install Htop from source
Download the htop source from : http://sourceforge.net/projects/htop/
cd /usr/src/
wget http://downloads.sourceforge.net/project/htop/htop/0.8.3/htop-0.8.3.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fhtop%2F&ts=1283665168&use_mirror=cdnetworks-kr-2tar zxvf htop-0.8.3.tar.gz
cd htop-0.8.3
./configure
yum install ncurses-devel
make all
make install
Htop installation on 64bit centos version 6 RPM Package
wget http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/htop-0.9-1.el6.rf.x86_64.rpm
rpm -i htop-0.9-1.el6.rf.x86_64.rpm
Htop installation on 32bit centos version 6 RPM Package
Htop installation on 64bit centos RPM Package
and if your linux centos version is 64bit use this instead:
Htop Installation on 32bit Centos RPM Package
wget http://packages.sw.be/htop/htop-0.8.3-1.rh9.rf.i386.rpm
rpm -i htop-0.8.3-1.rh9.rf.i386.rpm
yum install htop*
How to Use htop
for using htop you can simply run htop command
also there are some other options for example the delay time that is -d
That the above will delay the refresh time to 2 seconds
To list only the specific user in the system try -u for exampe : htop -u apache (will list only the process run by the apache user)
Install Htop from source
Download the htop source from : http://sourceforge.net/projects/htop/
cd /usr/src/
wget http://downloads.sourceforge.net/project/htop/htop/0.8.3/htop-0.8.3.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fhtop%2F&ts=1283665168&use_mirror=cdnetworks-kr-2tar zxvf htop-0.8.3.tar.gz
cd htop-0.8.3
./configure
yum install ncurses-devel
make all
make install
Htop installation on 64bit centos version 6 RPM Package
wget http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/htop-0.9-1.el6.rf.x86_64.rpm
rpm -i htop-0.9-1.el6.rf.x86_64.rpm
Htop installation on 32bit centos version 6 RPM Package
wget http://apt.sw.be/redhat/el6/en/i386/rpmforge/RPMS/htop-0.9-1.el6.rf.i686.rpm
rpm -i htop-0.9-1.el6.rf.i686.rpm
rpm -i htop-0.9-1.el6.rf.i686.rpm
Htop installation on 64bit centos RPM Package
and if your linux centos version is 64bit use this instead:
wget http://packages.sw.be/htop/htop-0.8.3-1.el5.rf.x86_64.rpm
rpm -i htop-0.8.3-1.el5.rf.x86_64.rpm
rpm -i htop-0.8.3-1.el5.rf.x86_64.rpm
Htop Installation on 32bit Centos RPM Package
wget http://packages.sw.be/htop/htop-0.8.3-1.rh9.rf.i386.rpm
rpm -i htop-0.8.3-1.rh9.rf.i386.rpm
yum install htop*
How to Use htop
for using htop you can simply run htop command
htop
also there are some other options for example the delay time that is -d
htop -d 2
That the above will delay the refresh time to 2 seconds
To list only the specific user in the system try -u for exampe : htop -u apache (will list only the process run by the apache user)
Wednesday, March 6, 2013
MailMon installtion
cd /usr/src/
wget http://www.mycutelife.net/sanju/newt...mon_1-3.tar.gz
tar -xvzf mailmon_1-3.tar.gz
cd /usr/src/MailMon
cp -f /usr/sbin/sendmail /usr/sbin/mon.bkp
wget http://www.mycutelife.net/sanju/newt...on/mailmon.new
sed -e s/opteron.dnsprotect.com/$hostname/g mailmon.new > mailmon.temp;
cp -f mailmon.temp /usr/sbin/sendmail
cd /usr/sbin
chown root.mailtrap sendmail
chmod 755 sendmail
chattr +i sendmail
cd /var/log
touch mailmon.log
chmod 622 mailmon.log
touch mailmon.junk
chmod 622 mailmon.junk
mysql
mysql>create database mailmon2005;
mysql>grant all privileges on mailmon2005.* to mailmon2005@localhost identified by '123dsa';
mysql>use mailmon2005;
CREATE TABLE `limits` (
`id` int(11) NOT NULL auto_increment,
`user` varchar(20) NOT NULL default '',
`speedlimit` int(11) NOT NULL default '0',
`seconds` int(11) NOT NULL default '0',
PRIMARY KEY (`id`)
) TYPE=MyISAM AUTO_INCREMENT=6 ;
INSERT INTO `limits` VALUES (6, 'cpanel', 200, 3600);
CREATE TABLE `mailmon` (
`user` varchar(20) NOT NULL default '',
`timestamp` int(10) unsigned NOT NULL default '0',
`script_name` varchar(255) NOT NULL default '',
KEY `user` (`user`,`timestamp`)
) TYPE=MyISAM;
mysql> quit;
wget http://www.mycutelife.net/sanju/newt...mon_1-3.tar.gz
tar -xvzf mailmon_1-3.tar.gz
cd /usr/src/MailMon
cp -f /usr/sbin/sendmail /usr/sbin/mon.bkp
wget http://www.mycutelife.net/sanju/newt...on/mailmon.new
sed -e s/opteron.dnsprotect.com/$hostname/g mailmon.new > mailmon.temp;
cp -f mailmon.temp /usr/sbin/sendmail
cd /usr/sbin
chown root.mailtrap sendmail
chmod 755 sendmail
chattr +i sendmail
cd /var/log
touch mailmon.log
chmod 622 mailmon.log
touch mailmon.junk
chmod 622 mailmon.junk
mysql
mysql>create database mailmon2005;
mysql>grant all privileges on mailmon2005.* to mailmon2005@localhost identified by '123dsa';
mysql>use mailmon2005;
CREATE TABLE `limits` (
`id` int(11) NOT NULL auto_increment,
`user` varchar(20) NOT NULL default '',
`speedlimit` int(11) NOT NULL default '0',
`seconds` int(11) NOT NULL default '0',
PRIMARY KEY (`id`)
) TYPE=MyISAM AUTO_INCREMENT=6 ;
INSERT INTO `limits` VALUES (6, 'cpanel', 200, 3600);
CREATE TABLE `mailmon` (
`user` varchar(20) NOT NULL default '',
`timestamp` int(10) unsigned NOT NULL default '0',
`script_name` varchar(255) NOT NULL default '',
KEY `user` (`user`,`timestamp`)
) TYPE=MyISAM;
mysql> quit;
Subscribe to:
Posts (Atom)