While trying to browse webmail using webmail.domainname.com it shows following error:
Warning: main(PEAR.php) [function.main]: failed to open stream: No such file or directory in D:\I
netpub\vhosts\webmail\horde\lib\core.php on line 26
Warning: main() [function.include]: Failed opening 'PEAR.php' for inclusion (include_path='D:\Ine
tpub\vhosts\webmail\horde\lib
;.;./includes;./pear') in D:\Inetpub\vhosts\webmail\horde\lib\core.php on line 26
Open core.php file of horde: C:\Inetpub\vhosts\webmail\horde\lib\webmail\horde\lib\core.php
change this:
ini_set('include_path', dirname(__FILE__) . PATH_SEPARATOR . ini_get('include_path'));
To:
ini_set('include_path', 'C:/Inetpub/vhosts/webmail/horde/lib' . PATH_SEPARATOR . 'C:/Inetpub/vhosts/webmail' . PATH_SEPARATOR . 'C:/Inetpub/vhosts/webmail/horde/pear' .PATH_SEPARATOR . ini_get('include_path'));
Error in Horde(Webmail)
Wednesday, November 7, 2007
Posted in: Horde | 2 Comments | Email This
The password changing option in horde webmail is not working
When a user uses the "Password" button/icon in webmail, it shows them just the first part of thei
r username instead of the full emailid@domainName address as their username. So, changing their p
assword doesn't work.
Edit the file /etc/psa-horde/passwd/conf.php. This path /etc/psa-horde will change according to t
he plesk horde setting.
Find the line that says:
$conf['hooks']['default_username'] = false;
Modfiy the code line to
$conf['hooks']['default_username'] = true;
Now, create a new file hooks.php
like /etc/psa-horde/horde/hooks.php (the path /etc/psa-horde will change according to the situati
on)
In this file, paste the following:
/**
* Horde Hooks configuration file.
**/
if (!function_exists('_passwd_hook_default_username')) {
function _passwd_hook_default_username($userid)
{
return $userid;
}
}
/** DO NOT PLACE A ?> AT THE END OF THIS FILE **/
Most probably, you can find the file hook.php in the corresponding path with the above code comme
nted. Uncomment the line.
Now users can use the Password button in Webmail, and it will work correctly.
Posted in: Horde | 0 Comments | Email This
A fatal error has occurred Could not connect to database for SQL SessionHandler
Horde "A fatal error has occurred Could not connect to database for SQL SessionHandler. Details h
ave been logged for the administrator"
ERROR: (CPanel server) A fatal error has occurred Could not connect to database for SQL SessionHa
ndler. Details have been logged for the administrator.
1. Check the file /usr/local/cpanel/base/horde/config/conf.php
2. You can find the following entry in the conf.php
$conf['sql']['hostspec'] = 'localhost';
$conf['sql']['username'] = 'horde';
$conf['sql']['password'] = '
$conf['sql']['protocol'] = 'tcp';
$conf['sql']['database'] = 'horde';
4. Try to connect the database horde using the following method
#mysql -uhorde -p
You should obtain the "ERROR 1045 (28000): Access denied for user
'horde'@'localhost' (using password: YES)"
5. grant the privilege to the database using the mysql
mysql> grant all privileges on horde.* to horde@localhost identified by
'
You can now login into the Horde Webmail now.
Posted in: Horde | 0 Comments | Email This
Unable to send mail using the horde webmail
The error message will look like this:
Check the log message of horde (psa-horde.log). This will be dependant according to the horde set
ting. Here it is /var/log/psa-horde/psa-horde.log :
HORDE [error] [imp] Failed to connect to localhost:25 [SMTP: Failed to connect socket: (code: -1
, response: )] [on line 1070 of "/usr/share/psa-horde/imp/compose.php"]
Check whether the "telnet localhost 25" is connecting in server.
If not then do the following:
cd /etc/xinetd.d/
ln -s smtp_psa smtp
/etc/init.d/xinetd restart
It is doesn't fix, then check the /etc/hosts. Check whether "localhost" is preset in it:
#127.0.0.1 www.NAME www
127.0.0.1 localhost www.NAME
Posted in: Horde | 0 Comments | Email This
Horde fsockopen error
The error message will look like this:
Warning: fsockopen(): php_hostconnect: connect failed in /usr/share/psa-horde/pear/Net/Socket.php on line 108 Warning: fsockopen(): unable to connect to 127.0.0.1:25 in /usr/share/psa-horde/pear/Net/Socket.php on line 108
Solution:
Check whether telnet is connecting to port 25
/etc/init.d/xinetd restart (restart the xinetd)
/etc/rc.d/init.d/psa restart
Posted in: Horde | 0 Comments | Email This
Webmail on Windows not loading and eventually timing out
Please check to make sure that IIS for webmail is set to parse PHP pages in CGI mode as it will n
ot work with PHP in ISAPI mode.
To verify PHP is running in CGI for webmail go to:
IIS Manager -> Websites -> webmail -> properties.
Select the home directory tab -> Configuration -> Application mappings, ensure that the extension
.php is being handled by the executable version of PHP which is in
"C:\Program Files\SWsoft\Plesk\Additional\Php\php.exe"
Posted in: Horde | 0 Comments | Email This
Horde webmail shows "Registry objects should never be cloned" error
The Horde webmail shows the following error when we access it using the webmail.domainname
" Registry objects should never be cloned"
In order to fix the horde issue do the following:
Check the field zend.ze1_compatibility_mode in the php.ini
Modify it to zend.ze1_compatibility_mode = Off
Restart the apache
Posted in: Horde | 0 Comments | Email This