outroll / vesta

VESTA Control Panel
http://vestacp.com
GNU General Public License v3.0
2.91k stars 1.02k forks source link

PHP sys_temp_dir #2234

Open rbrzezinski opened 2 years ago

rbrzezinski commented 2 years ago

When someone is using sys_get_temp_dir() function in PHP it's always returning /tmp. That function is used by a lot of libraries. Because of setting open_basedir that directory is not available. You should add this config to all templates: php_admin_value sys_temp_dir %home%/%user%/tmp