Sometimes the Horde ends up with 404 errors while accessing via cPanel webmail. Here is the fix for that:
First of all please run the below command to know if there is any difference.
It may show the following error.
Horde 404 error + Fatal Error: Could not instantiate PDO with DSN “mysql:persistent=1; port=3306;protocol=tcp;ssl=1;host=127.0.0.1;dbname=horde”. PDOException: SQLSTATE[HY000]  Can’t connect to MySQL server on ’127.0.0.1′ (111) In /usr/local/cpanel/3rdparty/php/54/lib/php/Horde/Db/Adapter/Pdo/Base.php on line 46
Make sure that the Horde user password is correct. The password can be found in the file /usr/local/cpanel/base/horde/config/conf.php
Open the file and check the following fields.
$conf['sql']['username'] = 'horde'; $conf['sql']['password'] = 'PASSWORD'; $conf['sql']['hostspec'] = 'localhost'; $conf['sql']['port'] = 3306;
Check the password by using the following command.
root@server [~]# mysql -u horde -p Enter password:
Reset the password if the password is wrong and run [highlight color=”green”]/usr/local/cpanel/bin/update_horde_config[/highlight]
root@server [~]# mysql mysql> use mysql; mysql> update user set password=PASSWORD("newpassword") where User='horde'; mysql> flush privileges; mysql> quit root@vps [~]# /etc/init.d/mysql stop root@vps [~]# /etc/init.d/mysql start
If the password is correct check the file /usr/local/cpanel/3rdparty/php/54/lib/php/Horde/Db/Adapter/Pdo/Mysql.php and change the following.
$this->_config['host'] = '127.0.0.1'; to $this->_config['host'] = 'localhost';
And run /usr/local/cpanel/bin/update_horde_config . That’s it!
If you like the post and wish to receive more articles from us, please like our FB page: If you like this post and wish to receive more articles from us, please like our FB page: Button
Your suggestions and feedbacks will encourage us and help to improve further, please feel free to write your comments.
For more details on our services, please drop us an E-mail at firstname.lastname@example.org