If you create a test environment - to perform an upgrade before you upgrade your live environment - you can:
This is recommended when, for example, evaluating OpenX's beta releases.
To test in a test environment:
To set up a testing environment:
# Live OpenX Site
<VirtualHost 10.0.0.25:80>
ServerAdmin me@example.com
DocumentRoot /var/www/html/openx-live
ServerName openx.example.com
</VirtualHost>
# Testing OpenX Site
<VirtualHost 10.0.0.26:80>
ServerAdmin me@example.com
DocumentRoot /var/www/html/openx-testing
ServerName openx.example.com
</VirtualHost>
# Live OpenX Site
<VirtualHost 10.0.0.25:80>
ServerAdmin me@example.com
DocumentRoot /var/www/html/openx-live
ServerName openx.example.com
</VirtualHost>
# Testing OpenX Site
<VirtualHost 10.0.0.25:80>
ServerAdmin me@example.com
DocumentRoot /var/www/html/openx-testing
ServerName testing.example.com
</VirtualHost>
[webpath] admin = testing.example.com/www/admin delivery = testing.example.com/www/delivery deliverySSL = testing.example.com/www/delivery images = testing.example.com/www/images imagesSSL = testing.example.com/www/images
[database] type = mysql host = localhost port = 3306 username = root password = password name = testing_openx_database persistent = false mysql4_compatibility = false protocol = tcp
| Once you have logged into your testing site, it may help to customise the UI in some way (e.g. by changing the colours of the installation). This will make it immediately obvious upon logging in whether you are using the testing environment or the live environment, and reduce any chance of confusion. |
If all of your zones are using JavaScript ot iFrame delivery, when you have created a testing environment with the same URL as your live environment but a different IP address:
| While the host file is set up, you will not be able to access your live environment. You will need to remove the host file entry from your desktop computer to be able to do this. |
If you have created a testing environment with a different URL to your live environment:
Once your testing environment has been created and is working correctly, you can now test the upgrade of OpenX.
Download the latest version of OpenX and follow the upgrade instructions - but perform the upgrade on your testing environment.
Once the upgrade is completed, you can return to the Checking the Testing Environment section above and repeat your testing, to ensure that the upgrade has worked correctly.
When you are satisfied that the upgrade of OpenX has worked, and you are happy to upgrade your live setup, you can now repeat the upgrade process with your live site.
| Don't forget to backup your live environment database before you upgrade, just in case! |