{"id":1915,"date":"2012-06-17T11:08:30","date_gmt":"2012-06-17T15:08:30","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=1915"},"modified":"2013-03-20T08:38:22","modified_gmt":"2013-03-20T12:38:22","slug":"plesk-atmail-open_basedir-restriction-etcpsa-webmailatmail-not-within-allowed-paths","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/plesk-atmail-open_basedir-restriction-etcpsa-webmailatmail-not-within-allowed-paths","title":{"rendered":"Plesk Atmail open_basedir restriction: \/etc\/psa-webmail\/atmail\/ not within allowed path(s)"},"content":{"rendered":"<p>If you upgrade the Plesk control panel, the <strong>Atmail webmail client will display the &#8220;\/etc\/psa-webmail\/atmail\/.atmail.shadow open_basedir restriction&#8221; error message<\/strong> while accessing Atmail. The complete error message looks like follows:<\/p>\n<blockquote>\n<pre>Warning: fopen [function.fopen]: open_basedir restriction in effect.\r\nFile(\/etc\/psa-webmail\/atmail\/.atmail.shadow) is not within allowed\r\npath(s): (\/var\/www\/atmail:\/var\/log\/atmail:\/etc\/psa:\/tmp:\/var\/tmp)\r\nin \/var\/www\/atmail\/libs\/Atmail\/Config.php on line 4<\/pre>\n<\/blockquote>\n<p>The error occurs when <strong>PHP is not allowed to access the \/etc\/psa-webmail\/atmail\/ directory due to open_basedir restriction<\/strong> in effect and thus any request to the \/etc\/psa-webmail\/atmail\/.atmail.shadow file is blocked by PHP.<\/p>\n<p><strong>The restriction is in place in the atmail configuration file located at \/etc\/httpd\/conf.d\/zzz_atmail_vhost.conf.<\/strong> To allow PHP to access the \/etc\/psa-webmail\/atmail\/ directory, open the Atmail configuration file<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># nano \/etc\/httpd\/conf.d\/zzz_atmail_vhost.conf<\/span><\/pre>\n<\/blockquote>\n<p>look for the lines that state (<strong>there are 2 lines<\/strong>):<\/p>\n<blockquote>\n<pre>php_admin_value open_basedir \"\/var\/www\/atmail:\/var\/log\/atmail:\r\n\/etc\/psa:\/tmp:\/var\/tmp\"<\/pre>\n<\/blockquote>\n<p>and <strong>add the atmail directory<\/strong> at the end so the lines look like follows:<\/p>\n<blockquote>\n<pre>php_admin_value open_basedir \"\/var\/www\/atmail:\/var\/log\/atmail:\r\n\/etc\/psa:\/tmp:\/var\/tmp:\/etc\/psa-webmail\/atmail\"<\/pre>\n<\/blockquote>\n<p>Save the file and restart the httpd service<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># service httpd restart<\/span><\/pre>\n<\/blockquote>\n<p>PHP will now be able to access the atmail directory and Atmail webmail client will work without problems.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you upgrade the Plesk control panel, the Atmail webmail client will display the &#8220;\/etc\/psa-webmail\/atmail\/.atmail.shadow open_basedir restriction&#8221; error message while accessing Atmail. The complete error message looks like follows:<\/p>\n<p>Warning: fopen [function.fopen]: open_basedir restriction in effect.<br \/>\nFile(\/etc\/psa-webmail\/atmail\/.atmail.shadow) is not within allowed<br \/>\npath(s): (\/var\/www\/atmail:\/var\/log\/atmail:\/etc\/psa:\/tmp:\/var\/tmp)<br \/>\nin \/var\/www\/atmail\/libs\/Atmail\/Config.php on line 4<\/p>\n<p>The error occurs when PHP is not allowed to access the \/etc\/psa-webmail\/atmail\/ directory due to open_basedir restriction in effect and thus any request to the \/etc\/psa-webmail\/atmail\/.atmail.shadow file is blocked by PHP.<br \/>\nThe restriction is in place in the atmail configuration file located at \/etc\/httpd\/conf.d\/zzz_atmail_vhost.conf. To allow [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[1403,1405,1404,1406],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1915"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=1915"}],"version-history":[{"count":7,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1915\/revisions"}],"predecessor-version":[{"id":1921,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1915\/revisions\/1921"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=1915"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=1915"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=1915"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}