Cannot log in to Parallels Plesk Panel web interface: "saved admin password is incorrect"

var bdv_ref_pid=562243;var bdv_ref_type=’i’;var bdv_ref_option=’a’;var bdv_ref_eb=’1′;var bdv_ref_gif_id=’ref_728x90_green_ebay’;var bdv_ref_width=728;var bdv_ref_height=90;toolbar creator

Error ::-
If you cannot log in to Parallels Plesk Panel (PP) and getting following error is displayed instead of the login screen:
———————
ERROR: PleskFatalException
Unable to connect to database: saved admin password is incorrect.

0: common_func.php3:93
    psaerror(string ‘Unable to connect to database: saved admin password is incorrect.’)
1: auth.php3:127
———————

Solution ::-
The password in the file /etc/psa/.psa.shadow used to access the Plesk Panel database does not match your admin password. Simply reset your PP admin password using

ch_admin_passwd utility
———————
# export PSA_PASSWORD=<NEW_PASSWORD>
# /usr/local/psa/admin/bin/ch_admin_passwd
———————

If the above solution does not solve your issue, then please follow below steps to reset the “/etc/psa/.psa.shadow” password:

1. Modify the MySQL server settings in the file /etc/my.cnf and add the skip-grant-tables option in the [mysqld] section:
———————
[mysqld]
skip-grant-tables

———————

2. Restart the MySQL server:
———————
# /etc/init.d/mysqld restart
———————

3. Add new password to the “/etc/psa/.psa.shadow” file.

4. Reset the password in the service table of the MySQL server:
———————
# /usr/bin/mysql -D mysql -e”update user set password=PASSWORD(‘`cat /etc/psa/.psa.shadow`’) where User=’admin’;”
———————

5. Delete the skip-grant-tables option from the /etc/my.cnf file.

6. Restart the MYSQL server:
———————
# /etc/init.d/mysqld restart
———————

That’s All.…..!!!!!!

toolbar creator ( function() { if (window.CHITIKA === undefined) { window.CHITIKA = { ‘units’ : [] }; }; var unit = { ‘publisher’ : “deepaksonawane”, ‘width’ : 728, ‘height’ : 90, ‘type’ : “mpu”, ‘sid’ : “Chitika Default”, ‘color_site_link’ : “0000CC”, ‘color_title’ : “0000CC”, ‘color_border’ : “FFFFFF”, ‘color_text’ : “000000”, ‘color_bg’ : “FFFFFF” }; var placement_id = window.CHITIKA.units.length; window.CHITIKA.units.push(unit); document.write(‘

‘); var s = document.createElement(‘script’); s.type = ‘text/javascript’; s.src = ‘http://scripts.chitika.net/getads.js&#8217;; try { document.getElementsByTagName(‘head’)[0].appendChild(s); } catch(e) { document.write(s.outerHTML); } }());

Crontab script for Spamassassin update fails with the error: unexpected operator.

var bdv_ref_pid=562243;var bdv_ref_type=’i’;var bdv_ref_option=’a’;var bdv_ref_eb=’1′;var bdv_ref_gif_id=’ref_728x90_green_ebay’;var bdv_ref_width=728;var bdv_ref_height=90;toolbar creator

Error ::-
If you have set any any crontab on your plesk server and getting email related to cron as below:
———————
Parallels Plesk Panel sends mail with the following error:

“Cron <root@$hostname> test -x /usr/sbin/dvscron || ( cd / && run-parts –report
/etc/cron.daily ) (failed)”

“/etc/cron.daily/dvs-update:
[: 9: 1: unexpected operator
[: 14: 1: unexpected operator
run-parts: /etc/cron.daily/dvs-update exited with return code 1″
———————

Solution ::-
On Debian, /bin/sh is a symlink to “dash.” :
———————
# ls -la /bin/sh

lrwxrwxrwx 1 root root 4 2010-06-14 06:06 /bin/sh -> dash
———————

The script can fail to execute if it contains #!/bin/sh

To fix this error, update the file /etc/cron.daily/dvs-update
———————
#!/bin/sh

Replace to

#!/bin/bash
———————
The script for the Spam-assassin update should then be able to execute without error.

That’s All……!!!!!!

toolbar creator ( function() { if (window.CHITIKA === undefined) { window.CHITIKA = { ‘units’ : [] }; }; var unit = { ‘publisher’ : “deepaksonawane”, ‘width’ : 728, ‘height’ : 90, ‘type’ : “mpu”, ‘sid’ : “Chitika Default”, ‘color_site_link’ : “0000CC”, ‘color_title’ : “0000CC”, ‘color_border’ : “FFFFFF”, ‘color_text’ : “000000”, ‘color_bg’ : “FFFFFF” }; var placement_id = window.CHITIKA.units.length; window.CHITIKA.units.push(unit); document.write(‘

‘); var s = document.createElement(‘script’); s.type = ‘text/javascript’; s.src = ‘http://scripts.chitika.net/getads.js&#8217;; try { document.getElementsByTagName(‘head’)[0].appendChild(s); } catch(e) { document.write(s.outerHTML); } }());

How to reset default permissions in virtual host directory.

var bdv_ref_pid=562243;var bdv_ref_type=’i’;var bdv_ref_option=’a’;var bdv_ref_eb=’1′;var bdv_ref_gif_id=’ref_728x90_green_ebay’;var bdv_ref_width=728;var bdv_ref_height=90;toolbar creator

Error ::-
The Some files and directories under the domain have lost their permissions. Several are owned by the Apache users “apache” or “root.” as below:
———————
drwx——  7 apache  apache 4096  Aug 11 20:07 httpsdocs
drwx——  2 root    psaserv 4096 Aug 09 12:56 pd
drwx——  2 root    root    4096 Aug 12 20:07 private
dr-x——  7 root    psaserv 4096 Aug 12 20:07 statistics

———————
Also, get the errors “Permission denied” or “Access denied” when I try to upload files via File Manager or an FTP client.

Solution ::-
Please use the utility “vhostmng” to reset permissions. Here is the command:
For Parallels Plesk Panel 9.x:
———————
# /usr/local/psa/admin/sbin/vhostmng –install-vhost –vhost-name=<domain name> –user-name=<username> –set-content-permissions
———————

For Parallels Plesk Panel 10.0-10.3 (in version 10.4 this functionality has been redesigned this solution is not applicable):
———————
# /usr/local/psa/admin/sbin/vhostmng –install-vhost –vhost-name=<domain name> –user-name=<username> –www-root=/var/www/vhosts/<domain name>/httpdocs –cgi-bin-path=/var/www/vhosts/<domain name>/cgi-bin –set-content-permissions
———————
Please check after complete the above process, I hope it should be working for you.

That’s All.…..!!!!!!

toolbar creator ( function() { if (window.CHITIKA === undefined) { window.CHITIKA = { ‘units’ : [] }; }; var unit = { ‘publisher’ : “deepaksonawane”, ‘width’ : 728, ‘height’ : 90, ‘type’ : “mpu”, ‘sid’ : “Chitika Default”, ‘color_site_link’ : “0000CC”, ‘color_title’ : “0000CC”, ‘color_border’ : “FFFFFF”, ‘color_text’ : “000000”, ‘color_bg’ : “FFFFFF” }; var placement_id = window.CHITIKA.units.length; window.CHITIKA.units.push(unit); document.write(‘

‘); var s = document.createElement(‘script’); s.type = ‘text/javascript’; s.src = ‘http://scripts.chitika.net/getads.js&#8217;; try { document.getElementsByTagName(‘head’)[0].appendChild(s); } catch(e) { document.write(s.outerHTML); } }());

How to reset Virtual Host Permissions in Parallels Plesk Panel 11

var bdv_ref_pid=562243;var bdv_ref_type=’i’;var bdv_ref_option=’a’;var bdv_ref_eb=’1′;var bdv_ref_gif_id=’ref_728x90_green_ebay’;var bdv_ref_width=728;var bdv_ref_height=90;toolbar creator

Solution ::-
If you want to fix broken ownerships and permissions for directories and files of a domain in Parallels Plesk Panel (PP) 11.
Run the below commands with superuser privileges to download the archived shell script. Unzip it and execute it, providing the needed domain name as an argument:
———————
# wget http://kb.parallels.com/Attachments/23464/Attachments/recover_plesk_directories.zip

# unzip recover_plesk_directories.zip

# sh recover_plesk_directories.sh example.com
———————
The Script uses internal utility dirmng and set of predefined rules to reset permissions and ownerships on core elements of virtual host directory to their default values. It is not a complete solution for file permissions and ownership issues, but addresses a set of common problems and might be useful.

That’s All.…..!!!!!!

toolbar creator ( function() { if (window.CHITIKA === undefined) { window.CHITIKA = { ‘units’ : [] }; }; var unit = { ‘publisher’ : “deepaksonawane”, ‘width’ : 728, ‘height’ : 90, ‘type’ : “mpu”, ‘sid’ : “Chitika Default”, ‘color_site_link’ : “0000CC”, ‘color_title’ : “0000CC”, ‘color_border’ : “FFFFFF”, ‘color_text’ : “000000”, ‘color_bg’ : “FFFFFF” }; var placement_id = window.CHITIKA.units.length; window.CHITIKA.units.push(unit); document.write(‘

‘); var s = document.createElement(‘script’); s.type = ‘text/javascript’; s.src = ‘http://scripts.chitika.net/getads.js&#8217;; try { document.getElementsByTagName(‘head’)[0].appendChild(s); } catch(e) { document.write(s.outerHTML); } }());

How to update the dns zone file with databse in plesk.

var bdv_ref_pid=562243;var bdv_ref_type=’i’;var bdv_ref_option=’a’;var bdv_ref_eb=’1′;var bdv_ref_gif_id=’ref_728x90_green_ebay’;var bdv_ref_width=728;var bdv_ref_height=90;toolbar creator

Solution::-
If you are making any changes on server related to dns and mysql of any domain and it’s unable to load then please try to update these settings on server with below commands:
———————
# /usr/local/psa/admin/bin/dnsmng update example.com
———————

Also, You can do it for all your domains, by trying this nifty little shortcut:
———————
# mysql -Ns -uadmin -p`cat /etc/psa/.psa.shadow` -D psa -e ‘select name from domains’ | awk ‘{print “/usr/local/psa/admin/sbin/dnsmng update ” $1 }’ | sh
———————
Please check the DNS setting after done the above process.

That’s All……!!!!!!

toolbar creator ( function() { if (window.CHITIKA === undefined) { window.CHITIKA = { ‘units’ : [] }; }; var unit = { ‘publisher’ : “deepaksonawane”, ‘width’ : 728, ‘height’ : 90, ‘type’ : “mpu”, ‘sid’ : “Chitika Default”, ‘color_site_link’ : “0000CC”, ‘color_title’ : “0000CC”, ‘color_border’ : “FFFFFF”, ‘color_text’ : “000000”, ‘color_bg’ : “FFFFFF” }; var placement_id = window.CHITIKA.units.length; window.CHITIKA.units.push(unit); document.write(‘

‘); var s = document.createElement(‘script’); s.type = ‘text/javascript’; s.src = ‘http://scripts.chitika.net/getads.js&#8217;; try { document.getElementsByTagName(‘head’)[0].appendChild(s); } catch(e) { document.write(s.outerHTML); } }());

Nginx does not start after IP change.

var bdv_ref_pid=562243;var bdv_ref_type=’i’;var bdv_ref_option=’a’;var bdv_ref_eb=’1′;var bdv_ref_gif_id=’ref_728x90_green_ebay’;var bdv_ref_width=728;var bdv_ref_height=90;toolbar creator

Error ::-
If you are getting the Nginx error in plesk 11.X.X control panel of linux server. Nginx does not start after an IP change. You can see the following error message:

———————-

# /etc/init.d/nginx restart
nginx: [emerg] bind() to 10.10.10.100:80 failed (99: Cannot assign requested address)
nginx: configuration file /etc/nginx/nginx.conf test failed

———————-

Solution ::-
The problem is caused by the fact that after changed an IP of Nginx configs are not automatically regenerated for the new IP. You need to reconfigure and update the proper settings on server with using the below command:

———————-

# /usr/local/psa/bin/reconfigurator –autoconfigure

# /usr/local/psa/admin/sbin/httpdmng –reconfigure-all

# /etc/init.d/nginx restart

———————
After complete the above process, I hope it should be working for you.

That’s All……!!!!!!

toolbar creator ( function() { if (window.CHITIKA === undefined) { window.CHITIKA = { ‘units’ : [] }; }; var unit = { ‘publisher’ : “deepaksonawane”, ‘width’ : 728, ‘height’ : 90, ‘type’ : “mpu”, ‘sid’ : “Chitika Default”, ‘color_site_link’ : “0000CC”, ‘color_title’ : “0000CC”, ‘color_border’ : “FFFFFF”, ‘color_text’ : “000000”, ‘color_bg’ : “FFFFFF” }; var placement_id = window.CHITIKA.units.length; window.CHITIKA.units.push(unit); document.write(‘

‘); var s = document.createElement(‘script’); s.type = ‘text/javascript’; s.src = ‘http://scripts.chitika.net/getads.js&#8217;; try { document.getElementsByTagName(‘head’)[0].appendChild(s); } catch(e) { document.write(s.outerHTML); } }());