I recently upgraded my server and now I am trying to upgrade Joomla from 3.9.8 to 3.9.20, but I get the following permission warnings:
Code: Select all
Warning: file_put_contents(...../public_html/administrator/logs/joomla_update.php): failed to open stream: Permission denied in ..../libraries/src/Filesystem/File.php on line 450
Warning:file_put_contents( ..... / administrator/components/com_joomlaupdate/restoration.php): failed to open stream: Permission denied in ...... /libraries/src/Filesystem/File.php on line 450
Updating your Joomla files
The website's root directory is located in /home/some-user/....
Also, when I tried to backup the site before attempting the update, I got write permission error for the the Akeeba's output directory !
I have not changed any permissions! same directory structure, same permissions! On Akeeba's site people suggest that the output directory has to be writable for the www-data user. In my case, it was only readable before, and I could easily backup the site!
Anyways, I had to give the www-data user write permission for the output directory in order to save the backup, but I am not sure if this was the right thing to do!
Any Idea what could go wrong?!