Support

Akeeba Backup for Joomla!

#17969 Development / Staging site - Same server (subdomain)

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 tampe125 on Friday, 01 November 2013 10:39 CDT

imnlimited
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? Yes
Have I searched the tickets before posting? Yes
Have I read the documentation before posting (which pages?)? Yes
Joomla! version: 2.5.14
PHP version: 5
MySQL version: 5.5
Host: (optional, but it helps us help you)
Akeeba Backup version: Pro

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,

After going through all tickets and searching the site, I'm not finding a good clear step-by-step instruction to setting up a dev / staging / clone site in a sub-domain on same server.

I was sure I noticed something a couple of weeks ago, but I just cant find it now...

Could you maybe point me to the right place or provide me with clear instruction on how to create a development site in a sub-domain on the same server as live site?

We also use Admint Tools Pro, with .htaccess creator.

Thanks,


Andrew

tampe125
Akeeba Staff
Hello Andrew,

first of all create a new subdomain inside your control panel.
If possible, avoid creating it inside your public_html folder, instead create it at the same level of public_html.
This will help you setting up your .htaccess files and they won't interfere each other.

Then backup your main site and restore it inside the development folder.
I'd suggest you to put it offline or, if you have a static ip address, put it in the Emergency offline mode; in this way noone except you will be able to access the dev site.

Finally, when you're done testing, simply backup everything and restore it in the main site.

Hope this helps.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

imnlimited
Hi,

I can add the dev site folder in the same level as the 'www / http_public' as we have our own server. What do I need to do with regards to the DEV sites .htaccess file then? Your last comment: This will help you setting up your .htaccess files and they won't interfere each other.

What steps (details please - steb-by-step instructions) should I take to then backup and restore our current site to create the dev / staging environment?

I guess also that the last comment you made as a suggestion: Finally, when you're done testing, simply backup everything and restore it in the main site., won't work as the site content is ever changing... e.g. jReviews, JomSocial, EasyBlog, EasyDiscuss, etc...

I looked at this entry: https://www.akeebabackup.com/documentation/walkthroughs/advanced-site-transfers.html

A nice detailed 'Walk Through' might be nice for other users and potential clients and Joomla users looking at a solution to easily create a development environment.


Thanks...

tampe125
Akeeba Staff
If you have to set special or complicated rules inside your htacess, you should have some problems if you have two sites nested one inside another one.

You can create a profile with Backup type set to Site files only, in this way you won't rewrite any stored data.
Please remember that Akeeba Backup won't delete any file, just overwrite them, so if you want to delete a file, you have to manually do that.

If you really want full development environment, you should consider setting a git repository on your server, so you can simply merge the changes from one branch to another.
However this last step is very complicated to setup, so you should search for a more complete guide on internet :)

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

imnlimited
Hi Davide,

Thanks for that. Is this what you were referring to:
http://docs.joomla.org/Git_branching_quickstart

In the interim, I am just looking for a simple step-by-step walk through on how to create a clone copy of my existing site to do some testing on.

What is the simplest steps to take using Akeeba Backup Pro?

Thanks,


Andrew

tampe125
Akeeba Staff
As I previously posted it, the steps are:

  • Create a full site backup profile (files + db)
  • Create a backup profile where you backup your files only
  • Create a backup of your live site (files + db)
  • Restore it to your dev folder, so you can start working
  • Work
  • When you're done, create a backup (files only) of your dev site
  • Restore it on live site
  • If necessary, manually change your live site database (ie if you added some tables/columns)

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

imnlimited
I found this instructions, is this correct and a good way of doing it:

http://www.ostraining.com/blog/joomla/test-site-akeeba-backup/

Ciao,


Andrew

imnlimited
thanks... sorry I posted before I saw your reply... ;-)

imnlimited
hi,

okay, I'm having some issues:

1) firstly our live site root is located in var/www, is this a security concern?
2) so, the sub-domain for test site would be made var/testsite?
3) would the .htaccess have any issues then, as you mentioned before?

Another option:

I tried to create a testsite on another server as a sub-domain of the live domain test.livedomain.com. However when I try and run test.livedomain.com/kickstart.php, I get a "404 - Category not found" error.

Testing an index.html file works fine in the sub-domain.

Would it work just as good having the test/dev site on another server?



Thanks,


Andrew

imnlimited
Hi,

Really need to get a reply to my last post, please.

Thanks,


Andrew

tampe125
Akeeba Staff
Yes, you can have the dev site in another server, there are no problems.

For further details on how create the folders on your server, I strongly suggest you to contact your system administrator, since he is more qualified to answer you questions.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

imnlimited
I tried to create a testsite on another server as a sub-domain of the live domain test.livedomain.com. However when I try and run test.livedomain.com/kickstart.php, I get a "404 - Category not found" error.

Testing an index.html file works fine in the sub-domain.

imnlimited
got it working.

thanks

tampe125
Akeeba Staff
You're welcome!

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
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!