Openx Hell – Upgrading to 2.8.7Jun 3rd, 2011 | By admin | Category: Internet, Technology
So I was finally forced to upgraded to 2.8.7 when my previous install was hacked thanks to a security vulnerability in 2.8.2. I knew there was a reason I was holding off on this because when I cleaned out the hack and upgraded I was greeted with an infinite look between admin/index.php and admin/install.php. Solving this was silly enough, I just went in and made sure that the permissions in the openx directory were as they were supposed to be according to the install file and then I created a directory called ‘UPGRADE’ in openx/var then tried to log in.. No loop this time, instead I was told that my openx was already upgraded and I needed to remove the UPGRADE dir and then click continue.. I removed the dir, clicked continue and then was able to log in.. Phew.. Unfortunately after that my plugins were all messed and just when I was about to light my hair on fire I stumbled across the following tutorial here: http://forum.openx.org/index.php?showtopic=503492171
1) Download 2.8.7 – http://www.openx.org/products/source-download
2) Back up your database and openx files
3) Copy your /var/www.example.com.conf.php and images directories over per step 5 here http://www.openx.org/docs/upgrading-openx
4) Disable maintenance
5) Remove your openx folder, and put the fresh install in its place (see notes below). You’ll have to do this anyway if you have an install in the root rather than a directory.
6) Go to your openx root http://www.example.com/openx and follow the upgrade instructions.
6.1) This point is moot for my install instructions but I’ll include it for completeness. When it asks you to enter the path for your *previous* openx installation (http://www.openx.org/files/docs_28/admin_guide/install_configuration-previous.png), ENTER THE NEW PATH. I mention this because many people (like myself) were trying (as the docs told us) to install into a openx_new folder. If you do this and enter the previous path as asked, you will *not* be able to proceed in the installation as it will throw all kinds of errors at you. The only way to proceed if you are using the openx_new method is to enter the NEW path.
6.2) The upgrade wizard should progress smoothly, all plugins will fail but it will let you proceed.
7) Go here and verify you are on 2.8.7 – /www/admin/updates-product.php
8) Ignore the advice here (http://forum.openx.org/index.php?showtopic=503426422) and instead get the 2.8.7 plugins from here https://svn.openx.org/openx/tags/2.8/openx-….7/etc/plugins/ – download all of these and save them into a folder
9) Now the fun begins… open two windows….
First window: /www/admin/plugin-index.php
Second window: /www/admin/maintenance-plugins.php?action=rep
9.1) Ok now go to the second window and run the plugin report. You’ll see lots of errors. Your end goal is for all these to show “No Errors”.
9.2) Go to the first window and click browse, and select one of the zip files. It will install, throw lots of errors. Starting at the top, work your way down through the list. You should see that at least a few of the plugs now have “Disable” next to them instead of “Install”. This is good.
9.3) Repeat step 9.2 over and over again until all the plugins have “Disable” next to them. I think that as you go on, you don’t need to run through the whole list each time, and can focus just on choosing plugins that haven’t installed yet. There appears to be a very complicated sequence of dependencies, I have no idea what the “shortest path” is. When all the plugins look installed, it’s time to proceed to 9.4..
9.4) Go to the second window and run a plugin report. You may see that some of the plugs still show they have errors. For those plugins, go back to the first window and reinstall them (even though they look like they’ve installed). There seems to be a second layer of dependencies that don’t show up on this screen and can be verified only with the second window.
9.5) Go back to the second window and check the status of the plugins. Repeat step 9.4 until all plugins show “No Errors”
10) Clean everything up by going to /www/admin/maintenance-plugins.php and running ALL the rebuild commands on the page.
11) You’re done! If this has helped you, I would love to hear it.