{"id":389,"date":"2009-12-03T11:49:13","date_gmt":"2009-12-03T15:49:13","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=389"},"modified":"2013-06-08T10:27:27","modified_gmt":"2013-06-08T14:27:27","slug":"howto-turn-off-open_basedir-in-plesk","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/howto-turn-off-open_basedir-in-plesk","title":{"rendered":"howto: turn off open_basedir in Plesk"},"content":{"rendered":"<blockquote><p><span style=\"color: #0000ff;\"><strong>How to turn off open_basedir in Plesk?<\/strong><\/span><\/p><\/blockquote>\n<p><strong>By default<\/strong><strong> Plesk applies open_basedir restriction for all the domains on the server.<\/strong> You can remove the open_basedir restriction lines from the httpd.include file located at \/home\/httpd\/vhosts\/example.com\/conf\/ directory but Plesk will overwrite the file again once it rebuild the include files.<\/p>\n<p>To permanently remove the open_basedir restrictions for a domain, create a vhost.conf file<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>vi \/home\/httpd\/vhosts\/example.com\/conf\/vhost.conf<\/strong><\/span><\/p><\/blockquote>\n<p>and place the following lines:<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>&lt;Directory \/home\/httpd\/vhosts\/example.com\/httpdocs\/&gt;<br \/>\nphp_admin_value open_basedir none<br \/>\n&lt;\/Directory&gt;<\/strong><\/span><\/p><\/blockquote>\n<p>Once done, rebuild the include file with the command:<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>\/usr\/local\/psa\/admin\/bin\/websrvmng -a<\/strong><\/span><\/p><\/blockquote>\n<p>and restart the Apache service:<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>service httpd restart<\/strong><\/span><\/p><\/blockquote>\n<p>To verify the new settings<strong>, place a phpinfo.php file <\/strong>under the account, browse the file and <strong>check the &#8220;Local Value&#8221; column.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to turn off open_basedir in Plesk?<br \/>\nBy default Plesk applies open_basedir restriction for all the domains on the server. You can remove the open_basedir restriction lines from the httpd.include file located at \/home\/httpd\/vhosts\/example.com\/conf\/ directory but Plesk will overwrite the file again once it rebuild the include files.<br \/>\nTo permanently remove the open_basedir restrictions for a domain, create a vhost.conf file<br \/>\nvi \/home\/httpd\/vhosts\/example.com\/conf\/vhost.conf<br \/>\nand place the following lines:<br \/>\n&lt;Directory \/home\/httpd\/vhosts\/example.com\/httpdocs\/&gt;<br \/>\nphp_admin_value open_basedir none<br \/>\n&lt;\/Directory&gt;<br \/>\nOnce done, rebuild the include file with the command:<br \/>\n\/usr\/local\/psa\/admin\/bin\/websrvmng -a<br \/>\nand restart the Apache service:<br \/>\nservice httpd restart<br \/>\nTo verify the new settings, place a [&#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":[511,507,509,510,508],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/389"}],"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=389"}],"version-history":[{"count":8,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/389\/revisions"}],"predecessor-version":[{"id":2339,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/389\/revisions\/2339"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=389"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=389"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}