Support

Akeeba Backup for Joomla!

#37310 No Database Support

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
n/a
Akeeba Backup version
n/a

Latest post by nicholas on Tuesday, 21 June 2022 02:52 CDT

ab.sam

EXTREMELY IMPORTANT: Please attach a ZIP file containing your Akeeba Backup log file in order for us to help you with any backup or restoration issue. If the file is over 10MiB, please upload it on your server and post a link to it.

I am doing a test restore ... followed the instructions ...

Am hung up on pre-insinstallation check - Database Support X NO.

Cannot find anything in the documentation

kickstart.php is renamed to frank.php

 

ab.sam

PS: Site was running on this server (CyberPanel)

Database exists and still contains old data.

Can I restore the database and complete the process manually?

ab.sam

I managed to bodgie it to run .... site restore script doesn't work from inside Joomla which is clearly talking to the database Akeeba cant find it...

Nicholas is aware of the challenges we have had with CyberPanel ...

where can I find the database file so I can restore it manually?

ab.sam

Would you be so good as to tell Nicholas that similar to the problems we had just fixed with Joomla Core and Litespeed, Akeeba also creates the same problem because of what it is doing with the .htaccess file.

It appears to not only rewrite all the stuff we deleted but a whole new litespeed section <If Module> as well ....

Stupid me has taken two hours to find why my site kept falling on its arse.....

Anyway long story short ... is there anyway to get the old akeeba ... the one that just archived the files into zip file and did a sql export .... please ????

nicholas
Akeeba Staff
Manager

The archive extraction, as documented, renames the .htaccess file to htaccess.bak. This means that your server falls back to its default PHP version which might not have mysqli enabled, hence the notice that there is no database support. As I've said in other tickets last week that page does not look for PDO MySQL. I'll publish a new version which does and is more accurate in that respect.

At the end of the restoration the htaccess.bak file is renamed to .htaccess unless you explicitly tell the restoration script to do something else. If you choose to instead use the default Joomla .htaccess it of course uses the htaccess.txt content we've already discussed why it does not work on OpenLiteSpeed. The default setting, using the htaccess.bak content, has been the same since 2006 when this was called JoomlaPack, Joomla was at version 1.0 and the latest PHP version was 4.4. There has never been a version of Akeeba Backup which put the files in a ZIP archive and creates a SQL export. While you can do that if you really want to it's a stupid way to go about it and makes it very difficult to restore sites across servers. JoomlaPack was written in 2006 to fix those problems coming from just ZIPping files and dumping the db. It was actually the continuation of work I was doing since late 2004 before Joomla 1.0 was released, back when the CMS was still called Mambo. The last time I used a plain old Zip with the files and the DB dump was 18 years ago, probably to the day.

Please ALWAYS specify that you are using OpenLiteSpeed. LiteSpeed is a completely different products which doesn't suck hairy balls.

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!

ab.sam

So how do I get it to recognise the database which was the original request. I don’t understand what anything you are saying means … PDO?? All I know is that it doesn’t work from the script and it doesn’t work from inside Joomla either?

I just mentioned the .htaccess because i thought you might be interested that it also adds a bunch of litespeed specific redirects that I have never seen before…. it may suck hairy balls but greasy slippery lightning hairy balls. 

PS you know how to make a guy feel old ….

nicholas
Akeeba Staff
Manager

I am not a spring chicken anymore. Going on 42, feeling like 102 most days :D

OK, let me backtrack and explain the database detection shenanigans.

The first page you see in the restoration script (main page) has the detection for required settings (site can't work without them) and optional requirements (the site will work if they are not met... most of the times, at least). One of these detections is about the database support.

There are two ways for PHP 7 and PHP 8 to support connecting to a MySQL database server (both are PHP extensions which need to be installed and enabled to be supported):

  • The MySQLi connector library. This is the older one of the two and the only one which was supported until Joomla 3.4 if I remember correctly. It's also the only one supported in WordPress.
  • The PDO library with a MySQL connector (referred to as PDO MySQL). Support for this was added later to Joomla and as I said WordPress does not support it.

Since the main page is common for Joomla and WordPress restorations I had only added detection for MySQLi on that page. If the MySQLi connector is not available (not installed or not enabled) the check appears as a red No.

The next page, the Restore Database page, actually does a better check. It checks for each connector separately and lets you choose which one to use.

So, if you have a Joomla site using the PDO MySQL database connector and your server only supports the PDO MySQL database connector you might see the main page saying Database Support: No. However, the very next page will show you a single option: PDO MySQL. Selecting it lets you restore your site.

I saw that problem last week and have rewritten the installer to now use a common detection code which also takes the CMS you are restoring into account. When you are restoring a Joomla site we check for both MySQLi and PDO MySQL. When you are restoring WordPress we only check for MySQLi (since WP does not support PDO MySQL).

So, for now, just ignore the error in the main page and click on Next.

Regarding the .htaccess file, you have the following options:

  • Use the .htaccess file you had included in your backup archive. That's the default and it has always been the last nearly 17 years.
  • Use the .htaccess provided by Joomla which as we saw does NOT work on OpenLiteSpeed.

Remember the initial problem you had and how we ended up discussing this in the Joomla issue tracker? Your original backup did use Joomla's default .htaccess file which does not work on OpenLiteSpeed. Therefore after restoration of that older backup you do need to edit the .htaccess file and remove the problematic lines.

If you now take a backup of THIS site, with the fixed .htaccess, and restore it on an OpenLiteSpeed server with the default settings you will not have a problem. Just don't choose the option to replace your .htaccess with the default since you already know OpenLiteSpeed does not work with it.

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!

ab.sam

Thanks Nick .... your instructions work. A couple of points

1. If SQLi has not been supported from v3.4 should the database not default to POD or perhaps a version check and defaulting to the appropriate one?

2. I was unable to select the php.ini and .htaccess checkboxes in the final page as they are not enabled requiring me to re-edit the .htaccess to remove the offending line ;-) Not a big deal but I suppose they are supposed to be select-able. I keep a zip file of the working .htaccess in root so I can restore to a working htaccess quickly ....

Just remember .... whenever you are feeling old .... there is always someone worse off...

When I started in computers they took more space than my living room and were loaded with punch cards.... and I can tell you the 13 year age difference makes me feel really old ... so if you are 102 then I feel 202 .... but still kicking. We have my father in law living with us and he is in his last months .... that's a constant reminder to soldier on ...

Thanks again ....

PS: Your ticketing system has save at the bottom when composing and at the top when editing .... It would be nice if they were both one or the other :-)

 

nicholas
Akeeba Staff
Manager

1. Forget everything I said and keep only this in mind: This is a known cosmetic issue, we will release a new version later this week.

2. No they are not. They are only selectable when there is a reason. Either way, YOU MUST NOT USE THEM. We have discussed the reason ad nauseam in the two tickets here and the Joomla issue.

> PS: Your ticketing system has save at the bottom when composing and at the top when editing .... It would be nice if they were both one or the other :-)

Not really.

When you are composing you are going through a form. It makes sense the last thing to see is the button to post.

When editing, 9 / 10 times you end up not making changes.

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

Easter vacation: We will be closed from 17 April 2025 16:00 UTC to 21 April 2025 06:00 UTC due to observing the Christian Easter holiday. Support will be closed during that time for both new tickets, and replies to existing tickets.

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!