• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Horde

D

demonicnewbie

Guest
When trying to access webmail the login screen comes up. I put the email address in and the password but then it goes to the next screen displaying the following error:


A fatal error has occurred:

DB Error: connect failed

[line 108 of /home/httpd/vhosts/webmail/horde/lib/Prefs/sql.php]

Details have been logged for the administrator.


Don't really have a clue what this means. Squirrelmail works okay but I'd rather use horde but this has got me stumped. Everthing else in plesk seems fine.

I use mysql 4.1.10 could this be the problem? Anyway around it if so?

Thanks
 
/* Connect to the SQL server using the supplied parameters. */
include_once 'DB.php';
$this->db = &DB::connect($this->params, true);
if (DB::isError($this->db)) {
Horde::fatal($this->db, __FILE__, __LINE__);
}

# webmail/horde/config/prefs.php (line 172)

// get password from WEBMAIL_PASSWORD_FILE
if (!($fd = fopen("/etc/psa/.webmail.shadow", "r"))) {
echo "<script>alert('Unable to get webmail password!')</script>";
exit();
}

Make sure you can login to the database using the "horde" user, and the password listed in /etc/psa/.webmail.shadow ... if you can, I dont know. If you can't, you've found the problem.
 
Originally posted by demonicnewbie

A fatal error has occurred:

DB Error: connect failed

[line 108 of /home/httpd/vhosts/webmail/horde/lib/Prefs/sql.php]

Details have been logged for the administrator.

Quick n dirty

root@have [~]# mysqlshow |grep horde
root@have [~]#

Hum no db could be the problem

root@have [~]# mysqladmin create horde
root@have [~]# mysqlshow |grep horde
| horde |

Much better, but it's empty.
You'll need to get the Mysql admin password from /etc/psa/.psa.shadow, then login and do this:

mysql> use mysql
Database changed
mysql> show tables;
+-----------------+
| Tables_in_mysql |
+-----------------+
| columns_priv |
| db |
| func |
| host |
| tables_priv |
| user |
+-----------------+
6 rows in set (0.00 sec)

mysql> select * from user;


This should give you the password for the horde user. This is going to go into /home/httpd/vhosts/webmail/horde/passwd/config/backends.php but you've got to chmod 644 backends.php first.
then VI the file, and it goes between the ' ' for password in this entry.
),
'driver' => 'sql',
'params' => array(
'phptype' => 'mysql',
'hostspec' => 'localhost',
'username' => 'horde',
'password' => '',
'encryption' => 'md5-hex',
'database' => 'horde',
'table' => 'horde_users',
'user_col' => 'user_uid',
'pass_col' => 'user_pass'

Set the file back to 444 and you're done.
 
I had the same error appear on a server after it upgraded to 7.5.3. The problem was that the mysql user table gained an additional record for the horde user. One had the % host for all hosts, the username horde and the Plesk-generated password, the second record which the 7.5.3 upgraded added had the host set to localhost, user set to horde and a blank password. Removing the new addition and flushing privileges got webmail working again.

David
 
Back
Top