Moving site to another host

Permalink
Hi All,

I have just moved my site go Go Daddy.com. I moved the files and edited the site.php to connect to the database and seems to be working I think... However the site seems to be missing a css file or something as its not displaying properly. I have managed to get this to run on my local computer but when i upload the files it looks like thishttp://www.ardswebdesign.co.uk Hope someone can shed some light on this for me ;(

Thanks

Richard

ardswebdesign
 
hostco replied on at Permalink Reply
hostco
This appears to be an issue with your .htaccess file.

Its possible you either carried over a customized .htaccess file from your old host and some of the code needs to be removed or the standard concrete5 pretty urls code needs to be modified.

Take a look inside your .htaccess file. See if this code below exists.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
</IfModule>


If this code is already there try changing it to

# -- concrete5 urls start --
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^(.*)$ index.php/$1 [L]
RewriteRule .* index.php/$1 [L]
</IfModule>
# -- concrete5 urls end --
ardswebdesign replied on at Permalink Reply
ardswebdesign
Hi

The second block of code is aldready in my file. I have tried the first block as well, doesnt make ant diffterence :(

Richard
hostco replied on at Permalink Reply
hostco
Have you tried disabling pretty urls?
ardswebdesign replied on at Permalink Reply
ardswebdesign
I cant even get logged into the back end on the site, strange getting a 404 error
hostco replied on at Permalink Reply
hostco
If you have this working on local, disable pretty urls there.

Once disabled backup the database then replace the one on godaddy with the one from your local with pretty urls disabled.
ardswebdesign replied on at Permalink Reply
ardswebdesign
I have done that, getting this error now on the home page..

Fatal error: Uncaught exception 'ADODB_Exception' with message 'mysql error: [1146: Table 'ardswebdesign.PageStatistics' doesn't exist] in EXECUTE("insert into PageStatistics (cID, uID, date) values ('1', 0, NOW())") ' in /home/content/29/9503129/html/concrete/libraries/3rdparty/adodb/adodb-exceptions.inc.php:78 Stack trace: #0 /home/content/29/9503129/html/concrete/libraries/3rdparty/adodb/adodb.inc.php(1037): adodb_throw('mysql', 'EXECUTE', 1146, 'Table 'ardswebd...', 'insert into Pag...', false, Object(ADODB_mysql)) #1 /home/content/29/9503129/html/concrete/libraries/3rdparty/adodb/adodb.inc.php(993): ADOConnection->_Execute('insert into Pag...') #2 /home/content/29/9503129/html/concrete/libraries/3rdparty/adodb/adodb.inc.php(761): ADOConnection->Execute('insert into Pag...', Array) #3 [internal function]: ADOConnection->Query('insert into Pag...', Array) #4 /home/content/29/9503129/html/concrete/libraries/database.php(73): call_user_func_array(Array, Array) #5 /home/content/29/9503129/html/concrete/models/user.php(177 in /home/content/29/9503129/html/concrete/libraries/3rdparty/adodb/adodb-exceptions.inc.php on line 78
hostco replied on at Permalink Reply
hostco
How are you backing up the database on local?

The database appears to be missing some tables and is not a complete backup.
ardswebdesign replied on at Permalink Reply
ardswebdesign
I just used the dashboard to to a database backup then import it through phpmyadmin on godaddy
hostco replied on at Permalink Reply
hostco
Use phpmyadmin on your local to export the database.
mnakalay replied on at Permalink Reply
mnakalay
hello,
I had to work with godaddy a little while ago and I know I ran into a lot of problems by uploading my files directly.
One way to solve those problems (it's actually explained on their website) is to upload the files zipped (not rared) and unzip them on the server in a temporary folder using godaddy's interface. When that's done, move the files to the root of the website.

Another problem you might have, because you have a mysql error: [1146... type problem is that you are developing on windows or mac and you have a godaddy linux hosting plan. In that case, many the problem is with mysql case sensitivity.
To understand and fix that problem you have a very good explanation and a free add-on herehttp://www.concrete5.org/documentation/how-tos/developers/mysql-dat... andhttp://www.concrete5.org/marketplace/addons/database-case-sensitivi...

Good luck
ardswebdesign replied on at Permalink Reply
ardswebdesign
Hi

I can see what you mean, I cannot use the plugin locally because I am on an older version on concrete. Ok, so here is what I have done.

Uploaded the site files to godaddy using their interface and unzipped them to the / directory. I then downloaded the database from my old host without modifing anything and uploaded it to go daddy. The database is connecting fine but like i said in an earlier post it seems to be missing a css file because its not displaying propery. I have had a look at my htaccess file and it seems to be ok as well. Hope you can help me, this is my own site but I have a clients to move as well and I am dredding it.

Cheers

Richard
mnakalay replied on at Permalink Reply
mnakalay
ok I checked your website and the css files are loaded but when trying to read them it says "no input specified" so try the following:
1- check in your theme path that you have the files:
/tools/css/themes/earthling_two/typography.css
and
tools/css/themes/earthling_two/style.css
If they are not there or they're just empty files then upload them again.
if they are there and they are not just empty files and the problem is not solved then:

2- From the Hosting Control Center click on the Settings tab then click on File Extension. change the .php (not php4 or php5) extension From PHP 5.x FastCGI to PHP 5.x And it should work.
mnakalay replied on at Permalink Best Answer Reply
mnakalay
I see your website is up and running now. If anything from here helped you with the issue you should mark it as best answer so it can benefit others.

Good luck with everything
ardswebdesign replied on at Permalink Reply
ardswebdesign
Hi,

Thanks everyone for you help, greatly appreciated :)

Richard
mnakalay replied on at Permalink Reply
mnakalay
you're welcome. That's why it's called a community :)