• Resolved SeVlad

    (@sevlad)


    When trying to download the archive, a loading error occurs
    file_exists(): open_basedir restriction in effect. File(/tmp/admin_head-plugins.zip) is not within the allowed path(s): (/var/www/username/data:.)

    phpinfo:

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Algoritmika

    (@algoritmika)

    Hi @sevlad,

    I will check that in a minute. Will get back to you shortly.

    Plugin Author Algoritmika

    (@algoritmika)

    Hi again @sevlad,

    Could you please go to plugin settings (in “Settings > Download Plugins and Themes”) and try setting “Temporary directory” option (in “Advanced Settings” subsection) to /var/www/username/data/

    Please let me know if that helped.

    Thread Starter SeVlad

    (@sevlad)

    Could you please go to plugin settings (in “Settings > Download Plugins and Themes”) and try setting “Temporary directory” option (in “Advanced Settings” subsection) to /var/www/username/data/

    Yes, it works, but it seems to me that this is not a good solution.
    Firstly – tmpdir is set:

    Secondly – users may not be aware of the value of open_basedir and simply remove the plugin because it does not work after installation

    It seems to me that you need to fix the plugin so that it works correctly when open_basedir is set.

    PS. A similar plugin works without problems

    Plugin Author Algoritmika

    (@algoritmika)

    @sevlad,

    Thanks for the feedback.

    I will definitely try to make it automatic (changing tmp directory according with open_basedir I mean).

    As for “Firstly – tmpdir is set” – I suppose, if you set “Temporary directory” option in our plugin to /var/www/username/data/mod-tmp/ it should also work fine and write plugin’s temporary files to your upload_tmp_dir then.

    Plugin Author Algoritmika

    (@algoritmika)

    Hi @sevlad,

    As promised, we’ve released new plugin v1.7.0 today, where I’ve improved temporary directory retrieving algorithm, so now it should work properly on your server even without entering the directory manually in plugin settings.

    Thanks for pointing this out, and if you like the plugin, please consider leaving me a rating.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Downloading error with set open_basedir’ is closed to new replies.