Parallels Plesk Atmail and Error: Password file could not be found
Khi truy cập webmail bạn được thông báo lỗi sau:
Error: Password file could not be found
Kiểm tra log thì thấy lỗi: /var/log/atmail/error_log
Mã:
|
PHP Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/etc/psa-webmail/atmail/.atmail.shadow) is not within the allowed path(s): (/var/www/atmail:/var/log/atmail:/etc/psa:/tmp:/var/tmp) in /var/www/atmail/libs/Atmail/Config.php on line 6 |
Để fix lỗi này bạn làm như sau:
#vi /etc/psa-webmail/atmail/atmail_vhost.conf
Tìm dòng
Mã:
|
php_admin_value open_basedir “/var/www/atmail:/var/log/atmail:/etc/psa:/tmp:/var/tmp” |
và thay thế 4 dòng trong file trên với dòng bên dưới
Mã:
|
php_admin_value open_basedir “/var/www/atmail:/var/log/atmail:/etc/psa:/tmp:/var/tmp:/etc/psa-webmail/atmail” |
Lưu lại và gõ các lệnh sau:
#/usr/local/psa/admin/bin/webmailmng –-disable –-name=atmail
#/usr/local/psa/admin/bin/webmailmng –-enable –-name=atmail
#/sbin/service httpd reload
Link tham khảo:
http://new.spheron1.co.uk/2012/05/21...-not-be-found/
Chúc các bạn thành công!
![Bắt tay](images/smilies/otheremo/New Folder/09.gif)