Archive for August, 2009

Wordpress auto updates

Saturday, August 22nd, 2009

Background

If you host, or have friends who host wordpress sites, then you know that upades are frequent, and its time consuming to upgrade each site.  I wanted to find a way to automate the process using a command line script, but before I thought about writing one, I thought someone else must have done this before.  Turns out they did.

Aaron Toponce wrote a wonderful script to do the upgrade, and as many of the comments on the site point out it has some serious flaws, but for anyone with some understanding of scripts, its a great start, thanks!

The main issues I found with it,  was the security issue, specificly that the backups are all stored in the public folder, and that was easy to remedy, however someone already did that too.

Jerry Bell updated the script and he also made some other enhancements, but not the one that I felt was most important.  The issue is, that it does not disable, and re-enable plug-ins.  Now, as far as I was able to determine, its not the most important thing to disable them, but it seems to me if wordpress claims it must be done, it should be done.

A little more research, and I was able to determine that the reason the scripts do not disable the plug-ins, is because you have to do it in the database.  Jeff Star pointed out how to disable & enable the plug-ins using the database.

Putting it all together

Using these resources I built a script that will:

  1. Download the latest version of wordpress
  2. Backup all the databases
  3. Backup the files and folders
  4. Disable the plug-ins
  5. Upgrade the wordpres directories
  6. Restore the files and folders
  7. Enable the plug-ins
  8. Clean up

Here is the final script.

SSL Certification

Tuesday, August 18th, 2009

This comes up from time to time, people need ssl certificates for websites, but they do not want to pay for the SSL certificate until development is completed, or they have not yet found the best URL choice for the website.

To help out, self assigned SSL certificates can really go a long way.  Most of the time there is a charge from the ISP for installing the self assigned SSL certificate, but it may really be worth it, so that development of the site can continue.

Here is a great link to a site that shows how to make many different self assigned certificates for a variety of operating systems, if you have access to do so on your server, they can be helpful.

http://www.sslshopper.com/article-how-to-create-a-self-signed-certificate.html

Of course self assigned does have some problems, specifcly the dreaded invalid SSL certificate window.

You can still continue to test the site, by accepting the certificate, and that is the best part of Self assigned SSL certs, they let you use the site as if it were a valid site.  You may also have other warnings that may come form internet security software, but generally speaking, they all have a way to continue to use the site.

Installing Google Wave Server

Monday, August 10th, 2009

Installing your own google wave server at this point does not offer a whole lot of purpose, unless you are a developer, or someone who wants to get a jump on understanding how this server is going to work.  For those of you who fall into either category, below is a link to a great screeen cast created by Luc Castera.

Here is a great screen cast that can help you to install your own Google Wave Server.


SEO Powered by Platinum SEO from Techblissonline