Supporting multiple Wordpress installs

Tags:

Here's a little Perl script that uses some modules off CPAN to :

Rename the .pl.txt file to .pl, chmod a+x so you can run it, and then:

# <span style="text-decoration: underline;">./show_wp_versions.pl</span>

which would display, for example,

Domain                         Version    Tracking Subversion  Owner
-----------                    --------   -------------------  -----
alphabetcompany.com             2.8       tags/2.8             alphabet
awkwardaardvark.com             2.7.1     tags/2.7.1           aardvark
brilliant-doorstops.co.uk       2.3                            dumbasapost

-n sorts by numeric version number; -u sorts alpha by UID.

Very handy when you're supporting a large number of Wordpress installs on a single server, to know who's running what, and who needs to be updated!

NOTE: To install on a fresh system, you will probably need to:

# <span style="text-decoration: underline;">cpan</span>
cpan[3]> <span style="text-decoration: underline;">install App::Info::HTTPD::Apache</span>
cpan[1]> <span style="text-decoration: underline;">install SVN::Class::Info</span>
cpan[2]> <span style="text-decoration: underline;">install Apache::ConfigParser</span>