Forum Moderators: phranque

Message Too Old, No Replies

Switching from a Windows to a Linux host

what should I be prepared for when switching hosting os

         

chadmg

1:49 pm on Jul 22, 2004 (gmt 0)

10+ Year Member



I currently have a shared Windows host who I am very dissatisfied with and it's time to switch. My site is completely asp with an MS SQL server. I also have many email accounts.

So I am considering moving the site over to a Linux host. It will be cheaper, faster, more secure, and just an overall happier experience using Linux. The downside is that I am using the site to prove my asp skills as well as to experiment and learn new asp skills. I have the option to use Chili!Soft ASP but it is cheaper without that option, so I am wondering how much I need an asp site. I can always just use my home PC to experiment with asp and iis and I can post asp code on my php site as coding examples. But I will have to spend a lot of time rewriting the code in php, which is only a time concern.

This will be quite a large project to move my site. There is quite a bit of coding and some hefty databases. I don't have any experience with Chili!Soft ASP. Is there any difference between ASP on a Windows Server and ASP using Chili!Soft? All of my code is written in ASP Javascript. There is also the matter of migrating my old databases to the new server. I will not have an ms sql server on the new host. So even if I continue to use asp I will have to change some of my coding a bit to use a new database. What is the best way to migrate a MS SQL database to a MySQL database?

There is also the email situation. Under the best of circumstances I would not like to lose any email. So my plan is to set up the new host with my new email addresses and then change the nameservers. Then I will cancel my old hosting. Is this the best course of action? Will I lose any email this way?

My last concern is my domain registration. I registered the domain through my hosting company and they have been in charge of reregistering the domain. Is my best bet to transfer my domain name to a new registering service? Will I need to pay another fee immediately for doing this, or do they just want my future business? It is already paid for another year or so.

Is there anything else I should be thinking about before I start this process?

digitalv

1:55 pm on Jul 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Honestly you should probably continue to host with Windows. You're not going to have the same ASP capabilities on Linux that you do on Windows, just basic code - no objects/components. Most of the Linux guys around will tell you "sure no problem, come on over" but the reality is that ASP was meant to be run on Windows servers - period. Anything else is a hack.

Going from MS SQL to mySQL isn't too hard, most of the code is the same its just a bunch of little stuff like date/time formats, using LIMIT instead of SELECT TOP, etc. If you're using any stored procedures, don't go to mySQL - only the latest version of mySQL supports stored procedures and its not a full release.

rogerd

2:02 pm on Jul 22, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



It will be cheaper, faster, more secure, and just an overall happier experience using Linux

I've got sites on both Windows and Linux at a variety of hosts, and I'd say while there are some elements of truth in the above statement, the differences are very unlikely to outweigh the cost and hassle of what could be a whole-site rewrite.

If you are happy with your current software, stick with Windows hosting. If your current Windows web host is too expensive, too slow, and doesn't stay up to date with patches and other security measures, find a new Windows host. There are plenty of cost effective, competent Windows hosts out there.

isitreal

2:05 pm on Jul 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I'd second digitalv here, you need to make a decision on what programming language you're going to use, if you're going to be on *nix servers then use PHP, if Windows, ASP, stick with what each system does natively, without hacks, you can't count on ASP support on *nix servers, nor should you, since it's an odd thing to do, as digitalv says.

However, if you need to work on asp programming, then you should probably stick with windows boxes, my experience is it's very hard to motivate with programming unless your work is for a real reason, like running a real website.

The upside of switching to apache/php/mysql[or postgre] of course is that you can host on rock solid servers, freeBSD being my favorite, and never have to worry about your code running right, I'm a fan of the open source options, they are just more pleasant to work with in my opinion, but it's a pretty big decision, so go with the direction you want to develop in, I started on ASP/IIS, hated it, found PHP/Apache and loved it.

HUGE upside to APACHE? .htaccess. things like mod_rewrite are amazing products, once you start learning that subset of programming you will probably never look back, there's a reason google/amazon/ebay/friendster etc use Apache/*nix servers.

encyclo

2:19 pm on Jul 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you want to stick with ASP, then you should stick with a Windows host. Last I heard, SunONE ASP (Sun bought Chili!soft a while back) couldn't even handle database connections (this may have changed, but still...). Especially as you mention that the site is meant to be an ASP showcase, I don't think that running the site on Linux is a good idea in this case.

However, that doesn't stop you from changing hosts if you are not satisfied with your current hosting company. Competition is fierce - if you are looking for better security, chose Windows Server 2003 rather than 2000. The basic steps are:

1. Start by transferring the domain name to another supplier - you will probably only have to pay for an extra year with the transfer being free. The new supplier will guide you through the process. Wait until the transfer is completed before changing hosts (in case of delays, etc.)

2. Order your new hosting package first, at least two weeks before the old hosting runs out. Upload the site, and test by changing your hosts file to get to the new server. Set up all the email accounts, etc.

3. When everything looks OK, switch the nameservers in your domain name supplier's control panel.

4. DNS propagation takes up to five days - during this period, check your email with both hosting companies (use the IP address to connect to each mailserver to avoid DNS problems.

5. Googlebot (and others) cache DNS for longer than the five days. Check the stats daily with each hosting company. When you see Googlebot and Slurp on the new hosting company stats (and that the stats on the old hosting company have dropped off completely), then you can cancel the old hosting.

chadmg

2:21 pm on Jul 22, 2004 (gmt 0)

10+ Year Member



Yes, it's a pretty huge step to reprogram a site from asp to php. The site isn't "that" large, it's just a personal website, nothing commercial. This website was my very first hosting experience. All of the jobs that I had used windows servers so I naturally looked for a windows host. Since this was a shared server I've had to use a lot of hacks to do things that are so simple with just an .htaccess file. Since that site, I have several, I've moved to php and loved it. I hardly do anything on my old personal site anymore. So redoing it in php would be a hassle, but doable.

However, if you need to work on asp programming, then you should probably stick with windows boxes, my experience is it's very hard to motivate with programming unless your work is for a real reason, like running a real website.

That's so true isitreal. That's why I'm debating using Chili!Soft. I can always use IIS on my home pc, but no one will see that but me. It's hardly a motivator. But I also don't have much time for that anyway, so it might not even matter.

I have a few websites that I'm getting ready to launch and I need a 'nix host. So I will just throw this website on with this hosting. It's my cheapest option. So I will redo the site in php. With this decided, thanks for the words of wisdom guys, do you have advice for my other concerns?

1. MS SQL database (without stored procedures) to a MySQL database
2. Keeping my email accounts active
3. Domain registration

isitreal

2:49 pm on Jul 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



1. MS SQL database (without stored procedures) to a MySQL database
2. Keeping my email accounts active
3. Domain registration

Question 1, whatever digital v says, he knows what he's talking about.

2. Setup your new email accounts with the same information as your old ones, the one difference you might see is how the user name for the email account is setup, otherwise the transition is pretty seamless, when I switch hosts I try to do all the major switches friday night, including dns stuff, and find it's pretty much all ready to go by monday morning, almost transparent to clients barring the odd bug or two. I setup the entire package all at once.

3. Transfer your domain registration now, that can take forever depending on who the old one was, sometimes they don't cooperate in the transfer, or 'lose' the transfer, or fail to release the name, do this long before you change hosters, I strongly advice against using cheapo registrars, I read one here recommended a few times and it sucks, no zone information, cheesy forwarding, no features, and all to save a few dollars a year, huge amounts of ads at every step, no thank you (rhymes with caddy). For only $10 more a year, I get: 0 ads, full zone control, pro support. Same advice in general for hosters and registrars, it's not worth it, the money I save I always pay for with my time, or with reduced services.