{"id":203,"date":"2009-10-10T16:52:13","date_gmt":"2009-10-10T20:52:13","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=203"},"modified":"2013-03-20T08:40:07","modified_gmt":"2013-03-20T12:40:07","slug":"howto-turn-off-safe_mode-in-plesk","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/howto-turn-off-safe_mode-in-plesk","title":{"rendered":"howto: turn off safe_mode in Plesk?"},"content":{"rendered":"<p><strong>How to turn of safe_mode in Plesk?<\/strong> There are 2 ways to turn off safe_mode for a domain in Plesk.<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>1) From the Plesk control panel.\u00a0 Login to Plesk &gt;&gt; click &#8220;Domains&#8221; &gt;&gt; click &#8220;domainname.tld&#8221;\u00a0 &gt;&gt; click &#8220;WebSite Settings&#8221; &gt;&gt; make sure PHP support is checked, but &#8220;safe_mode&#8221; is\u00a0 unchecked &gt;&gt; click Save.<\/strong><\/span><\/p><\/blockquote>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>2) The second way is to turn off sqfe_mode using vhost.conf file. Create a vhost.conf file under &#8220;\/var\/www\/vhosts\/domainname.tld\/conf\/&#8221; directory and place the following lines:<\/strong><\/span><\/p><\/blockquote>\n<blockquote><p><span style=\"color: #ff9900;\"><strong>&lt;Directory \/home\/httpd\/vhosts\/&lt;domain.com&gt;\/httpdocs&gt;<br \/>\nphp_admin_flag safe_mode off<br \/>\n&lt;\/Directory&gt;<\/strong><\/span><\/p><\/blockquote>\n<p>Now, in order <strong>for Plesk to read these changes<\/strong>, execute<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>\/usr\/local\/psa\/admin\/bin\/websrvmng -a<br \/>\nservice httpd restart<\/strong><\/span><\/p><\/blockquote>\n<p>You can <strong>enable &#8220;register_globals&#8221; for a domain the same way mentioned in the 2nd step<\/strong> but make sure to execute the 2 commands for the changes to take effect.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to turn of safe_mode in Plesk? There are 2 ways to turn off safe_mode for a domain in Plesk.<br \/>\n1) From the Plesk control panel.\u00a0 Login to Plesk &gt;&gt; click &#8220;Domains&#8221; &gt;&gt; click &#8220;domainname.tld&#8221;\u00a0 &gt;&gt; click &#8220;WebSite Settings&#8221; &gt;&gt; make sure PHP support is checked, but &#8220;safe_mode&#8221; is\u00a0 unchecked &gt;&gt; click Save.<br \/>\n2) The second way is to turn off sqfe_mode using vhost.conf file. Create a vhost.conf file under &#8220;\/var\/www\/vhosts\/domainname.tld\/conf\/&#8221; directory and place the following lines:<br \/>\n&lt;Directory \/home\/httpd\/vhosts\/&lt;domain.com&gt;\/httpdocs&gt;<br \/>\nphp_admin_flag safe_mode off<br \/>\n&lt;\/Directory&gt;<br \/>\nNow, in order for Plesk to read these changes, execute<br \/>\n\/usr\/local\/psa\/admin\/bin\/websrvmng -a<br \/>\nservice [&#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":[223,222,226,225,224],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/203"}],"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=203"}],"version-history":[{"count":5,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/203\/revisions"}],"predecessor-version":[{"id":2123,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/203\/revisions\/2123"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}