Have been using WordPress for a short time, but have always had problems with upgrading. I’m hosting on my Leopard Server, and WP runs fine otherwise. I’ve searched around and came upon your post.
Changed the owner and group of all the files in the blog directory tree and it works! Just upgraded from 2.8 to 2.8.1.
I did find I had to use “localhost” as my server, but other than that, it was seamless.
Thanks for the tip regarding the www-data permission in the WordPress directory; I was able to finally use the automatic update function @ localhost. You saved me from hours of headaches!
Don’t worry too much, I tried explaining the ‘mixed’ results but it was terrible bug reporting so won’t bother.
I should have said though that the owner of the folders/files was the same user being used to ssh in to the server through WP. However, it wouldn’t work correctly until www-data was the owner of the files/folders. I just assumed providing ssh details for a certain user would mean that was the user account under which the commands are performed; however, it seems like it’s actually all done under www-root by the server.
I too was scatching my head trying to get the update to work, i put local host into the server box and low and behold it came to life, when I was convinced it wasnt going to work lol !
Great post. My environment, however, didn’t have ‘www-data’ user/group, but rather ‘apache’. With that, it worked great. Using httpd-2.2.15-1.fc12.2.i686.
23 Comments
Fred,
Have been using WordPress for a short time, but have always had problems with upgrading. I’m hosting on my Leopard Server, and WP runs fine otherwise. I’ve searched around and came upon your post.
Changed the owner and group of all the files in the blog directory tree and it works! Just upgraded from 2.8 to 2.8.1.
I did find I had to use “localhost” as my server, but other than that, it was seamless.
Thanks!
Fred,
Thanks for the tip regarding the www-data permission in the WordPress directory; I was able to finally use the automatic update function @ localhost. You saved me from hours of headaches!
Thanks again
You’re welcome! I had this problem too.
Regards!
Just installed 2.9 and I do not have a www-data inside my WP folder
hello how do i give www-data permission ? can you explain ? i am having the update problem..
Run the following command (Debian/Ubuntu) in your WordPress directory (sudo required):
sudo chown -Rf www-data *
Hi,
www-data is not a folder. www-data is a user/group used for Apache.
Hi Fred! This seems like the solution I need! But when I try to give www-data permission, I get the error:
chown: www-data: Invalid argument
Hi Phil,
try this:
sudo chown www-data:www-data * -R
What’s your OS?
Regards
Thanks! Any ideas why even if a certain user is a member of the www-data group the upgrade sitll fails? I got very mixed results before i chown’d.
Show your results.
Don’t worry too much, I tried explaining the ‘mixed’ results but it was terrible bug reporting so won’t bother.
I should have said though that the owner of the folders/files was the same user being used to ssh in to the server through WP. However, it wouldn’t work correctly until www-data was the owner of the files/folders. I just assumed providing ssh details for a certain user would mean that was the user account under which the commands are performed; however, it seems like it’s actually all done under www-root by the server.
Hi there
I too was scatching my head trying to get the update to work, i put local host into the server box and low and behold it came to life, when I was convinced it wasnt going to work lol !
Many thanks
Woc
Чувствуется сразу, что писал человек хорошо разбирающийся в этой теме
Интересно, где Вы нашли столь полезную информацию. Буду признателен если дадите истинный источник
Написано конечно всё правильно, хотя и только поверхностно. В любом случае спасибо
Спасибо за полезную информацию! Обязательно подпишусь на рассылку
Посмотреть на Google: http://www.google.com.br/search?hl=pt-BR&q=automatic+upgrade+error+wordpress&aq=f&aqi=&aql=&oq=&gs_rfai=
I will add your site to favorites. Great work!
Interesting post i totally agree with the comments above. Keep us posting
Of course, what a great site and informative posts, I will add backlink – bookmark this site? Regards, Reader.
Great post. My environment, however, didn’t have ‘www-data’ user/group, but rather ‘apache’. With that, it worked great. Using httpd-2.2.15-1.fc12.2.i686.
I am impressed with this website , real I am a fan .