Skip to content

install.log can not be created with open_basedir restriction  #796

@pavelnovitsky

Description

@pavelnovitsky

Please, see these comments
#791 (comment)
#791 (comment)

Virtual hosts with defined open_basedir settings

<Virtualhost>
php_admin_value open_basedir /home/user
php_admin_value upload_tmp_dir /home/user/tmp
php_admin_value session.save_path /home/user/tmp
</Virtualhost>

do not work correctly with sys_get_temp_dir() function

    //WebLogger
    public function __construct()
    {
        $this->logFile = sys_get_temp_dir() . DIRECTORY_SEPARATOR . $this->logFile;
    }

$this->logFile will be always /tmp/install.log and this leads PHP Warning: fopen(): open_basedir restriction in effect. File(/tmp/install.log) is not within the allowed path(s)

This issue is connected with my previous issue #792

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions