{"id":258,"date":"2009-10-31T14:31:13","date_gmt":"2009-10-31T18:31:13","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=258"},"modified":"2013-03-20T08:41:10","modified_gmt":"2013-03-20T12:41:10","slug":"plesk-webmail-db-error-connect-failed","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/plesk-webmail-db-error-connect-failed","title":{"rendered":"Plesk webmail + DB Error: connect failed"},"content":{"rendered":"<p>You may receive the following <strong>error message while accessing Webmail on a Plesk server:<\/strong><\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>A fatal error has occurred<br \/>\nDB Error: connect failed<\/strong><\/span><\/p><\/blockquote>\n<p>You need to <strong>make sure the &#8216;horde&#8217; user is able to connect to the &#8216;horde&#8217; database<\/strong> using the <strong>password mentioned in the file &#8220;\/etc\/psa\/.webmail.shadow&#8221;.<\/strong> You have to create the file and specify a random password if the file is missing.<\/p>\n<p><strong>To set the password for user &#8216;horde&#8217; , go to the mysql prompt.<\/strong><\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>#<\/strong><strong>mysql -uadmin -p`cat \/etc\/psa\/.psa.shadow` mysql<\/strong><\/span><\/p><\/blockquote>\n<p>On the mysql prompt, execute:<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>mysql&gt; update user set password=password(password-from-.webmail.shadow) where user=&#8217;horde&#8217;;<\/strong><\/span><\/p><\/blockquote>\n<p>Also make sure <strong>sql.safe_mode is set to off in \/etc\/php.ini file<\/strong>:<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>sql.safe_mode=Off<\/strong><\/span><\/p><\/blockquote>\n<p>Restart Apache server once you save the file.<\/p>\n<p><strong>If the problem persists, use the password from &#8220;\/etc\/psa\/webmail\/horde\/.horde.shadow&#8221; file.<\/strong> Go through the following steps:<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>#cp <strong>\/etc\/psa\/webmail\/horde\/.horde.shadow <\/strong><strong>\/etc\/psa\/.webmail.shadow<\/strong><\/strong><\/span><\/p><\/blockquote>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>#<\/strong><strong>mysql -uadmin -p`cat \/etc\/psa\/.psa.shadow` mysql<\/strong><\/span><\/p>\n<p><span style=\"color: #0000ff;\"><strong>mysql&gt; update user set password=password(password-from-<\/strong><\/span><span style=\"color: #0000ff;\"><strong>\/etc\/psa\/webmail\/horde\/.horde.shadow<\/strong><\/span><span style=\"color: #0000ff;\"><strong>) where user=&#8217;horde&#8217;;<\/strong><\/span><\/p><\/blockquote>\n<p>You should now be able to access Webmail client.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You may receive the following error message while accessing Webmail on a Plesk server:<br \/>\nA fatal error has occurred<br \/>\nDB Error: connect failed<br \/>\nYou need to make sure the &#8216;horde&#8217; user is able to connect to the &#8216;horde&#8217; database using the password mentioned in the file &#8220;\/etc\/psa\/.webmail.shadow&#8221;. You have to create the file and specify a random password if the file is missing.<br \/>\nTo set the password for user &#8216;horde&#8217; , go to the mysql prompt.<br \/>\n#mysql -uadmin -p`cat \/etc\/psa\/.psa.shadow` mysql<br \/>\nOn the mysql prompt, execute:<br \/>\nmysql&gt; update user set password=password(password-from-.webmail.shadow) where user=&#8217;horde&#8217;;<br \/>\nAlso make sure [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[318,319,322,317,321,320,323],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/258"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=258"}],"version-history":[{"count":6,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/258\/revisions"}],"predecessor-version":[{"id":261,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/258\/revisions\/261"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=258"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}