Turning off safe_mode and open_basedir in Plesk

Create a "vhost.conf" file in "/var/www/vhosts/<DOMAIN.TLD>/conf/"

<Directory /var/www/vhosts/<DOMAIN.TLD>/httpdocs>
php_admin_value safe_mode off
php_admin_value open_basedir none
</Directory>

Rebuild the domain configs for the particular host via:

/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=<DOMAIN.TLD>

or rebuild all via:

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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Yes, works. But won't work

Yes, works. But won't work for php.ini only settings like disable_functions.

Increase upload_max_filesize

Add the below mentioned lines to increase the upload_max_filesize to 15M. You will need to increase the post_max_size to be more that the upload_max_filesize and depending on memory limits, it may also need to be increased.

php_admin_value post_max_size 20M
php_admin_value upload_max_filesize 15M

THANK YOU!

I've Been searching high and low for this answer to my open_basedir issue for the past 2 days. didn't know i had to rebuild the domain configs for plesk. THANKS!

Comment