Double Website Host - html

I have a website that is critical to keep online 100% of the time.
I have a decent host, but every once in a while even the best host can go down.
It is for this reason that I was wondering if there was a way to have your website "double-hosted".
I'm using c-Panel, but I'm haven't found anything in there that could help.
I know it'll be some mess with having to change the nameservers as well, so is there an easy way to quickly switch up nameservers, in case my first host should go down?
Thank you in advance.

When you use Wordpress, you can install another website on another Webhoster but use the same Database. Problem: Your ISP just can take one IP Adress for your website. When http://idontknow.com goes offline, the DNS Record have the IP from your http://idontknow.com server. Now you can change the IP adress when you see that your website goes down, but the changes can take up to 24 hours.
I think the best way is to use cliudflare. So you can redirect on your second page that use the same Database.
The struture is like this:
Server 1: Database
Server 2: Website 1 (Primary)
Server 3: Website 2 (Backup)
Now when cloudflare know that your server have no response it will be redirect to Server 3. When the Server is online again, it will be redirect to Server 2.
Greetz

Related

How to get file contents of old site on drupal?

We have a site running to drupal and migrated it to Squarespace. I have to retrieve some pages of drupal site but I can no longer view the site. Do you know any way to get the old content of website on drupal? Please know that we still have access to the drupal box. Any suggestions will be a big help.
Easiest way would be to make the old Drupal site available again through the browser running on a different domain like old.example.com, login into the admin panel and start copy/pasting content.
If you know your way around your computer, know the IP address the old server is running on you could for the time being change the host file of your machine to send requests for your site to the old server and get access to the site that way.
Migrating content by automating the process is also an option, but it is not only time consuming, it requires in depth knowledge of both platforms so is mostly a very expensive solution if you are not able to do this yourself.
But if I read your question, I think the first option is the easiest option. Get a hold of the technical person/party of the server the site is running on and get them to make the site accessible on a different domain.

How to password protect website hosted on Amazon Web Services (AWS)

I wanted to create a website that would be like a dropbox of sort, which just has files that me and my organization can access. I wanted to password protect the website, just a simple username and password. I have my own domain. I have been looking all over the web to find how to do this(I am a beginner) and found that using httaccess and htpasswd would be used to secure a website similar to what is shown here: http://www.htaccesstools.com/articles/password-protection/
But I cannot seem to get it to work. I am using the s3 bucket and putting the httaccess and htpasswd file in the same folder as the index.html file. Do you know how I would get my site to have a simple password protection(thats not seen in the source code or by typing in the html)? I am not sure if I am finding the directory correctly or not to implement this password protection correctly. Thank you for taking the time to read this and hopefully this makes sense!
Anyone else had this issue?
Amazon AWS alone won't do it. htaccess and htpasswd are also not the right tools for what you want to do.
Get yourself a cheap hosting account with a company like hostgator or godaddy or namecheap or any other that will host your web page and give you PHP and MySQL.
You cannot accomplish what you want just using javascript/jQuery. Those languages run on the browser, but you want to store your files on a server. Therefore, you need the language that controls the server - that is usually PHP. (The other popular solution is ASP, which is by Microsoft and runs on costly and complex Microsoft servers -- PHP is free and runs on (free) Linux and is therefore what ALL of the cheap web hosting companies provide. MySQL is the (free) database that is analogous to Microsoft SQL)
Next, watch a video tutorial on creating a PHP / MySQL login system, such as the ones over at:
phpAcademy (now called codecourse, apparently)
theNewBoston.com
You need to learn more about:
PHP sessions
Ajax
jQuery
MySQL (possibly)
On a basic website, you can stick your files into directories and control who can access those directories by whether or not they are logged in.
You can determine if a visitor is "logged-in" or not by asking for a username/password and setting a session variable. Session variables are just variables that are stored on the server, rather than on a user's own computer (of course, that wouldn't work since every visitor has his own computer and your files are stored on a central server -- so that is where the security (variables) must reside, right?)
Anyway, in a weekend of video watching and trial-and-error you can probably get something cobbled together that will do what you want.

Previewing dedicated server MySql not working

I am moving a clients website from one dedicated server to another. (UK2.net to Fasthosts.co.uk) and would obviously like to check everything has transfered correctly before making the final switch to avoid any downtime.
I have successfully transfered everything across such as MySql database, webpages etc. I have set-up the CPanel for the user as well and so now would like to check everything is working. I have manually gone through a lot of the CPanel to check things like the page locations, database etc but will now look at the physical side.
I know that I can view the site live in-browser following with http://xxx.xxx.xxx.xxx/~username (substituting IP and username where needed) but this is where I encounter my problem. The site shows up fine but when clicking to a specific page some of the MySql queries are not working correctly, basically data is not showing up where it should be and I am wondering if this is just because it is a preview rather than the full thing or is there more to this? I have not altered anything of the website just transferred it across to the new server.
I know that this seems a bit long-winded to explain my problem but felt that it needed some back story! Thank-you in advance

Odd Umbraco backend behavior after deployment

I've had this before, but can't seem to replicate the steps I did back then.
I've got an Umbraco 4.5.2. site which is running on port 8084 in a development-environment. All works well.
When I want to publish the website to the production server, the umbraco-backend seems to want to keep using the port 8084 and therefor my backend (starting at login) is really strange. Can't seem to update any content (or anything else for that matter).
Now, I assume, it has something to do with caching of sorts, but what setting to change (or what to delete)?
This is my login-screen (no red border on erronous login)
And this is my back-end (there is content - i can see content in the front-end - just not visible in the content-tree);
This is my back-end on the development machine (did nothing but crude copy and edited the database connectionstring to match my production database).
How do you change the port number? I am assuming you're putting it into the hostname on the root item in umbraco content tree.
Have you tried republishing the entire site to make sure the published links do not contain the port number?

Uploading a Content Management System Website to the internet

Before I start I want to say this is my first site I am uploading that has a database - so I will appreshate any help whatsoever!
What site is the best for webhosting - the cheapest and most reliable? I'm not sure how big my database will get - but I need to have a lot of space! (just in case).
I, of cource, don't want my site to break down, so need a very reliable well known site. I have an account already with 1and1.com - and know about Godaddy.com but neither of them are really THAT cheap - if you know what I mean. There is one site I found : "http://www.000webhost.com/" - does this seem alright?
Also, when I upload my site and database - do I have to leave my computer on full time to allow my database to be added to etc?!! Is there some way I can upload the database from my computer - so it's not anything to do with my computer ... or something.
As you can tell - this really is my first site - and I have really know idea.
Im using MYSQL, Coldfusion and Dreamweaver btw.
So again, any help would be great. thanks.
Cheap, Reliable, Easy.
In general, you can only pick two from the above.
Check out bluehost.com.
No, you do not need to leave your computer on. You definitely want to put the database on their server, not yours. It sound like you need to do some research on that.
Upload the CMS files from your local system and then perform an export of your MySQL database (software like phpMyAdmin makes this dead simple) and then import it to your new database on your new host. Modify the configuration of your CMS (database host, username, and password will need to change) and check that it connects and reads the database properly and everything works right.
That way you don't need to leave your computer on all the time - you're literally moving your entire website to their server.