Free articles
Google
Web www.media13.com


Media13.com is a source of free to republish or reprint articles, writers may submit your articles in our database as long so you agree that your article will be freely republish or reprint by other.


Submit Article

Search our database

Received article from us.

Name

Email Address

Friends

Bollywood News
Link building
Article submission service
Freelance Writers
Laser hair removal

We have been looking for freelance writers. Contact us

 


How to migrate your Linux Web site to another hosting company   by Gary Sims



The Web site hosting business has become more competitive in recent years. If you can find a better hosting deal, you may be able to save money by switching hosting providers. But what`s the best way to move your Web site? What if you have a virtual private server (VPS) hosting several domains? What about PHP and your SQL data? The thought of moving may be daunting, but moving servers is not difficult if you plan properly. Here`s how.

A complete migration involves transferring the site data itself, meaning all the HTML and possibly PHP and MySQL files and CGI programs. You also need to modify the Domain Name System (DNS) information for the site and for the routing of the site email. DNS holds information that translates IP addresses to human-readable domain names. For Web site migration, the two important DNS records are the address (A) record, which tells the browser the IP address of the Web server, and the mail exchange (MX) record, which tells mail servers how to route the email.

When you migrate your Web site to another hosting provider, you need to update DNS to point browsers to the new location of your site. However, it can take as long as 48 hours for DNS updates to propagate to all DNS servers on the Internet. Part of your planning will be how to deal with that delay.

Often your domain name has been registered via a third-party domain name registration company. When you move the site, your domain name company remains the same, and only your Web hosting company changes. If your domain name originaly came with hosting, you may need to contact your old hosting company to see if you can separate the hosting package from the domain name.

The keys to a successful move are planning and preparation. Before the move you should warn your users or customers of the forthcoming upgrade. Prepare a `server down for upgrade` page for your old site. Note the IP addresses of your new and old servers; these will come in handy when DNS is still in flux.

Decide when to upgrade, meaning when your server is least busy. If you have site statistics, use those to determine the best time. To reduce down time, it is best to make the DNS changes several hours before you actually move the domain. As long as your mail server is running on the new server, you won`t lose any email messages. If you have a static site, you can copy over the data before you switch DNS and no one will ever know your hosting provider changed. For a dynamic site you can out a skeleton site on your new server until you make the full move.

The DNS changes you need to make involve updating the MX and A records to point to your new server. To do that, you need to access the control panel provided by the domain name registration company from which you obtained your domain name.

The new MX record will need to point to the new server. Like A records, MX records can take a while to propagate through the Internet. To avoid mail loss you will need to check your old mailbox at least once a couple of days after the move. You will also need to use the IP address of the old mail server rather than its domain name, as you won`t be able to rely on mail.domain.com to check the old mailbox, as that will point to your new server. Depending on how much control you have of your old server, you could shut down the mail server after modifying the MX records, in which case incoming mail would queue up until the new mail server is running, at which point it would be delivered without problems.

Once you`ve handled the DNS information, it`s time to tackle the data itself. HTML and PHP files aren`t hard to move; just use a good FTP program and copy the data from one server to the other. If you have SSH access to both of the servers you can copy the files directly. If you don`t, you will have to download the files to a local machine and then upload them to the new server.

Moving databases is a bit more complex. Assuming you are using MySQL, there are several ways to copy over the data. One is to do a dump of the data into a file and then copy that file to the new server and populate the new database. To do this you use the mysqldump command:

$ mysqldump -p -u username mydatabase > mydata.sql

Once copied onto the new server your can populate your new database with the mysql command:

$ mysql -p -u username mydatabase < mydata.sql

If you don`t have SSH access to your servers you won`t be able to use these MySQL commands, but you can still use a tool such as phpMyAdmin that handles MySQL administration over the Web. phpMyAdmin has excellent dump and restore features, though for the restore there is a maximum upload file size of 2,048KB. You can use compression to maximize your chances of squeezing all of your data into 2MB. [what if you have more than 2MB, as many of our readers will? - Lee, I have altered the next paragraph to clarify this]

If you lack SSH access and you have too much data for phpMyAdmin to handle, look into a MySQL synchronization tool called SQLyog Job Agent (SJA).

If all else fails you will need to ask the support team of your old hosting company to dump your database for you. Then you will need to ask the support team of your new hosting company to populate the new database.[Lee, I have added this paragraph in case readers don`t have ssh, can`t use phpMyAdmin and can`t use SJA.]

If you have a site with dynamic data, such as an e-commerce site, you need to make special provisions for the DNS update delays. As the DNS changes propagate through the Internet some people will see your new site and others your old. This could cause problems for you. Imagine a customer placing an order on your old site after you have moved all the data over to your new site.

There are two [different] ways you can deal with this problem. [Lee, this is an either-or] First, stop taking orders on the old site once you have started the move. At the checkout stage display a polite notice asking customers to come back in a couple of hours, after which they should be taken to the new site. If you don`t have that kind of control over your site then the best thing is to close down the old site by replacing its index.html with a notice saying the server is down for upgrades and will be back soon. An alternative solution is to use a synchronization tool like SJA to make sure any changes made on the old site get propagated to the new one.

Finally, watch out for incompatibilities between the software on your old server and that on the new. Try to make sure that any difference in versions of crucial software like MySQL and PHP won`t cause any problems.

If you host a VPS installation then you probably have several domains to migrate. The problems are the same, but there is more work to do. If you have a VPS you should warn your customers in plenty of time about the upcoming move. Call it a server upgrade, as this will cause less worry.

An advantage of having a VPS is that you have more control of your sites. You probably have SSH access and you can do things like shutting down the mail server during the transition. However, if you are hosting domains for others, then there is the problem of passwords. When you move to the new server you will need to re-create domains and user accounts, but you won`t have access to the passwords set by your customers. Generally you will need to issue your customers new passwords. Again, plenty of advanced warning will help ease the pain.

If your VPS uses Plesk 7 Reloaded then migration becomes a lot easier. This software includes a great (though still experimental) tool called the Migration Manager that supports migrating from remote servers using Plesk 2.5.x, 5.x, 6.x, and 7.x, as well as Confixx 2, Ensim 3.5.x, and cPanel 9.

To use the Migration Manager you need to enter the remote host address (it is best to use the IP address), the login name (normally root) and the password. After that you set the remote system type (Plesk, cPanel, etc.) and click Next. The Migration Manager will then send an agent to the remote server and offer you a list of domains and clients on the remote server. If you migrate a client it will bring over the client data (like username and password) and all the domains belonging to that client. If you import a domain you will have to have a client account ready on the new server to take ownership of the imported domain.

Although experimental, for standard cases Migration Manager should work well. In a recent real-life migration, 95% of the domains [I moved for a client] migrated without a problem. There was one domain that had more than 100 subdomains that failed; They had to be copied over by hand!

When moving servers you need to keep downtime to a minimum. If you plan properly your users may not even notice that you have switched servers. If possible, perform a trial run of the actual move. No one will see your new site because you won`t update DNS yet. To enable you to see your new site, edit the /etc/hosts file on your client and add your domain name (including the www) with the new IP address. You should also restart your browser. Don`t forget to remove this entry when you have finished experimenting.

Author Info:

Gary Sims has a degree in Business Information Systems from a British university. He worked for 10 years as a software engineer and is now a freelance Linux writer and founder of Low Price Hosting


Latest 20 articles

Tax Debt Help Needed - How Can I Stop an IRS Bank Levy? The IRS does give you ample warning that they intend to levy your bank account. You undoubtedly received the notice and demand for payment from the IRS which included the amount you owed in back taxes. You probably did not contact the IRS at that time, and that was very important. The next communication you received was called the “Final Notice” which did express their Intent to Levy and also inc

California Labor Laws: Asserting Your Employee Rights Many employees when experiencing a labor violation are confused as to where to turn and typically take one of four paths. 1. A very common path and usually the most treacherous, is doing nothing at all. When an employee is hesitant to hire California overtime lawyers or California labor law attorneys to handle a situation, it usually gets worse before it gets better. Complacency will typicall

California Overtime Laws: Top 4 Common Employer Mistakes A California labor law attorney has revealed the four most common mistakes that employers make in violation of California overtime laws. Although California labor laws for breaks and lunches are clear, nevertheless employers tend to overlook something as simple as giving their employees a meal or rest break. While this is only one of our top three violations, it is often the most overlooked.

A Christian Debt Relief Solution: Debt Settlement Christian families are impacted by difficulties with mounting credit card debt just like non-Christian families. Christians often can be particularly sensitive to finding themselves faced with a situation where they may not be able to meet their unsecured debt commitments. There are many types of Christian credit card debt help out there, and quickly becoming one of the most popular is Christian

Finding Affordable California Health Insurance If you reside in California, it is a strong bet that you need affordable California health insurance. There are many different insurance companies and different types of plans available. Deciding on which one is best for you and your family will require some research. It may be overwhelming but it is paramount to finding the right policy for your particular situation. California individual

IRS Tax Settlement: Could It Provide The IRS Tax Relief You Need? The IRS is coming after you! You owe them money and can’t hope to ever pay the debt! The IRS has threatened to seize your bank account or garnish your paycheck! Everything seems hopeless and there doesn’t seem to be any doubt that the IRS is going to ruthlessly take everything of value that you have. However, there are options to rolling over for the IRS. There are IRS tax relief solution

Credit Card Debt Reduction: Do it Yourself Tips Anyone who's ever owned a credit card, taken out a student loan, financed a car, or paid a mortgage has gathered debt. Debt can feel like a deep pool, but you don't have to drown in it. All you need is a little common sense and some solid budgeting. Remember, you own the debt – it doesn't own you. Here are a few tips that can help you get credit card debt relief you seek. It's like a “do it you

Debt Settlement: Know the Pros and Cons Many people who select a debt settlement program may have already tried credit card consolidation in an effort to resolve their financial difficulties, but may not have been satisfied with the arrangements or the amount of time it was taking to pay off what they owed. For these individuals, debt settlement may provide a faster way to eliminate their debts for the least possible amount of money, wh

Debt Settlement – How Does It Compare? Debt settlement has quickly become one of the preferred methods of reducing credit card debt and starting a new financial future that is free of the vicious cycle that credit card debt problems create! Why has debt settlement become so popular lately? The benefits of a debt settlement program can probably best be illustrated by comparing it to the other options available to consumers caught in th

LCD Wall Mounts and Brackets: WeMountU Offers Versatile Product Range TV wall mounts are undergoing a revolutionary phase of technological improvements. High- end technology has enabled manufacturers to design products for common consumption. Smaller size high- definition TVs have now filled the market stores and anyone with a desire can now afford such luxuries with entertainment.LCD technology based smaller screen size TVs are very common among the customers aro

TV Wall Mount and Brackets Best Buy Online with WeMountU If you have recently purchased a high definition TV based on LCD, TFT, or plasma technology then you must have thought of enjoying viewing digital media experience of the 21st century in its complete sense. Gone are the days when the digital media like the TVs used to be put on a wooden platform or a metallic stand. Wall mounting is the current trend and consumers across the world are enjoying thi

Cantilever TV Wall Mounting: A Revolutionary Concept in Viewing Digital Media with More Comfort Cantilever technology has entered in to a new phase with the incoming of wall mounting feature of the popular digital media. Variable screen sizes of these new age digital media such as the high definition LCD, Plasma, and TFT screen TVs are increasingly becoming popular among the users across the globe. Wall mounting feature of these entertainment hubs has made them even more flexible and people

Large TV Mounts and Brackets: Innovative WeMountU Technology for Large Size Digital Media Size matters and it matters a lot when it comes to TV viewing. The more is the size of TV screen the more it is convenient to view and enjoy with complete comfort. Oncoming of large screen size TVs is mainly because of the introduction of high end technology based LCD, Plasma, and TFT TVs. large size TV wall mounts and large size TV wall brackets are required to place the big screen TVs on the w

TV Wall Mounts and Brackets: Achieving Compatibility with High Definition TVs We are living in an age of high definition wall mounting TVs as the entertainment hubs inside our homes. Things around us have high technological standards and user friendly set ups. Entertainment has undergone a sea change during past few years. We do not view things as we used to view them on televisions .The digital world has changed the whole concept of television viewing. We now have high def

Large Digital Photo Frame: Best Option for Public Display Digital display technology is achieving new echelons with the digital photo frames. Displaying pictures and videos on a screen that can be placed as a simple frame on the shelf or can be fixed on a wall is such a comfortable viewing concept that it is gaining acceptance across the world among millions of users. Display and clear viewing is somewhat proportional to the screen size. It makes an eq

Large Digital Photo Frame: Best Option for Public Display Digital display technology is achieving new echelons with the digital photo frames. Displaying pictures and videos on a screen that can be placed as a simple frame on the shelf or can be fixed on a wall is such a comfortable viewing concept that it is gaining acceptance across the world among millions of users. Display and clear viewing is somewhat proportional to the screen size. It makes an eq

Pictorea-Pro: an exclusive Range of Digital Photo Frames from UDiggit Digital photo frame is an advance technology device that facilitates you with displaying your family photographs, images, presentations, videos, and movies. UDiggit brings a huge range of such digital picture frames for you. The company also enjoys a leading role in this segment across the UK markets There is an exclusive range of digital photo frames offered by UDiggit for customers who are

Best Buy Digital Photo Frames from UDiggit: Go For Something Unique and Elegant A specialist knows what and when to deliver in best way. Exponentially growing technology based market is becoming digital in all aspects very fast .Digital display technology has now achieved a new hallmark with the introduction of huge range of digital photo frames by UDiggit, a market leader in the United Kingdom. As a manufacturer and a retailer both, UDiggit has attained a level of digital ph

Boardroom Digital Photo Frames: A Customized Digital Display Device for Corporate ‘Screen’ is the keyword for present day digital media that propagates and disseminates information by all means. Whether it is a presentation, a discussion, a meeting, or a boardroom deliberation screen comes in the central role. Digital photo frames are actually an advance form of a simple screen. In corporate world the boardroom digital frames are actually the large size display screens. This

Digital Photo Frames: An Innovative Corporate Gift and Sale Concept While passing through a digital age everything around us is getting digitized fast. Corporate sales include substantial component of digital media and other related appliances. Corporate gifts are increasingly becoming popular these days and digital media items are being considered as preferred gift items. Many of the corporate gifts look similar quite often. It is simply because the digital produ

Categories
Acne
Advertising
Advice
Aerobics-Cardio
Affiliate Programs
Alternative
Arts
Attraction
Auctions
Audio-Streaming
Autos
Awards
Babies-Toddler
Beauty
Blogging-RSS
Book-Marketing
Branding
Breast-Cervical-Ovarian-Cancer
Broadband-Internet
Build-Muscle
Business
Cancer
Careers-Employment
Casino-Gambling
CGI
Coaching
Coffee
College-University
Colon-Rectal-Cancer
Communications
Computers
Cooking-Tips
Copywriting
Crafts-Hobbies
Creativity
Credit
Cruising-Sailing
CSS
Currency-Trading
Customer-Service
Dating
Debt-Consolidation
Debt-Relief
DHTML
Diabetes
Direct Mail
Divorce
Domain Names
EBooks
ECommerce
Education
Elder-Care
Email-Marketing
Email Entertainment
Entrepreneurialism
Environment
Exercise
Ezine-Marketing
Ezine-Publishing
Family
Finance
Fishing
Fitness
Food
Free
Games
Gardening
Goal-Setting
Golf
Government
Grief-Loss
Hair-Loss
Happiness
Hardware
Health
Hobbies
Holidays
Home-Security
Homes
Home Business
Home Repair
HTML
Humanities
Humor
Innovation
Inspirational
Interior-Decorating
Internet-Marketing
Javascript
Kids And Teens
Landscaping-Gardening
Law
Leadership
Leases-Leasing
Legal
Leukemia
Link Popularity
Loans
Lung-Cancer
Lymphoma-Cancer
Management
Marketing
Marriage-Wedding
Martial-Arts
Medicine
Meditation
Men's-Issues
Metaphysical
MLM
Mobile-Cell-Phone
Mortgage-Refinance
Motivational
Multimedia
Music
Negotiation
Network-Marketing
Networking
News-and-Society
Newsletters
Nutrition
Off-Line Promotion
Online Business
Online Promotion
Organizing
Other
Outdoors
Page Rank
Parenting
Personal-Tech
Pets
Photography
Podcasting
Poetry
Politics
Positive-Attitude
PPC-Advertising
Presentation
Prostate-Cancer
Psychology
Public-Speaking
Publishing
Real-Estate
Recipes
Recreation
Reference
Relationships
Religion
Sales
Sales-Management
Sales-Teleselling
Sales-Training
Satellite-Radio
Satellite-TV
Scams
Science
Security
Self Help
Self Improvement
Sexuality
SE Optimization SE Positioning
SE Tactics
Shopping
Site-Promotion
Site Security
Skin-Cancer
Small-Business
Social Issues
Society
Software
Spam
Spirituality
Sports
Stocks-Mutual-Funds
Strategic-Planning
Stress-Management
Structured-Settlements
Success
Supplements
Taxes
Team-Building
Technology
Teleseminars
Time-Management
Traffic-Building
Traffic Analysis
Travel
Uterine-Cancer
Vacation-Rentals
Video-Conferencing
Video-Streaming
Viral Marketing
VOIP
Web-Development
Webmasters
Web Design
Web Hosting
Weight Loss
Wine-Spirits
Women
Writing
Yoga

Copyright © media13.Com  2005. All Rights Reserved.

Sources : SEO India - Internet web directory