We are looking at WordPress. Remember there are other CMS out there.
We will be looking at how to take our wordpress website from our local development environment and deploy it out to a production server on the world wide web.
There are key differences between a development environment and a production environment, one of the main differences is the way that the environment handles errors. A development environment may provide debug data, or display error messages, whereas the live production server may handle the same error completely differently, it may avoid crashing by forwarding the user elsewhere in the environment. A production environment will almost certainly NOT provide debug data.
Things to watch out for (traps):
- Check PHP version on both environments are the same, or close enough that all extensions and plug in are in use.
- .HTACCESS file – a special file that can specify folder level functionality and permissions. It is important for WordPress that HTACCESS is enabled.
- .htaccess can be used to map requests. It can be used for a myriade of things.
Actually migrating a WP Website……
For the migration we use the following technologies:
Putty (SSH Client)
- compress wordpress (ZIP) folder on local machine
- connect with winSCP to the remote machine (also possible to use SFTP)
- We need to ensure we copy the correct files to the correct location on the remote server
- Login into the server using SSH, we can now unzip the file that we transferred.
- Now edit the wp-config file to update the new database path, user etc as required by the remote environment
- Next up we head over to Phpmyadmin on our local server. We can export a SQL Script that contains all the data and structure of the wordpress DB
- Take this script and import it into the phpmyadmin on the remote server
HEY JINGO WE ARE THERE
wordpress site all installed and running on the remote host 🙂
our websites can be seen at big ears server
Its actually possible to have two databases hosted on the same instance of a database as long as different prefixes are defined in the wp-config file