BACK UP – FATAL ERROR?

educelon / 2011-12-12 21:02:20   

Hi,

Few days ago I decided to move from standard to cloud hosting, as the web hosting I'm using told me that they are in the process of phasing out the standard service. Fair enough, I thought. As they stated, I only had to follow 4 steps:

1. Sign up for a cloud hosting order.
2. Transfer my website’s files via FTP from my standard hosting plan on my new cloud account.
3. Change my domain record.
4. Cancel hosting for old domain.

After doing the 4 steps, though, the website didn't work.

I got in touch with the web hosting help desk and they told me that I need a backup of my old database that was storing the information on standard hosting, but (hence the problem) I really don't know how to do it – bear in mind I am very very basic at this.

I thought that with only transfering all files via FTP would be enough… By the way, at this moment the FTP is structured as following:


> www.educelon.es > lib > peri > php > logs > web > cgi-bin > content > favicon.ico > files* > index.html > index.php > ndxz-studio**

* In this folder there all image files I uploaded in the standard host
** With all folders (asset, config, db, extend, helper, lang, lib, module, site) and all files (common.php, defaults.php, index.php, license.txt, readme.txt)

Having this in the FTP, do you think is it possible to mantain the website as it was in the standard hosting? What do I need to do to make it work?

Thanks in advance,
Eduard

educelon / 2011-12-12 21:14:47   
  1. > www.educelon.es 
  2. >> lib 
  3. >>> peri 
  4. >>> php 
  5. >> logs 
  6. >> web 
  7. >>> cgi-bin 
  8. >>> content
  9. >>>> favicon.ico 
  10. >>>> files*
  11. >>>> index.html
  12. >>>> index.php
  13. >>>> ndxz-studio**

Sory, hope now it makes more sense. Each ">" means it is a subcategory.

pernin / 2011-12-13 00:38:52   

sorry, it doesn't make much sense from where I'm looking :/

this is what you would do for moving to another host/server. Whether it will work with cloud hosting, I haven't the faintest idea as I have no experience with that

I would expect that your host would help you move, as they are forcing you into this which probably doesn't provide you with any major benefits. I wonder if you also are paying more... ;)

what you need is the following (this is for indexhibit, whatever else you have there is not included here):

1) your index.php and htaccess (which may be called .htaccess)
2) your files folder and all folders and files under it
3) your ndxz-studio and all folders and files under it
4) any other folders you may have chosen to create outside the files folder for use in indexhibit

then you need the famous mysql backup:
you need to log in to phpmyadmin, choose your database and export your tables. Look into your host's control panel for all this

then you will need to upload all the folders and files you have just backed up into site, at the root as it was before: ask your host what the root is

then you will need to create a new mysql database, and import your tables into it

and last you need to edit your ndxz-studio/config/config.php and change the info there to the new database info (use a plain text or source-code editor, no word or dreamweaver or similar, they will trash your file)

educelon / 2011-12-13 02:13:01   

Hi pernin A,

Thanks for your help. I also have been in touch with the Web Host Help Desk, so let's hope the problem can be solved. Oh, I'm paying just the same amount as before – it is just that they are phasing out all the standard hosting and asked me to move to cloud hosting.

OK, I'll get back to you if I have any news.

Cheers,
Eduard

educelon / 2011-12-14 06:07:33   

Hi again,

I've been able to do all steps, except the one related to the mysql back up – which means bad news. From my web host help desk, they told me that the old account is already canceled and it is no longer stored on their servers. So they do not have access to the old database.

The only way to be able to import the old entries is if I have a backup of my SQL database stored on my local computer, which unfortunately I don't.

I know it's my fault… but does it mean then that I must start from the very beginning? At least, now Indexhibit is working and the website mantains the old theme…

The problem now is that any link I click on the menu (i.e.: "Black and white"), a page like this appears next:


Not Found

The requested URL /a/black-and-white/ was not found on this server.
Apache/2.2 Server at www.educelon.es Port 80

Where is the problem?

Also, updtated in the FTP (inside the "files" folder) there are all the images used for the website. But it seems like I need to upload them again, as any exhibit is empty (no text, no images). Any tip?

Thanks in advance.

Cheers,
Eduard

pernin / 2011-12-14 06:37:53   

this is weird... you shouldn't even get a menu and logo, where did you get that, did you put it in manually? because that info should be in the database, along with text, links to images, etc

the only thing not actually in the database are your actual media files in the files folder and your design theme in the site folder

educelon / 2011-12-14 06:46:47   

Isn't it?

As for the menu, sorry for not stating this before, but I've been creating exhibits this morning. So this is why you can see it on the left.

Besides that, the only thing I did was entering into Indexhbit, clicking to settings and chosin my personal theme instead the deafult "Eatock". Once I did that, then the typo changed and I got the background logo. No menus on the left.

pernin / 2011-12-14 07:12:56   

OK, then you're out of luck -- I was hoping there for a moment that your host had transferred your database too, but nope

You'll have to reupload everything. Go to files and move out/empty your gimgs, as the system will anyway recreate all different types of thumbnails as you upload the images

sorry about the bad news :(

educelon / 2011-12-14 07:22:12   

Hi pernin A,

Yes, I've already assumed it. It's a bummer, but this has teached me a lot of things (not to do something you are not sure 100% and ask before!).

Oh, so I have to move out/empty all my gimgs? Then the website will work? I mean, will this message

Not Found
The requested URL /a/black-and-white/ was not found on this server.
Apache/2.2 Server at www.educelon.es Port 80

dissapear then?

Endless thanks for your support.

Cheers,
Eduard

pernin / 2011-12-14 08:07:38   

No, I mean that as you must upload again all your images, indexhibit will create again the necessary thumbnails and process them. What you have now in gimgs is clutter, and may even conflict with the new images (the database being empty, there's no register of what the images and thumbnails are called)

I don't know what you have been doing, and have no means of looking under the hood. As you anyway need to reupload all your images and rewrite all your text, there's no necessity to have anything at all, not even your menu links. I'd say delete everything and start again, page by page

educelon / 2011-12-14 09:25:22   

Thanks, pernin A. I'll do that then.

Endless thanks :)

Best,
Eduard

educelon / 2011-12-14 10:49:24   

Hi (once again),

I have deleted all images/files inside the "files" and "gimgs" folders. So, now these two folders are empty.

Unfortunately, I keep having the problem when clicking on any menu link.

Not Found
The requested URL /a/black-and-white/ was not found on this server.
Apache/2.2 Server at www.educelon.es Port 80

What's exactly the problem?

Sorry for being a pain in the ass :S

Cheers,
Edu

Vaska A / 2011-12-14 10:54:21   

Likely, you need to edit the htaccess rule to something like this...

  1. RewriteEngine on 
  2. RewriteCond %{REQUEST_FILENAME} -f [OR]
  3. RewriteCond %{REQUEST_FILENAME} -d
  4. RewriteRule ^(.+) - [PT,L]
  5. RewriteRule ^(.+) /index.php
educelon / 2011-12-14 11:16:30   

Hi Vaska A,

The "htaccess" file was the same, except in the fifth line there was not the "/" before "index.php".

To avoid problems, I've just copied the whole text and uploaded the new "htaccess" file into the FTP, overwriting the old one. Unfortunately, it doesn't work… Weird!

Vaska A / 2011-12-14 11:28:25   

Who is the host? Do they allow mod_rewrite?

Like I said, hosts do things differently, I'm just guessing at the change there. The default works on most hosts but not all.

You might not be able to have clean url's on this host...

educelon / 2011-12-14 13:31:06   

The host is Laughing Squid, and I am using their cloud hosting.

I am going to ask them if they allow the mod_rewrite.

I'll keep you informed.

educelon / 2011-12-15 04:33:56   

Problem solved!

Thanks for your help :)

Best wishes,
Edu

This thread has been closed, thank you.