Jan
24

Recovering Parallels Plesk panel password

For security purpose Pleas Control Panel have different password set then the server root password.

 

Following are the steps to recover Plesk Control Panel Password.

1. SSH to the server as root user.

2. For Plesk version 10.1 and below, you can use following command to check/retrieve password.

cat /etc/psa/.psa.shadow

 
This file contains your admin Parallels Plesk Panel password
Parallels Plesk Panel 10.2, however, encrypts this file. To view the encrypted file, use the following command:
 

/usr/local/psa/bin/admin – -show-password

 

 


contact@webhostingsupport.info

Post to Twitter

Sep
03


Error logging to cPanel

Error after logging to cPanel:

can’t create /home/username/.cpanel/datastore/all_iplist.db: No such file or directory at /usr/local/cpanel/Cpanel/DIp/MainIP.pm line 198

Carp::croak(‘can\’t create /home/username/.cpanel/datastore/all_iplist.db: No …’) called at /usr/lib/perl5/site_perl/5.6.2/i686-linux/Storable.pm line 76
Storable::logcroak(‘can\’t create /home/username/.cpanel/datastore/all_iplist.db: No …’) called at /usr/lib/perl5/site_perl/5.6.2/i686-linux/Storable.pm line 258
Storable::_store(‘CODE(0xa7ad524)’, ‘ARRAY(0xb7a2188)’, ‘/home/username/.cpanel/datastore/all_iplist.db’, 0) called at /usr/lib/perl5/site_perl/5.6.2/i686-linux/Storable.pm line 218
Storable::nstore(‘ARRAY(0xb7a2188)’, ‘/home/username/.cpanel/datastore/all_iplist.db’) called at /usr/local/cpanel/Cpanel/DIp/MainIP.pm line 198
Cpanel:Ip::MainIP::getconfiguredips() called at /usr/local/cpanel/Cpanel/DIp/MainIP.pm line 39
Cpanel:Ip::MainIP::getmainip() called at /usr/local/cpanel/Cpanel/DIp.pm line 38
Cpanel:Ip::isdedicatedip(serverip) called at /usr/local/cpanel/Cpanel/ExpVar.pm line 398
Cpanel::ExpVar::hasdedicatedip() called at /usr/local/cpanel/Cpanel/ExpVar.pm line 277
Cpanel::ExpVar::expvar(‘$hasdedicatedip’) called at cpanel line 1443
main::execiftag(”) called at cpanel line 4043
main::dotag_finished_headers(”, 0) called at cpanel line 3898
main::cpanel_parseblock(‘^J…’) called at cpanel line 3842
main::cpanel_parse(‘GLOB(0xa7d9698)’) called at cpanel line 5331
main::run_standard_mode() called at cpanel line 387

If you get above error after logged into cPanel, then do not panic there is a simple fix for this error.
If you have root access to server then check cPanel logs at

tail -f /usr/local/cpanel/logs/error_log | grep cPanel-username

Note: Replace your actual cpanel user name with cPanel-username and try accessing cPanel which will generate error logs for cPanel.

Logs will show you that you have exceeded your allowed disk quota for domain.

Now you will need to delete unwanted file from your account or increase disk quota for domain which will fix the issue.


contact@webhostingsupport.info

Post to Twitter

Jul
14


backup database with cron

If you whis to backup Mysql database daily then you can use cpanel cron featur to setup a cron

Use following cron.

0    0    *      *      0   mysqldump –u database_user –pdatabases-password database_name > database_name-`date “+%Y-%m-%d”`.sql


contact@webhostingsupport.info

Post to Twitter

May
13


Reset forgotten root password

Have you forgotten Linux root password ? Don’t have access to ssh ?

You can reset root password of system by rebooting the system into single user mode.

1) Once you boot machine you will see GRUB boot loader, her you will need to select kernel from which you wish to boot the system. Use the arrow key to select the kernel.

2) Press alphabetic key e to edit the entry.

3) Select second line which should be starting with word kernel

4) Now again press Key e so that you can append to single user mode.

5)Now go to the end of line give one space bar and type letter s press enter.

6) Press key b to boot the system kernel in single user mode.

7) Now you will see shell prompt. At the prompt type passwd command to reset password. You will need to type the password once system prompts you for New UNIX password:

Eg:

# passwd

New UNIX password:

8) Now execute command reboot to reboot the system.

# reboot


contact@webhostingsupport.info

Post to Twitter

Jan
22

mysql :Got error: 1016: Can’t open file: … (errno: 24) when using LOCK TABLES

 

Sometimes, when you have got a large number of tables in your database and while taking the dump of that particular database, you would have encountered this strange error.

 mysqldump: Got error: 1016: Can’t open file: ‘.\database\certain_table.frm’ (errno: 24) when using LOCK TABLES

 

There are two solutions for this problem.

1) Set the following value to some higher number in your my.cnf file.

open-files-limit=20000

2) or, While taking the mysql dump, use –lock-tables=false option.

mysqldump –lock-tables=false -u root -p db-with-lots-of-tables  >  databasename.sql


contact@webhostingsupport.info

Post to Twitter

Jan
16

Access tomcat Admin area

Accessing Tomcat Admin area:

http://server-ip-address:8080/admin/

You may receive a message:

Tomcat’s administration web application is no longer installed by default.
Download and install the “admin” package to use it.

 

This is because, by default admin section of tomcat is not enable.

To enable Admin section, you can refer to following steps.

%TOMCAT_FOLDER%/conf/tomcat-users.xml” manually.

If you have a cPanel server then you will find the file

/usr/local/jakarta/tomcat/conf/tomcat-users.xml

Before editing the file:

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<!--
  <role rolename="tomcat"/>
  <role rolename="role1"/>
  <user username="tomcat" password="tomcat" roles="tomcat"/>
  <user username="both" password="tomcat" roles="tomcat,role1"/>
  <user username="role1" password="tomcat" roles="role1"/>
-->
</tomcat-users>

 

After editing file:

 

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<!--
  <role rolename="tomcat"/>
  <role rolename="role1"/>
  <user username="tomcat" password="tomcat" roles="tomcat"/>
  <user username="both" password="tomcat" roles="tomcat,role1"/>
  <user username="role1" password="tomcat" roles="role1"/>
-->
  <role rolename="manager"/>
  <role rolename="admin"/>
  <user username="admin" password="admin" roles="admin,manager"/>
</tomcat-users>
To enable admin access, just update the content like above.
Saved it and restart Tomcat, now you can access Tomcat admin or manger pages
with user = “admin” and password = “admin“.

contact@webhostingsupport.info

Post to Twitter

Jan
16

Change timezone on dedicated server

Change timezone on CentOS

If you have CentOS/RHEL Server then you can fallow following steps:

1) SSH the server as root.

All Time zone configuration files are located under directory /usr/share/zoneinfo/

Example: Say your current server time is in GMT Format and you want to change it to IST time.

cp /usr/share/zoneinfo/Asia/Calcutta     /etc/localtime

Thats all

 


contact@webhostingsupport.info

Post to Twitter

Jan
12

export.php was not found while backing up databases through phpmyadmin

export.php was not found while backing up databases through phpmyadmin

 

This error is mainly caused when database size is more and you are trying to backup it up using phpmyadmin.

https://xx.xx.xx.xx:8443/domains/databases/phpMyAdmin/export.php.

FIX:

 

Increase memory_limit in /usr/local/psa/admin/conf/php.ini to higher value and restart
Plesk Control Panel after that.

Ideally 512M of memory_limit should fix the issue.


contact@webhostingsupport.info

Post to Twitter

Older posts «