+ Post New Thread
Results 1 to 2 of 2
Web Development Thread, Moving a website in Coding and Web Development; Not a web person in the slightest so this is probabaly a really silly question, but if I have a ...
  1. #1
    tscnmuk's Avatar
    Join Date
    Jan 2007
    Location
    Lincolnshire
    Posts
    216
    Thank Post
    5
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Moving a website

    Not a web person in the slightest so this is probabaly a really silly question, but if I have a site that I have created using php and sql, how easy is it to move to a different server / location. I want to design a site using a local hosting package on a laptop and then upload to the webserver, unless this is going to be a complete pain to do?

    Thanks

    Tom

  2. #2

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,406
    Thank Post
    640
    Thanked 961 Times in 661 Posts
    Blog Entries
    2
    Rep Power
    324

    Re: Moving a website

    Not that difficult. Important things to consider are:

    • PHP versions - if your website will contain code that is compatible with one and not the other you will have problems. Major versions are usually compatible with eachother (eg. If both are PHP4 then you will be OK. If you have PHP5 and they have PHP4 you might have a few problems depending on the code
    • PHP extensions - if you use anything special such as GD/SOAP etc, make sure the hosting company has them enabled too
    • File permissions - If your scripts needs write access to any files/folders, make sure you or the web hosting company can grant the appropriate permissions.
    • Disk space - Simple really. Will you have enough space with the hosting company to store all your files
    • Paths - Always use relative paths wherever possible (eg. /folder/subfile.php, rather than hard-coding http:/localhost/folder/subfile.php
    • MySQL versions - same rules as PHP really. If the versions are similar then it should work, but there are things such as table types to watch out for (InnoDB vs. MyISAM for example)


    As for uploading one to the other - with files, just use your favourite FTP application. For MySQL - use something like phpMyAdmin to export and import the database/tables.

    I'd also recommend testing at regular intervals during development to see if things do work and if not; work out the problems first.

SHARE:
+ Post New Thread

Similar Threads

  1. Moving to a new server?
    By sidewinder in forum ICT KS3 SATS Tests
    Replies: 10
    Last Post: 27th February 2009, 01:20 PM
  2. Moving On
    By Nij.UK in forum General Chat
    Replies: 5
    Last Post: 20th March 2007, 08:28 PM
  3. Moving IIS
    By Simcfc73 in forum Windows
    Replies: 1
    Last Post: 14th July 2006, 02:21 PM
  4. Moving to a New Job
    By pshuttle in forum General Chat
    Replies: 4
    Last Post: 17th March 2006, 06:14 PM
  5. Moving to XHTML
    By OverWorked in forum Web Development
    Replies: 9
    Last Post: 16th March 2006, 03:41 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •