Sometimes it is necessary to migrate your PHP/MySQL web applications from one WAMP development area (environment) to another. In most cases this should be a fairly straight forward thing to do.
There are basically two areas to a PHP/MySQL web application:
- The web pages themselves, which probably consist of a mixture of HTML, PHP, CSS, and image files, and
- the MYSQL data base files.
Both of these areas need to be migrated.
The Web Pages
All WAMP environments will have an area (a folder/directory) where web pages need to be located (stored), and it will probably be called 'www'. Within this area you may well have created sub-folders for your individual applications. For any applications that you want to migrate, you will need to copy and paste the files from the www folder in your old WAMP environment to your new environment.
The Database Files
The database files will all be located in the mysql\data folder within the WAMP directory structure. Within this folder, there will be sub-folders that correspond to the names of the databases you have created. For each database that you want to migrate you will need to copy and paste each sub-folder from the old WAMP environment to the new one.
Potential Problems
In most cases you should be able to start the new WAMP servers (the Apache server and the MySQL server) and then just point your browser to the new location of the web pages (for example, index.htm or index.php).
Sometimes, however, the web application(s) may not work straight away in the new environment. Possible causes are:
- You have migrated to an environment that does not support some of the PHP code you are using. If you migrate to an older version of PHP it may be that you are using PHP commands that did not exist in that version. If you are migrating to a newer version of PHP, it may be that you're using PHP commands that are no longer supported in the newer version. You would be unlucky if this were the case, but it may well happen. In either situation, you'll need to re-write your code to use PHP commands that are supported in the version of PHP to which you have migrated.
- The php.ini file is configured differently in your new WAMP environment. If, for example, you had your old php.ini file set up to allow short tag names, but your new php.ini file is set up to not accept them, when you run your application(s) you will get lots of error messages on the screen and your application(s) will not work properly, if at all. If you are able to, compare the php.ini file in your old environment with the one in your new environment, and correct any discrepancies (in the new one).
Go back to MySQL Tutorials home page
Go back to Tutorials home page
Earnings Tracker is John Dixon Technology's FREE open source accounting and bookkeeping software tool.
The software is written in PHP and MySQL and is available to use for FREE online, or as a FREE download.
Earnings Tracker is aimed at contractors and freelancers, and lets you record invoice amounts, salaries, income tax, pension contributions, employers and employees national insurance contributions, and calculates the amount of VAT and corporation /business tax due, and the size of dividends that can be taken by shareholders.
Earnings Tracker can also be used simply as a dividend, corporation tax, or VAT calculator.
|
|
|
|
|