Moved to another server
Archived from the Xataface Users forum.
PolderBoy — Mon Jun 18, 2012 7:46 am
Hello All,
I just moved my database and application folder to an other server.
And changed the variables where necessary.
But now when I log in to app onto the new server the records are still linked to the old server adress.
Mouse over the link and the adress is still the old server.
And when clicked I need to login again, which is normal as I am going to the old server.
And before every link there is a world icon.
Please see screenshot.
How and in which file do solve this?
Thanks in advance.
Brian
shannah — Wed Jun 20, 2012 10:04 am
Are you using output caching? If so, you’ll want to clear the cache. Also make sure you don’t have any other places in your application where you hard coded the old url.
PolderBoy — Wed Jun 20, 2012 2:03 pm
Dear,
Thanks for the reply,
I have searched the forum for clearing a cache and found tree solutions:
- using: index.php?-table=tblProjects&-refresh-apc=1
- putting in index.php
define(‘DATAFACE_EXTENSION_LOADED_APC’,false);
- put into conf.ini
[_output_cache]
enabled=1
1 and 2 give no result
3 if I refresh several times , quickly after each other, it looks that the world icon disappears but the last refresh it comes back.
(if I put a zero in the value, the world icon always stays.
I have trancate the table: _output_cache
I have cleared the templates_c folder as well.
All these I have found on this forum.
No result.
But when I click on a link I have to login again the links are now to the local IP adres of the new server. But not to the name of the server.
so:
xxxxx.com/Beheer/index.php?-table=tblSettings
shows the world icon and:
192.168.178.26/Beheer/index.php?-table=tblSettings
does not show the world icon.
Now I have to admit that this could be the case all along.
So that I have been looking in the wrong place.
I have my own little server running from home. Ubuntu 12.4 with apache2/php/mysql.
I have a name (.nl) which redirects to my ip adres
Maybe this goes beyond the xataface programm but I would like to solve this.
(I am away for a week from tomorrow, please do not think that I am being unpolite. I am on holyday tomorrow.)
Thanks in advance
Brian
Jean — Wed Jun 20, 2012 11:58 pm
Brian,
I suggest you drop the views in the database and may be you empty the templates_c directory.
Jean
PolderBoy — Fri Jun 22, 2012 8:59 am
Dear Jean,
I have done that already.
As stated:
I have trancate the table: _output_cache
I have cleared the templates_c folder as well.
But thanks for the reply.
With regards,
Brian