Error when updating Joomla

March 30, 2014 5.8k views
I have installed Joomla 2.5.7 on a :LAMP. It all works fine except when I try to update or install extensions. suspect it may be something to do with file permissions. I am a Linnux newbee and any help- would be appreciated. Cheers
3 Answers
What's the error? That would be a great place to start and irons out a lot of possibilities, which right now are endless. paste it there
My Joomla installation works fine but when I try to use Joomla Update I get file permission errors.

When I tried to update Joomla from 3.2.3 to3.2.4 with Joomla Update and Installation method "Write files directly" I get ERROR: Could not open /home/myuser/public_html/joomla root directory/LICENSE.txt for writing. When I do sudo chgrp -R www-data /home/myuser/public_html/joomla root directory/LICENSE.txt and change permissions to 666 on LICENSE.txt it obviously works for that file. But to make the whole update work I guess I need to run sudo chgrp -R www-data /home/myuser/public_html/joomla root directory/ and maybe change file permissions on all files? Is that the correct way?

I don't have any FTP server (and I don't want to have) so I can only use the direct method. I use nginx php-fpm Ubuntu 12.04 LEMP
@Asterix: Joomla's root directory needs to be writable by www-data in order to upgrade. If you change the file permissions to 666, change them back after the upgrade is done as that allows all users to write to the files. The suggested permissions are 755 for directories and 644 for files.
Have another answer? Share your knowledge.