• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved PHP Warning: parse_ini_file(): open_basedir restriction in effect

LionKing

Regular Pleskian
Server operating system version
Linux Ubunto 22.04
Plesk version and microupdate number
Plesk Obsidian Web Host Edition Version 18.0.58 Update #2
I'm seeing this issue on our Plesk server:


PHP Warning: parse_ini_file(): open_basedir restriction in effect. File(/opt/plesk/php/8.1/etc/php.ini) is not within the allowed path(s): (/var/www/vhosts/somdomain.com/:/tmp/) in /var/www/vhosts/some-domain.com/public_html/wp-content/plugins/booknetic-payment-square/vendor/apimatic/jsonmapper/src/JsonMapper.php on line 129

I see that there is a reference to WP plugins so I'm not certain if the plugin is the issue or that the system doesn't get full access to the php.ini file in Linux?

Any thoughts on how to solve this?

Kind regards
 
You could add the path to the PHP configuration directory to the "open_basedir" setting in your PHP settings. However, I believe that this will make your server very unsafe, because then scripts will be able to access all the files stored there and maybe even change them.
 
You could add the path to the PHP configuration directory to the "open_basedir" setting in your PHP settings. However, I believe that this will make your server very unsafe

Yes, not worth it. I guess Ishould just ignore it as it is probably the plugin that is making a code request to somewhere it shouldn't.
 
I been looking into this again and one thing that stands out as a sore thumb is:
PHP Warning: parse_ini_file(): open_basedir restriction in effect. File(/opt/plesk/php/8.2/etc/php.ini)
E.g it is the PHP ini file for version 82. that is being blocked.
In my little world PHP should not be blocked from working on the server, right?
 
Code:
/var/www/vhosts/some-domain.com/public_html/wp-content/plugins/booknetic-payment-square/vendor/apimatic/jsonmapper/src/JsonMapper.php
should not be accessing
Code:
/opt/plesk/php/8.2/etc/php.ini
 
Back
Top