SPECIAL OFFER: Only $69 for access to everything in OSTraining for 1 year! You save $75! 
Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!

Odd Akeeba Backup and Restore Question on Network

3 years 9 months ago #124444 by Madcockney
I frequently use the above for my Joomla test and live sites and the only problems I usually have are of my own doing. I have a Netgear NAS box that I am using manly for backups. However as it has a good processor, transfers are quick, and uses Linux and SAMBA I thought that I would try using it to run some of my test sites from.

I have in recent months returned to XAMPP which uses Apache 2.4 and php 5.5.30 and have had no real issues with sites other than when occasionally setting up virtual hosts. There are differences between 2.2 and 2.4 the way certain things are set up. This is set up on my local computer that runs Windows 10 as the OS.

Now I thought that I could use the local instance of XAMP and the network drive as a virtual host so ended up in httpd_vhosts as \\NAS\dir1\Web_Dev_Sites\sitename.local . That worked. (What doesn't work is using a mapped drive to Web_Dev_Sites.) However the restore using kickstart.php took absolutely ages, the site is about 7 GB decompressed. When Angie took over for the database restore I got a php timeout error plus the following :
\\NAS\Directory1\Web_Dev_Sites\sitename.local\installation\framework\database\restore.php on line 346. That line in Notepad++ is :

if (!file_exists($file))

I didn't think that the timeout will make any difference but changed it to 180 seconds in php.ini and it didn't.

Now in the restore I originally set the database location to localhost, and then when I got the error tried 127.0.0.1 however this had no affect. Now I am thinking that Akeeba ANGIE is getting confused and expects to find the DB on the NAS and not my computer. (I have not yet tried using my computer's IP address or name for the DB location.) I have searched the Net, Akeeba's documentation, Akeeba's support tickets, etc, but cannot find anything though that does not mean that information is not there. It could be what I am trying to do is just not possible with Akeeba or using XAMPP in this way.

Anybody any thoughts on this

Please Log in to join the conversation.

3 years 9 months ago - 3 years 9 months ago #124446 by Madcockney
Replied by Madcockney on topic Odd Akeeba Backup and Restore Question on Network
I have found the answer to this and it is something that I should have realised. I remembered that though with MAMP and a slightly earlier version of XAMPP localhost worked, but on this edition it didn't. If you put localhost into the address bar of your browser you got an error message. I therefore setup localhost1 on my host file and then it would find the default location which in XAMPP is htdocs and everything worked. I therefore put localhost1 into the ANGIE DB location and that worked so it has installed the database and I can log into the back-end.

One thing I have noticed it is taking a long time to load from my laptop, but that could be due to the wireless router as that has 10/100 ports. Another router is on its way with better wifi and gigabit RJ45 ports so that may sort this out. Of course it could also have something to do with the anti virus scanner and firewall that I run.

The localhost issue appears to be to do with configuration either in httpd.conf or httpd_xampp.conf. I could never get to the bottom of it and as localhost1 worked moved on. I would imagine that a change was made within XAMPP that sorted out an issue and then nobody thoroughly checked it out completely before it was passed for release. I should imagine that "Apache Friends" have sorted that issue now.

Please Log in to join the conversation.

3 years 9 months ago #124450 by Nick
Hi Madcockney,

Awesome, glad you got things sorted. By the way, you can tell your expertise is increasingly greatly!
Nice work!

Cheers,
Nick

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining

Please Log in to join the conversation.

Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!