Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WordPress] PHP Warning: chmod(): Operation not permitted in /opt/bitnami/wordpress/wp-admin/includes/class-wp-filesystem-direct.php on line 173 #552

Closed
stumac06 opened this issue Dec 14, 2022 · 10 comments
Assignees
Labels
stale 15 days without activity tech-issues The user has a technical issue about an application triage Triage is needed wordpress

Comments

@stumac06
Copy link

Platform

AWS

bndiagnostic ID know more about bndiagnostic ID

00000

bndiagnostic output

No response

bndiagnostic was not useful. Could you please tell us why?

00000

Describe your issue as much as you can

updated wordpress to 6.1 version and get the following error:

PHP Warning: chmod(): Operation not permitted in /opt/bitnami/wordpress/wp-admin/includes/class-wp-filesystem-direct.php on line 173

I tried following the video with instruction on changing permissions but still getting this error.

used the following

sudo chown -R daemon:bitnami /bitnami/wordpress/wp-content/plugins/
sudo chown daemon:daemon /bitnami/wordpress/wp-config.php
sudo chmod 664 /opt/bitnami/wordpress/wp-admin/includes/class-wp-filesystem-direct.php
sudo chmod 664 /opt/bitnami/wordpress/wp-config.php

Please help

@stumac06 stumac06 added the tech-issues The user has a technical issue about an application label Dec 14, 2022
@bitnami-bot bitnami-bot added this to Triage in Support Dec 14, 2022
@bitnami-bot bitnami-bot added the triage Triage is needed label Dec 14, 2022
@jotamartos jotamartos changed the title [<application>] <title>PHP Warning: chmod(): Operation not permitted in /opt/bitnami/wordpress/wp-admin/includes/class-wp-filesystem-direct.php on line 173 [WordPress] PHP Warning: chmod(): Operation not permitted in /opt/bitnami/wordpress/wp-admin/includes/class-wp-filesystem-direct.php on line 173 Dec 15, 2022
@jotamartos
Copy link
Collaborator

Hi @stumac06,

Please take a look at the already existing support tickets in GitHub before creating a new one. This question has been solved several times already. You have one example here

#205

@github-actions github-actions bot moved this from Triage to Pending in Support Dec 15, 2022
@stumac06
Copy link
Author

Hi Jose,

I had already checked these but could not find a suitable solution

@github-actions github-actions bot moved this from Pending to Triage in Support Dec 15, 2022
@jotamartos
Copy link
Collaborator

Did you run the commands to update the filesystem permissions?

sudo chown -R bitnami:daemon /opt/bitnami/wordpress
sudo find /opt/bitnami/wordpress -type d -exec chmod 775 {} \;
sudo find /opt/bitnami/wordpress -type f -exec chmod 664 {} \;
sudo chown -R bitnami:daemon /bitnami/wordpress
sudo find /bitnami/wordpress -type d -exec chmod 775 {} \;
sudo find /bitnami/wordpress -type f -exec chmod 664 {} \;
sudo chmod 640 /bitnami/wordpress/wp-config.php

@github-actions github-actions bot moved this from Triage to Pending in Support Dec 19, 2022
@stumac06
Copy link
Author

Hi Still the same. Can you please tell me where I can find the log file that is populated from the wordpress core update and plugins update?

@github-actions github-actions bot moved this from Pending to Triage in Support Dec 23, 2022
@github-actions
Copy link

github-actions bot commented Jan 8, 2023

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

@github-actions github-actions bot added the stale 15 days without activity label Jan 8, 2023
@jotamartos
Copy link
Collaborator

I do not know where that log file is stored. You can find all WordPress-related files inside the /opt/bitnami/wordpress folder. The commands I posted above should have solved the permission-related issues because they reset the confirmation and Apache should be able to read/write in that folder again. However, if you continue running into issues, you can contact the WordPress' support team to get more information.

@github-actions github-actions bot moved this from Triage to Pending in Support Jan 9, 2023
@github-actions github-actions bot removed the stale 15 days without activity label Jan 10, 2023
@github-actions
Copy link

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

@github-actions github-actions bot added the stale 15 days without activity label Jan 26, 2023
@github-actions
Copy link

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 31, 2023
@J4-R3K
Copy link

J4-R3K commented Apr 1, 2023

Hi
I have the same problem
Wordpress site on AWS EC2 instance, on Bitnami

[proxy_fcgi:error] [pid 11901:tid 140644039243520] [client 192.241.225.22:51186] AH01071: Got error 'PHP message: PHP Warning: chmod(): Operation not permitted in /opt/bitnami/wordpress/wp-admin/includes/class-wp-filesystem-direct.php on line 173'

As far as I am aware the file permissions, user and group are as per recommended settings, namely:
User: bitnami
user group: daemon

when I check the permissions running:
ls /opt/bitnami/wordpress/wp-admin/includes/class-wp-filesystem-direct.php -la

this is what I am getting:
-rw-rw-r-- 1 bitnami daemon 17208 Mar 29 20:36 /opt/bitnami/wordpress/wp-admin/includes/class-wp-filesystem-direct.php

I checked the against all the guidance I could find and the original bitnami settings and it all seems to be set correctly

so I don't know why I am getting the error.
Any ideas?

@bitnami-bot bitnami-bot moved this from Pending to Triage in Support Apr 1, 2023
@github-actions github-actions bot removed the solved label Apr 1, 2023
@jotamartos
Copy link
Collaborator

Hi @stumac06,

Please create a separate issue. This is an old one and it's already closed. You can refer to this issue in your message for the support agent to know what you did to try to solve it.

Thanks

@github-actions github-actions bot moved this from Triage to Pending in Support Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale 15 days without activity tech-issues The user has a technical issue about an application triage Triage is needed wordpress
Projects
None yet
Development

No branches or pull requests

4 participants