[horde] [ALERT] Fatal error: Permission denied in Unknown on line 0
Prince
gspk at yahoo.com
Wed Dec 31 13:48:20 PST 2003
Dear Group.
I have installed horde, courier-imap and mysql
I am able to authenticate the user thru courier-imap. Now, I am trying to get this work with horde
% telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE STARTTLS] Courier-IMAP ready. Copyright 1998-2003 Double Precision, Inc. See COPYING for distribution information.
0 login prince xxxx
0 OK LOGIN Ok.
1 logout
* BYE Courier-IMAP server shutting down
1 OK LOGOUT completed
Connection closed by foreign host.
This is what I get when I try http://my-ip/horde/imp/test.php How do I diagnose/fix this problem? The /tmp/horde.log does not have anything.
IMP Version
IMP: 3.2.1
PHP Version
View phpinfo() screen
PHP Version: 4.2.2
PHP Major Version: 4.2
PHP Minor Version: 2
PHP Version Classification: release
You are running a supported version of PHP.
PHP IMAP Support Testserver="69.59.142.23" user="prince" mailbox="{69.59.142.23:143/imap/notls}INBOX"
bool(false)
Notice: [ALERT] Fatal error: Permission denied in Unknown on line 0
This is my horde.php looks like.
<?php
$conf['debug_level'] = E_ALL;
$conf['max_exec_time'] = 0;
$conf['session_name'] = 'Horde';
$conf['cache_limiter'] = 'nocache';
$conf['session_timeout'] = 0;
$conf['use_ssl'] = 2;
$conf['compress_pages'] = true;
$conf['umask'] = 077;
$conf['tmpdir'] = null;
/**
** Horde Authentication
**/
$conf['auth']['driver'] = 'imap';
$conf['auth']['params'] = array();
$conf['auth']['params']['dsn'] = '{localhost:143/imap}INBOX';
/**
** Horde Logging
**/
$conf['log']['enabled'] = true;
$conf['log']['type'] = 'file';
$conf['log']['name'] = '/tmp/horde.log';
$conf['log']['priority'] = LOG_NOTICE;
$conf['log']['ident'] = 'HORDE';
$conf['log']['params'] = array();
/**
** Preference System Settings
**/
$conf['prefs']['driver'] = 'sql';
$conf['prefs']['params'] = array();
if (!($fd = fopen("/etc/psa/.webmail.shadow", "r"))) {
echo "<script>alert('Unable to get webmail password!')</script>";
exit();
}
fscanf($fd, "%s", $buff);
fclose($fd);
$conf['prefs']['params']['phptype'] = 'mysql';
$conf['prefs']['params']['hostspec'] = 'localhost';
$conf['prefs']['params']['username'] = 'horde';
$conf['prefs']['params']['password'] = 'hordesecretpass';
$conf['prefs']['params']['password'] = preg_replace("/\n/", "", $buff);
$conf['prefs']['params']['database'] = 'horde';
$conf['prefs']['params']['table'] = 'horde_prefs';
/*
* The following is valid but would only be necessary if users
* do NOT have permission to modify their own ldap accounts.
*/
/**
** Cache System Settings
**/
$conf['cache']['driver'] = 'none';
$conf['cache']['params'] = array();
/**
** Mailer
**/
$conf['mailer']['type'] = 'sendmail'; //uncommented by prince and the next line commented
$conf['mailer']['params'] = array('host' => 'localhost');
/**
** Virtual File Storage
**/
$conf['vfs']['type'] = 'file';
$conf['vfs']['params']['vfsroot'] = '/tmp';
/**
** Custom Session Handler
**/
$conf['sessionhandler']['type'] = 'none';
/**
** Problem Reporting
**/
$conf['problems']['enabled'] = false;
$conf['problems']['email'] = 'webmaster at mycompany.com';
/**
** User Capabilities and Constraints
**/
$conf['user']['online_help'] = true;
/**
** Stylesheets
**/
$conf['css']['cached'] = true;
/**
** Menu settings
**/
$conf['menu']['floating_bar'] = false;
See my mysql table entry and maildir permission.
-----------------------------------------------------------------------
% ls -l /home/
drwxr-xr-x 3 courier courier 4096 Dec 31 11:16 imaptest
%ls -l /home/imaptest/
drwxr-xr-x 5 courier courier 4096 Dec 25 16:35 Maildir
% ls -l /home/imaptest/Maildir/
total 12
drwx------ 2 courier courier 4096 Dec 25 16:35 cur
drwx------ 2 courier courier 4096 Dec 25 16:35 new
drwx------ 2 courier courier 4096 Dec 25 16:35 tmp
select * from passwd ;
+---------+-------------------------+--------+--------+------+------+--------------+--------------------+
| id | crypt | clear | name| uid | gid | home | maildir |
+---------+-------------------------+--------+--------+------+------+--------------+--------------------+
| prince | jKRsrF4QOckjk | xxxx | prince| 101 | 100 | /home/imaptest| Maildir/ |
+---------+---------------+--------+--------+-----+-----+-----------+-------------+--------------------+
---------------------------------
Do you Yahoo!?
Find out what made the Top Yahoo! Searches of 2003
More information about the horde
mailing list