Title: open_basedir for PHP code
Last modified: July 13, 2023

---

# open_basedir for PHP code

 *  Resolved [maxity](https://wordpress.org/support/users/maxity/)
 * (@maxity)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/open_basedir-for-php-code/)
 * When using the PHP code functionality of HFCM, I get the following error for 
   one of the hosters we are using:
 * **realpath(): open_basedir restriction in effect. File(/usr/bin) is not within
   the allowed path(s): (/var/www/x03_59:/usr/share/php)**
 * Is there any way to solve this? Looks like HFCM is trying to use an absolute 
   path to PHP here.
 * EDIT: Nevermind, it’s suddenly working now.
    -  This topic was modified 2 years, 10 months ago by [maxity](https://wordpress.org/support/users/maxity/).
    -  This topic was modified 2 years, 10 months ago by [maxity](https://wordpress.org/support/users/maxity/).
    -  This topic was modified 2 years, 10 months ago by [maxity](https://wordpress.org/support/users/maxity/).

The topic ‘open_basedir for PHP code’ is closed to new replies.

 * ![](https://ps.w.org/header-footer-code-manager/assets/icon-256x256.png?rev=2681303)
 * [Header Footer Code Manager](https://wordpress.org/plugins/header-footer-code-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/header-footer-code-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/header-footer-code-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/header-footer-code-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/header-footer-code-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/header-footer-code-manager/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [maxity](https://wordpress.org/support/users/maxity/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/open_basedir-for-php-code/)
 * Status: resolved