Greenguy's Board


Go Back   Greenguy's Board > Blogs and Blogging
Register FAQ Calendar Search Today's Posts Mark Forums Read

View Poll Results: How do you update Wordpress
I use the auto update 3 33.33%
I manually update the files 1 11.11%
I try the auto update and when it fails I then manually update it 5 55.56%
Voters: 9. You may not vote on this poll

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 2011-05-28, 06:06 PM   #3
cd34
a.k.a. Sparky
 
cd34's Avatar
 
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
The issue, and I've submitted numerous bugfixes, is that along the way, wp-content gets marked 777, and later plugins/themes write files, wordpress forgets that it should use the FTP layer, and later on everything is pretty much screwed up.

There are two ways to run the machines, setuid (which most companies do) where the apache process runs as the same username as your FTP account. The problem here, is, when wordpress (or any script is compromised), you've given those processes the ability to write over your entire website - every file that you have is able to be overwritten. The alternate way is to run apache in a low-privilege environment - in which case if wordpress is compromised, it is unable to overwrite most of the files.

Somewhere along the line, wp-content was chmod 777 on a system running in low-privilege mode, and some files got upgraded or written to as www-data, then, wp-content was changed back at which point FTP cannot overwrite the files owned by the webserver.

The simple solution, which wordpress has avoided for the last 2-3 years, is a patch that determines what mode it is running on, and, when running in a low privilege environment, uses umask to properly set permissions so that the FTP user can overwrite them.

I've been working on an alternate solution to fix this so that it isn't an issue, but, wordpress assumes that all hosts are running setuid, and doesn't see it as a problem.
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:43 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc