Support

Akeeba Backup for Joomla!

#39135 Extracting goes wrong

Posted in ‘Akeeba Backup for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
8.1
Akeeba Backup version
n/a

Latest post by nicholas on Monday, 26 June 2023 10:57 CDT

caroline.b

Recently we get an error on a number of websites when we want to restore a backup with the option "directly":

An error occurred

Could not open /home/site14/domains/ilse.cursist14.site/public_html/htaccess.txt for writing.

However, all folders and files are writable.

If we check the option "Ignore most errors" it works just fine.

What could be the reason for this?

 

You can test it on https://ilse.cursist14.site/kickstart.php

nicholas
Akeeba Staff
Manager

As the error message tells you, the file htaccess.txt in your site's root cannot be written to by PHP. This is an ownership / permissions issue, either of the file itself or its containing folder (with a very small chance of it being an open_basedirs issue, though I have not seen any hosting company run by sane people use that kludge in well over ten years).

You said that the folders and files are "writeable". Writeable by whom? Your (S)FTP user which is different than the user PHP runs under? Your hosting control panel which runs as root? Or writeable by the PHP user which is different than the previous two? There's your problem ;)

Please do read very carefully the entire Security Information chapter of the Akeeba Backup documentation to understand how ownership, users, groups, and permissions work on your server.

As for checking the "Ignore most errors" option, it has the effect of Kickstart ignoring most file creation errors (including file write errors due to ownership and permissions). Essentially, you skipped over all files; nothing much was extracted.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!