• Resolved plisken

    (@plisken)


    Hey there,

    I’m getting this error:

    “PHP message: PHP Warning: is_readable(): open_basedir restriction in effect.”

    I tried figuring it out with my WebHost Kinsta and even after they added the .aws directory to the open_basedir the issue still persists.

    • This topic was modified 2 years, 7 months ago by plisken.
Viewing 1 replies (of 1 total)
  • Plugin Author profaceoff

    (@profaceoff)

    Hi @plisken,

    Thanks for reaching out to us last night.

    The warning comes from a permission issue where our AWS SDK fails to load configuration.

    There are 2 solutions to resolve this:

    #1. Configure open_basedir in php.ini that allows ~/.aws/config

    #2. Set ENV variable to the default AWS configuration file

    To do so, you can put this code at the end of your (child) theme functions.php:

    #Change www.yourwebsite.com to your actual website URL
    putenv('AWS_CONFIG_FILE=/web/htdocs/www.yourwebsite.com/home/');

    You might also want to drop us an email at hello(at)preventdirectaccess.com so that our team can support you faster.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP ERROR: Open_basedir restriction’ is closed to new replies.