Peter Knight Posted December 10, 2015 Share Posted December 10, 2015 Hi I have this really stubborn issue which has gobbled up my evening. It's clearly a caching issue or a .htaccess but nothing seems to resolve it. I have a site on domain.com and VPS 01 Because I want to develop some ideas on a separate test server, I made an exact copy of the site and database onto temp-domain.com and VPS 02 Any template and include changes I upload to VPS 02 are not showing up. The templates files are on the VPS 02 server and the file manager confirms this. However VPS 02 ProcessWire install is clearly reading files from VPS 01. To confirm this I make a small change to the footer running on VPS 01. I reload VPS 01 and VPS 02 and both sites show the updated footer. These are the steps I've taken to clean things up. disabled ProCache cleared the site>assets and site>cache folders ensured that both config files have the proper httpHosts set but somewhere, VPS 02 is getting it's base path from VPS 01 Furthermore, I can confirm this by viewing the source and mouse-over a CSS file. The root host path is displayed as domain.com/path/to/file for a split second before it displays temp-domain.com Any ideas? Both sites have the same database name, userAuthSalt, user login etc etc so there's lots of room for error. I saw a post regarding running PHP as an Apache Module instead of Fast CGI. This makes no difference to my issue. Link to comment Share on other sites More sharing options...
Peter Knight Posted December 10, 2015 Author Share Posted December 10, 2015 I'm thinking I should shorten my post to what's the best way to nuke the cache and apart from Config and .htaccess, where might a legacy base path be hidden? Link to comment Share on other sites More sharing options...
cstevensjr Posted December 10, 2015 Share Posted December 10, 2015 Are you using separate databases or the same database? Link to comment Share on other sites More sharing options...
Peter Knight Posted December 11, 2015 Author Share Posted December 11, 2015 Are you using separate databases or the same database? I'm using separate databases. Both databases have the same names, usernames and passwords though but they're on different servers. I'm not sure that's an issue though because making an admin change works fine. It's just the template files and includes which incorrectly all come from VPS 01. Link to comment Share on other sites More sharing options...
horst Posted December 11, 2015 Share Posted December 11, 2015 Can you 100% ensure that you are not fetching ProCache files?? You can go the hard way and comment out the complete ProCache section in htaccess, rename the ProCache root directories manually, additionally to (only) disabling PC. Link to comment Share on other sites More sharing options...
Peter Knight Posted December 11, 2015 Author Share Posted December 11, 2015 Horst - ill do try that. I had disabled ProCache from the Modules area but I'll do some renaming etc and test. Link to comment Share on other sites More sharing options...
Peter Knight Posted December 11, 2015 Author Share Posted December 11, 2015 Ok- I found the issue. When you preview a site in Plesk, you can choose a preview URL for the website which generates a kind of URL as follows website-space.com.XX-XXX-XXX-XX.preview-url.com XX etc is the server IP address. My problem was caused because the preview-url.com had some DNS issues and a .htaccess error too. Thanks for the ideas guys. Looking forward now to a strong coffee and several hours redesigning this thing! 1 Link to comment Share on other sites More sharing options...
Martijn Geerts Posted December 11, 2015 Share Posted December 11, 2015 Glad you found it... ps, Plesk is ugly... Link to comment Share on other sites More sharing options...
Peter Knight Posted December 11, 2015 Author Share Posted December 11, 2015 Glad you found it... ps, Plesk is ugly... I quite like it but it's new-ish to me so still a novelty. What do you prefer? C-Panel ? Link to comment Share on other sites More sharing options...
Martijn Geerts Posted December 11, 2015 Share Posted December 11, 2015 On my former job we had several servers all with different versions of plesk. For each server we used the Reseller part of plesk and managing a multitude of hosts. The biggest problem are all those options and screens and on every single version it is arranged in other places. Finding the things I need was quite challenging for me. Arjen introduced me to SeverPilot (kind of wrapper for Digital Ocean) and I love it. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now