outroll / vesta

VESTA Control Panel

Home Page:http://vestacp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PHP sys_temp_dir

rbrzezinski opened this issue · comments

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