Title: PHP ERROR: Open_basedir restriction
Last modified: July 10, 2022

---

# PHP ERROR: Open_basedir restriction

 *  Resolved [plisken](https://wordpress.org/support/users/plisken/)
 * (@plisken)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/php-error-open_basedir-restriction/)
 * 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 3 years, 10 months ago by [plisken](https://wordpress.org/support/users/plisken/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [profaceoff](https://wordpress.org/support/users/profaceoff/)
 * (@profaceoff)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/php-error-open_basedir-restriction/#post-15813868)
 * Hi [@plisken](https://wordpress.org/support/users/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.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-s3-smart-upload_5aacb9.svg)
 * [SSU - WordPress Amazon S3 & Wasabi Smart File Uploads Plugin](https://wordpress.org/plugins/wp-s3-smart-upload/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-s3-smart-upload/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-s3-smart-upload/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-s3-smart-upload/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-s3-smart-upload/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-s3-smart-upload/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [profaceoff](https://wordpress.org/support/users/profaceoff/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/php-error-open_basedir-restriction/#post-15813868)
 * Status: resolved