joglomedia / LEMPer

LEMPer Stack is terminal-based LEMP / LNMP installer and manager for Debian & Ubuntu cloud or virtual server (vps) and on-premise (bare metal).

Home Page:https://lemper.cloud/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PHP produces warning when using tempnam() function to create temporary file

joglomedia opened this issue · comments

An warning occured when using tempnam() function

Warning: tempnam() [function.tempnam]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s):

Possible fix

Set PHP ini sys_temp_dir to the user's temp dir, add from php-fpm pool config.

php_admin_value[sys_temp_dir] = /home/lemper/.tmp