Gentoo Blog

The ultimate Gentoo Blog
  • Home
  • About

Turning off safe_mode and register_globals in Plesk

Simon | May 27, 2009

Create a file called “vhost.conf” in the directory “/var/www/vhosts/example.com/conf/”

<Directory /var/www/vhosts/example.com/httpdocs>
php_admin_value safe_mode off
php_admin_flag register_globals on
</Directory>

Rebuild the domain config for the particular vhost with:

/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=example.com

Or rebuild all vhosts if you changed more than one with:

usr/local/psa/admin/sbin/websrvmng -a

You can also change other settings this way here are some examples:

php_admin_value post_max_size 25M
php_admin_value upload_max_filesize 20M
php_admin_value open_basedir none

Share on Facebook
Categories
confixx/Plesk
Comments rss
Comments rss
Trackback
Trackback

« The Big Lebowski Fucking Short Version Debian Lenny cannot load Broadcom NIC drivers missing firmware bnx2-06-4.0.5.fw during install »

One Response to “Turning off safe_mode and register_globals in Plesk”

  1. DvD says:
    August 13, 2011 at 3:12 pm

    Thank you Simon, works fine!

Leave a Reply

Click here to cancel reply.

 

May 2012
M T W T F S S
« Apr    
 123456
78910111213
14151617181920
21222324252627
28293031  

Categories

  • confixx/Plesk
  • fun
  • Gentoo
  • iptables
  • mysql
  • news
  • Raid Controllers
  • Stuff
  • Ubuntu/Debian
  • Xen/Vmware

Links

  • Gentoo
  • http.net
  • iphone software linux
  • michael-fuchs.net
  • Ubuntu
  • webupd8.org

Search Blog

rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox