Jump to content


Photo

WordPress Seems to have lost the ability to write to files?


  • Please log in to reply
3 replies to this topic

#1 JpTiger

JpTiger

    Rank I Member

  • Members
  • Pip
  • 39 posts
  • Gender:Male

Posted 08 December 2018 - 05:37 AM

Hi there, long time user running three WordPress sites on my account. I've started getting this problem where WordPress no longer seems to have the permissions to write to files anymore. When I go in the admin area to update plugins, I get the following message:

 

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

 

I could set up FTP as a workaround, but if there's any way to restore normal abilities to the app, that would be great. I'm also kind of wondering why and how WP lost the ability to do that on its own - I haven't changed anything on the site in some time.

 

Googling this leads to possible solutions, but only if you have command line access to the server, I think. Here's an example: https://www.chriscou...eb-server-error

 

Anything I can do to fix this? Thank you!


Edited by JpTiger, 08 December 2018 - 05:38 AM.


#2 Krydos

Krydos

    Rank X Member

  • Root Admin
  • 17,567 posts
  • Gender:Male

Posted 08 December 2018 - 06:17 AM

You don't need command line to change permissions. You can do it through cpanel file manager, or through sftp. I'm not familiar with wordpress so I have no idea what the permissions are supposed to be, but generally 7 = read,write,execute - 6 = read,write - 5 = read,execute - 4 = read, and so on. In order for php files to not give a 500 error they need to be 644. Directories usually should be 755, but if you want a script to be able to create a new file inside the directory you might need to make it 777. Perhaps google what wordpress permissions should be and then compare it to what you have.

#3 JpTiger

JpTiger

    Rank I Member

  • Members
  • Pip
  • 39 posts
  • Gender:Male

Posted 08 January 2019 - 03:44 AM

I guess I was wrong about the cause being the permissions then. I went into cpanl File Manager and set the permissions to the folder with the WordPress installations to the recommended 755 (from 750) but I'm still getting the same issues with updating plugins through WP interface.

 

The link I had in OP (https://www.chriscou...-server-error) references problems with ownership settings as well. Is that something I can manage on my end?

 

EDIT: Did some more digging and realized that I'd used up my 1GB quota. I'd bet that has something to do with this. I downloaded some large backups and deleted them from the server which should have freed up some space, but that doesn't yet seem to be reflected in my disk usage stats. Issue remains...


Edited by JpTiger, 08 January 2019 - 03:57 AM.


#4 Krydos

Krydos

    Rank X Member

  • Root Admin
  • 17,567 posts
  • Gender:Male

Posted 08 January 2019 - 05:06 AM

You can't nor should you need to change ownership of any files or directories. Everything in your home directory and public_html should be owned by you already.

I don't know if it will help, but I found this https://codex.wordpr...ile_Permissions

I'm sure you've heard us ranting and raving about how horrible wordpress is, and we've come really close to banning its use on our servers. Maybe this is a sign that you should switch software?  :rolleyes:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users