interfasys
Verified User
`HOME` is defined as /home/username and in most cases, it works, but there is a problem when this is used in HTTP templates on FreeBSD like in this example:
which will generate this
because scripts requiring access to the user's home directory will ask if it's allowed to access /usr/home/username and they will fail.
Yes, we can fix it ourselves by editing the templates, but I think it would be a good idea to write the correct path for HOME.
Code:
|?OPEN_BASEDIR_PATH=`HOME`/:/tmp:/var/tmp:/usr/local/lib/php/|
Code:
php_admin_value open_basedir=/home/username/:/tmp:/var/tmp:/usr/local/lib/php/|
Yes, we can fix it ourselves by editing the templates, but I think it would be a good idea to write the correct path for HOME.