Support

Akeeba Backup for Joomla!

#13664 Cache settings problem following migration

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 Friday, 28 September 2012 07:15 CDT

wd5mush
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.7
PHP version: 5.3.13
MySQL version: 5.1.63-cll
Host: UK2.net
Akeeba Backup version: Professional 3.6.5 (2012-09-14)

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 Nicholas, My site is now up and running and I'm now a fully paid up member as promised!

I am not absolutely sure if this is an Akeeba problem or not, but as you know more about what goes on under the Joomla bonnet/hood than anyone else I know I thought you might be able to help.

I recently migrated my site from a development folder to the root. I made the move by creating an Akeeba backup file, moving it to the root, clearing all the other files from the server, and then using kickstart to install the backup.

Although everything appears to be working OK, I see about 20 warnings similar to the following displayed on Global Configuration>System>Cache Settings.

Warning: include_once(/home/*******/public_html/libraries/joomla/cache/storage/apc.php.php) [function.include-once]: failed to open stream: No such file or directory in /home/watfordp/public_html/libraries/joomla/cache/cache.php on line 113 (I have added the **** as it is my account name)

What appears to be happening in all these warnings is that a second .php extension has been added to the file name - so apc.php becomes apc.php.php

Have you any idea what might be going on? I am pretty sure these messages were not there before I moved the site to the root. One other thing I did just before then was update to Joomla 2.5.7. so that also might be significant.

Another possibly related thing is the information shown in Global Configuration:Server > Database settings >Database Type

This shows information that relates to my own PC rather than my hosting company. I will not detail it here as it includes my e-mail address, account name and the name of my PC. I did originally have this site running with XAMPP on my own machine, so that is where it might have come from.

Any ideas?

So far as I can tell this is not having any impact on the running of my site.

nicholas
Akeeba Staff
Manager
Nope, this is not related to Akeeba Backup. You will have to edit the configuration.php file and change the session method to 'database' instead of 'apc'. Likewise, change the caching from apc to file.

Regarding your database information, if your live site is showing the values from your local site I wonder why it even works. It would only happen if both the local and live hosts are using the same username, password and database name.

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!

wd5mush
Thanks Nicholas, Looks like this is a bit more complex though as $cache_handler = 'file'; and $session_handler = 'database'; already. I am definitely looking at the correct config file as other changes I have made are picked up. I realise I am pushing my luck if this is not Joomla related, but any other ideas?

Database login and naming details are the same for both servers - deliberate so I could transfer the site from my local machine to the hosting service. I am confident it is using the database on the hosting server as the site runs OK when my PC is turned off. Any Idea how I could find out what it should be set to?

nicholas
Akeeba Staff
Manager
Looks like this is a bit more complex though as $cache_handler = 'file'; and $session_handler = 'database'; already.

Hm, if you're not using APC anywhere, why do you get a warning regarding APC? Unless that's a bug in Joomla! when it tries to detect available cache handlers, one which has gone unnoticed.

Database login and naming details are the same for both servers - deliberate so I could transfer the site from my local machine to the hosting service.

That explains why you see the same details, doesn't it?
Any Idea how I could find out what it should be set to?

You just said that they are set up to be the same, so that's what it should read.

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!

wd5mush
Thanks again. I think I need to clarify a few things. There are about 20 similar messages, and it looks as though Joomla is trying to read a variety of files apc.php, cachelite.php, eaccelerator.php, file.php, memcache.php, wincache.php and xcache.php.

For some reason, Joomla appears to be adding an additional .php extension to the file it is searching for - apc.php.php, cachelite.php.php, etc. which is preventing the files from being found. I have no idea what is in those files, and it could be the contents would be ignored once read, but it is clear Joomla want to read them.

I'll leave the database one for now!

nicholas
Akeeba Staff
Manager
Yep, it looks like Joomla! is doing something funky trying to list all the available caching classes. I believe you can ignore that.

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!

wd5mush
Thanks again Nicholas. I shall take your advice and ignore for now at lest. It certainly does not appear to have an obvious impact on the site. When I have a bit of time I will go through the relevant Joomla code and see if I can track it down. I suspect that I might not be making the best use of the cache facilities, but our site has relatively low traffic levels so I think we can live with it.

nicholas
Akeeba Staff
Manager
Even with moderate traffic (like this site) caching the dynamic content isn't really important. Static file caching is, that's why .htaccess Maker has those options to have Apache compress and cache static files :)

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!