{"id":454,"date":"2010-09-11T10:29:35","date_gmt":"2010-09-11T09:29:35","guid":{"rendered":"http:\/\/gavtaylor.co.uk\/blog\/?p=454"},"modified":"2010-09-15T08:30:57","modified_gmt":"2010-09-15T07:30:57","slug":"turn-off-open_basedir-in-plesk","status":"publish","type":"post","link":"https:\/\/gavtaylor.uk\/blog\/turn-off-open_basedir-in-plesk","title":{"rendered":"Turn off open_basedir in Plesk"},"content":{"rendered":"<p>I&#8217;m adding this post, mainly for my own reference but thought it may be of interest for others with the same problem.<\/p>\n<h4>The problem<\/h4>\n<p>Plesk unhelpfully ignores the base url set in the php.ini file with its own settings, but these settings are not configurable from the control panel.<\/p>\n<h4>The Solution<\/h4>\n<p>Create a &#8220;vhost.conf&#8221; file for the domain &#8211; e.g &#8220;\/var\/www\/vhosts\/&lt;your.domain.tld&gt;\/conf\/&#8221;<\/p>\n<p>Add the following to the file<\/p>\n<p><code>&lt;Directory \/var\/www\/vhosts\/&lt;your.domain.tld&gt;\/httpdocs&gt;<br \/>\nphp_admin_value open_basedir none<br \/>\n&lt;\/Directory&gt;<\/code><\/p>\n<p>Then you just need to rebuild the plesk config files and restart apache<\/p>\n<p><code>\/usr\/local\/psa\/admin\/sbin\/websrvmng -a<br \/>\n\/sbin\/service httpd restart<\/code><\/p>\n<p>Job done \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m adding this post, mainly for my own reference but thought it may be of interest for others with the same problem. The problem Plesk unhelpfully ignores the base url set in the php.ini file with its own settings, but these settings are not configurable from the control panel. The Solution Create a &#8220;vhost.conf&#8221; file [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[38,209],"tags":[124,207,203,6,206,204,156,205,208],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/gavtaylor.uk\/blog\/wp-json\/wp\/v2\/posts\/454"}],"collection":[{"href":"https:\/\/gavtaylor.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gavtaylor.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gavtaylor.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gavtaylor.uk\/blog\/wp-json\/wp\/v2\/comments?post=454"}],"version-history":[{"count":3,"href":"https:\/\/gavtaylor.uk\/blog\/wp-json\/wp\/v2\/posts\/454\/revisions"}],"predecessor-version":[{"id":456,"href":"https:\/\/gavtaylor.uk\/blog\/wp-json\/wp\/v2\/posts\/454\/revisions\/456"}],"wp:attachment":[{"href":"https:\/\/gavtaylor.uk\/blog\/wp-json\/wp\/v2\/media?parent=454"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gavtaylor.uk\/blog\/wp-json\/wp\/v2\/categories?post=454"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gavtaylor.uk\/blog\/wp-json\/wp\/v2\/tags?post=454"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}