I am attempting to move an installation of CMCMS (latest version) to a new hosting provider.
Currently the site is running on a dedicated server and I am trying to move it to shared hosting.
I am doing so in a test environment (leaving the current site up and running, moving files and database to new host then manually adding entry in local hosts file so I can test if its working).
I have moved files, exported and imported database to new host, changed config.php at new host to reflect database changes and also made tmp files writable.
However, on the new host, if I try to goto the homepage or the admin page (or any page in fact) it just continuously tries to load, then eventually comes up with a message that gateway timed out.
I have uploaded a flat html file, and also a php file and both work fine. so I guess its something to do with the cmsms install.
Could anyone give me an idea what might be wrong, or where I should start troubleshooting?
thanks
problems after moving installation to new server [SOLVED]
problems after moving installation to new server [SOLVED]
Last edited by davids355 on Wed Oct 02, 2013 9:05 am, edited 1 time in total.
Re: problems after moving installation to new server
can you get into backend? if so, clear cache. if not, you can clear /tmp folder manually (leave directories/files that came with distribution). if that's not enough, check your webserver's error log. you can also set debug to true in config.php but this would require some sort of response from cmsms first.
Re: problems after moving installation to new server
thanks. I tried the manual method of clearing cache already, that did not work.rotezecke wrote:can you get into backend? if so, clear cache. if not, you can clear /tmp folder manually (leave directories/files that came with distribution). if that's not enough, check your webserver's error log. you can also set debug to true in config.php but this would require some sort of response from cmsms first.
I will try adding the debut option to config, if not Ill check error logs.
Then Ill report back.
thanks.
Dave
Re: problems after moving installation to new server
Hi rotezecke,
I checked the error log - good job, because it seemed to be stuck in an infiniteloop and the size of the error log was already 20GB!
I deleted the entire site (as its only test environment) and then the error log started growing in size again!
Had to log into shell and stop PHP processes to resolve that issue.
This line is repeated over and over again in error log:
PHP version on the current server (site working) is 5.3.3
PHP version on the host I am moving to is 5.3.22
Don't know if thats relevant?
Any ideas?
I checked the error log - good job, because it seemed to be stuck in an infiniteloop and the size of the error log was already 20GB!
I deleted the entire site (as its only test environment) and then the error log started growing in size again!
Had to log into shell and stop PHP processes to resolve that issue.
This line is repeated over and over again in error log:
Code: Select all
[30-Sep-2013 16:41:41 Europe/London] PHP Warning: readdir() expects parameter 1 to be resource, boolean given in /path-to-files/public_html/domain.com/lib/translation.functions.php on line 47
PHP version on the host I am moving to is 5.3.22
Don't know if thats relevant?
Any ideas?
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: problems after moving installation to new server
Either we don't have all the information, or you are not running the latest CMSMS version OR you have a file corruption problem because readdir() is not called from translation.functions.php, or from it's parent function.
Please provide the contents from the CMS version.php file, AND do a system verification (you may have to re-upload the install directory to do this if you can't access the admin).
Please provide the contents from the CMS version.php file, AND do a system verification (you may have to re-upload the install directory to do this if you can't access the admin).
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: problems after moving installation to new server
Thanks, Im starting from scratch again today, so Ill do a system verification on current host (working) and provide version info as requested, then Ill try the move again and see what happens.calguy1000 wrote:Either we don't have all the information, or you are not running the latest CMSMS version OR you have a file corruption problem because readdir() is not called from translation.functions.php, or from it's parent function.
Please provide the contents from the CMS version.php file, AND do a system verification (you may have to re-upload the install directory to do this if you can't access the admin).
Probably wont be until this afternoon, but Ill post back then with results.
Re: problems after moving installation to new server
thanks for the help guys.
As discussed, I went back to the beginning, and found that the installation was 1.11.8 (which I didnt realise before) so I upgraded to 1.11.9.
then I cleared the cache as suggested.
Then I initiated the migration again - but the thing I did diffrently this time was to tarball the files via shell then extra via shell at the new host whereas last time I uploaded everything by FTP.
Once upladed, it still displayed a blank page, but I was then able to go into admin interface, clear cache again from the new host, and everything worked!
Maybe files got corrupted during ftp upload, or maybe it was the outdated isntall?
Anyway, thanks!
As discussed, I went back to the beginning, and found that the installation was 1.11.8 (which I didnt realise before) so I upgraded to 1.11.9.
then I cleared the cache as suggested.
Then I initiated the migration again - but the thing I did diffrently this time was to tarball the files via shell then extra via shell at the new host whereas last time I uploaded everything by FTP.
Once upladed, it still displayed a blank page, but I was then able to go into admin interface, clear cache again from the new host, and everything worked!
Maybe files got corrupted during ftp upload, or maybe it was the outdated isntall?
Anyway, thanks!