Title: Php error
Last modified: October 9, 2021

---

# Php error

 *  [Stormline](https://wordpress.org/support/users/stormline/)
 * (@stormline)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/php-error-487/)
 * Hi!
 * I got this php error.
    Any help to correct this.
 * Unknown: open_basedir restriction in effect. File(/var/lib/php/session) is not
   within the allowed path(s): (/var/www/vhosts/domain.eu/:/tmp/)
 * Where i can correct allowed path?
 * Heiki

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Wajid Ali](https://wordpress.org/support/users/wajid-ali-tabassum/)
 * (@wajid-ali-tabassum)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/php-error-487/#post-14953597)
 * Hi [@stormline](https://wordpress.org/support/users/stormline/)…
 * It looks like one of your plugins is supplying an invalid file specification.
   What is expected is a path relative to the plugins folder. What is provided is
   a full URL.
 * [Deactivate all plugins](https://www.wpbeginner.com/beginners-guide/beginners-guide-to-troubleshooting-wordpress-errors-step-by-step/)
   and the warnings should go away. Reactivate one plugin at a time, testing after
   each. When the warnings reappear, the last activated plugin is the cause.
 *  Thread Starter [Stormline](https://wordpress.org/support/users/stormline/)
 * (@stormline)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/php-error-487/#post-14953721)
 * I deactivated all plugins, but still have this error.
    This domain migrated from
   cpanel to plesk. And after this happend this error.
 *  [Wajid Ali](https://wordpress.org/support/users/wajid-ali-tabassum/)
 * (@wajid-ali-tabassum)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/php-error-487/#post-14953774)
 * [@stormline](https://wordpress.org/support/users/stormline/) I never use Plesk
   so I will recommend, approach their support team so they can help you with this
   problem in a proper way.
 * I have found the below links. Maybe you find them helpful.
    - [https://wordpress.org/support/topic/open_basedir-restriction-in-effect-26/](https://wordpress.org/support/topic/open_basedir-restriction-in-effect-26/)
    - [https://support.plesk.com/hc/en-us/articles/115000278993-A-website-hosted-in-Plesk-is-not-accessible-open-basedir-restriction-in-effect](https://support.plesk.com/hc/en-us/articles/115000278993-A-website-hosted-in-Plesk-is-not-accessible-open-basedir-restriction-in-effect)
    - [https://stackoverflow.com/questions/1846882/open-basedir-restriction-in-effect-file-is-not-within-the-allowed-paths](https://stackoverflow.com/questions/1846882/open-basedir-restriction-in-effect-file-is-not-within-the-allowed-paths)
 * Thanks!
 *  [Dion](https://wordpress.org/support/users/diondesigns/)
 * (@diondesigns)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/php-error-487/#post-14953885)
 * The `session.save_path` setting in your php.ini file is not within the directories
   specified in the `open_basedir` setting. You may be able to correct this by adding
   the following line to your wp-config.php file immediately after the DB_NAME/DB_USER/
   etc MySQL settings:
 * `ini_set('session.save_path', '/tmp');`
 * If that doesn’t work, remove the above line and edit the `open_basedir` setting
   in the php.ini file. This setting requires some knowledge of your system, so 
   you might want to ask your host to set it for you.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Php error’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [Dion](https://wordpress.org/support/users/diondesigns/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/php-error-487/#post-14953885)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
