• Resolved da14i10

    (@da14i10)


    Hello, Dear WooCommerce Square Support.

    We have contacted the hosting service provider as per the advice we received last time.
    As a result, the answer is that (/etc/php-fpm/php74-php.ini) is not given access rights.

    We would appreciate any guidance on how to deal with the inability to gain access to this file.

    Error codes are as follows.

    Warning: parse_ini_file(/etc/php-fpm/php74-php.ini): failed to open stream: Permission denied in /home/~/wp-content/plugins/woocommerce-square/vendor/apimatic/jsonmapper/src/JsonMapper.php on line 119

    We apologize for the inconvenience and thank you for your confirmation.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi @da14i10

    Thanks for reaching out!

    As replied to your other post that this message is related to a file permission issue, rather than with the plugin itself. The PHP script is unable to access the /etc/php-fpm/php74-php.ini file as it does not have sufficient permissions to do so.

    Hence, you were asked to contact your hosting provider in order to grant permission to this file since they are the ones who know your environment.

    If it helps, you could check the chmod() function.

    Thread Starter da14i10

    (@da14i10)

    Hi @xue28

    Thanks for your reply.

    What I would like to know is what kind of problems can be caused by this error?

    The reply from the hosting service said that I do not have access rights to this file and that I have not been granted individual access rights.

    We apologize for the inconvenience and would appreciate your confirmation.

    Hi,

    Please note, we are unable to access sites to grant permissions. To clarify, are you using a site administrator user role? May I know which is your hosting provider? I think the web host will be able to provide you with more information, it appears that having access will help to resolve the issue.

    Thread Starter da14i10

    (@da14i10)

    Hi @ihereira

    Thank you for your reply.
    I have administrative privileges in the hosting service I am using.

    However, I have restrictions.
    The hosting service I am using did not give the customer permission to the php74-php.ini file.

    I am using a Japanese service called Xserver.
    The .user.ini file exists in the document root.

    Hi there @da14i10

    Thank you for reaching back, with further details on this.

    From what I understand, the currently installed PHP version is 7.4.*, therefore, could you go ahead with temporarily upgrading to PHP version 8.* and see if the issue persists, please?

    Important: Always make sure an up-to-date backup is available before proceeding with such changes.

    We will be standing by for your response, thank you.

    Thread Starter da14i10

    (@da14i10)

    Hi @anastas10s

    Thank you for your suggestion.

    I have changed the php version to 8, back to 7, etc., but the error code
    php74-php.ini only changed to php80-php.ini.

    If I revert back to version 7 series, the situation is that part of the error code changes to php74-php.ini.

    Thank you for your time.

    Hi there @da14i10, and thank you for reaching back, after investigating this further.

    In that case, I will reiterate my colleague’s response.

    To resolve this issue, it is recommended to seek assistance from your hosting provider. They can assist in ensuring that the file permissions are set up correctly for the appropriate user. The PHP script is unable to access the “/etc/php-fpm/php74-php.ini” file as it does not have sufficient permissions to do so.

    Kindly get in touch with their support channel again, explaining that ensuring the file permissions are set up correctly will enable your store to accept payments properly.

    Please let us know how that goes, thank you.

    • This reply was modified 3 years, 3 months ago by anastas10s. Reason: typo
Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘About php permission’ is closed to new replies.