Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 378 Vote(s) - 3.53 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to fix 'Some files are not writable by WordPress' error, website cannot be changed by admin

#1
I'm setting up a new website. most files are not editable by WordPress.

I am using a virtual machine on google cloud console. It's Ubuntu 18.04 LTS LAMP stack. I have tried editing permissions of the files through both Filezilla and the ssh prompt on gcloud. like it describes [here](

[To see links please register here]

). I think i have a different problem.

I am brand new and just learning so I'm sorry if the answer is obvious. I found that if I go in and manually set permissions for files to 775 in the SSH WordPress is able to edit some files. But i cannot edit permissions of some files even after i am in root
```sudo su```
Reply

#2
change all files and folders permission as follow:

enter your public_html folder and execute this two commands

find . -type d -exec chmod 0755 {} \;

find . -type f -exec chmod 0644 {} \;
Reply

#3
Apart from permissions you have to change the Owner of the Files to the web server user *( most cases, especially those using apache www-data )* .

The command to do that is the below

$ sudo chown -R www-data:www-data /path/to/wordpress/

the usual path of a website on a ubuntu server is **/var/www/domain.com**/ but of course that depends !

Wish you the best!
Reply

#4
My issue was Wordpress somehow wanted to use "apache" as the user. Changing the ownership from nginx:nginx (which is what runs my web daemon) to apache:nginx worked.

I recommend trying this on ONE file and confirming with the "site health" tool to make sure it is YOUR problem before doing a global change!

chown apache:nginx ./*.php
Reply

#5
I was getting the same error "Some files are not writable by WordPress:
wp-load.php" recently as I moved to a different host provider. The error was shown in the Site Health window from WordPress.

[![enter image description here][1]][1]

To fix this, all you have to do is to change the permission of the file(s). You can do this easily by using the tool called [FileZilla][2]. I use this tool for all my FTP actions.

Connect to your server and right-click on the file and select File permissions.

[![enter image description here][3]][3]

And finally, change the permission to 0644.

[![enter image description here][4]][4]


[1]:

[2]:

[To see links please register here]

[3]:

[4]:
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through