Support

Akeeba Backup for Joomla!

#22443 Restore on test site fails

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 dlb on Friday, 10 April 2015 12:13 CDT

propolis
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 2Mb, please upload it on your server and post a link to it.

Description of my issue:

Hi,

On my live site I have the following:
PHP: 5.3.29
SQL: 5.5.40 cll
Joomla: 3.4.1

On my test site I have the following:
PHP: 5.4.38
SQL: 5.5.40 cll
Joomla: 3.4.1

I also checked the htaccess files on the servers and they are identical

I have made backups on each site. On my live site I use Akeeba 4.2.0 and on my test site I use Akeeba 3.8.3

I can restore the backup on my live site and that works fine. When I restore the backup on my test site, that works well.

When I copy the backup from my live site to my test site and use kickstart 4.0 on the test site to restore the copy from the live site, it does everything as I would expect, except the teamplate , images and some pages have no detaill on them. I have not seen any errors during the restore. If I now on my tests site restore its local backup, all is good.

Not sure why but still searching to try and understand what it is I am doing wrong.

Eddie

dlb
Eddie,

Please check the $live_site variable in configuration.php on your restored site. It sounds like it either has wrong data in it and it should be blank, or it is blank and needs to have the site URL, including the http/https but not including a trailing slash. You have to edit configuration.php directly, that variable can't be accessed via Global Settings.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

propolis
Thanks for the updte Dale.

When you finalise the backup restore, and you enter all the information about site URL, user etc etc, does that not generate / update the information that appears in the new config file or have I got it wrong?

I will give this a go and hace a look again after I tried another restore

Eddie

dlb
I believe that information updates the configuration.php file, it does not replace it. You can update the $live_site information during setup, but few people do. It is something of a black magic variable, mostly it is not used because Joomla! can find the URL without help. I jumped on $live_site because of your description of the problem.

The RewriteBase variable in .htaccess can do the same thing. It is used even less than $live_site, but may be necessary if you install in a subfolder instead of the root.

There is also a post-installation troubleshooting guide here: https://www.akeebabackup.com/documentation/troubleshooter/prbasicts.html.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

propolis
Hi Dale,

I did do the test again. It then failed.

I then compared whats in the route directories of each site. All looked the same until I noticed one extra file in the route dir of the server I am installing the backup to: .htaccess

Not sure what this file is as I have a htaaccess.txt file

I then renamed the .htaccess file to some totally different and all work.

Eddie

dlb
Eddie,

The .htaccess file contains commands for your Apache web server. It frequently causes problems when moving from one server to another because it tends to be customized for a single server.

The file must be named .htaccess, including the leading dot. The htaccess.txt file is a sample file provided by Joomla!. Since .htaccess also contains security commands to harden your site to hackers, you probably do not want to run without it on a live site. You can copy htaccess.txt to .htaccess to use the standard file. It should not interfere with the site. I prefer to copy the file rather than rename it so that the htaccess.txt file is available for just this sort of situation.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

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!