Here’s the error message:
2023/03/24 16:23:04 [error] 98060#98060: *20663 FastCGI sent in stderr: “PHP message: PHP Warning: parse_ini_file(): open_basedir restriction in effect. File(/etc/php/8.0/fpm/php.ini) is not within the allowed path(s): (/public/wp-content/plugins/woocommerce-square/vendor/apimatic/jsonmapper/src/JsonMapper.php on line 119PHP message: PHP Warning: parse_ini_file(/etc/php/8.0/fpm/php.ini): Failed to open stream: Operation not permitted in /public/wp-content/plugins/woocommerce-square/vendor/apimatic/jsonmapper/src/JsonMapper.php on line 119” while reading response header from upstream, client: [IP Address], server: [domain], request: “GET /wp-admin/ HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php8.0-fpm-domain.sock:”, host: “[domain]”, referrer:
This is the info from the Kinsta tech support:
“As I can see the error message states that the Plugin needs access to check our: /etc/php/8.0/fpm/php.ini and states as that access to it is not allowed. This is done for server protection and plugins should not request for information outside the public directory.”
And later in our conversation Kinsta tech support responded with:
“We will be unable to allow the reading the /etc/php/8.0/fpm/php.ini file, I am afraid. In that case I would advise you to contact the plugin developers and report that we can’t support apimatic/jsonmapper.”
“To be honest, I am not exactly sure why they chose the approach to read files within /etc/ directory. They are able to get all of the information from the file in other ways. If we allow access to the php.ini there this will increase the potential of many security risks.”
“That directory/file path would be the site’s php.ini under root. That’s something that is not allowed under open_basedir.”
As for opcache.save_comments, that is now enabled.
-
This reply was modified 1 year, 8 months ago by jdisenso.