• Technosailor.com
  • Desk of the Editor
  • Venture Files
  • Tech Policy
  • Contenido Español
Technosailor
  • Authors
  • Disclosures
Mar
12
2006

WordPress Unattended Installs

Posted by: Aaron Brazell

As of the writing of this entry, b5media has over 90 blogs with more coming everyday it would seem. Part of my job as Systems Administrator is to automate my tasks. For instance, before a blog setup would take weeks because of all the people it had to visit before being launched. The Channel Editor would send the notice to the guys about the new blog. Duncan would register the domain and setup DNS. He would shoot me an email to have a virtual host account setup on our cluster along with a MySQL database for wordpress. I would shoot the ticket back to him and he would install WordPress. Then he would send it over to Ingrid for graphics and template design. Finally, when Ingrid was done, it would go to Darren who would take care of the advertising bit and finally back to the Channel Editor who would consult with the blogger and assist in last minute tweaks, plugins, etc.

At some point, there would be a launch and the angels in heaven would sing “Hallelujah!” and the sun would stand still in the eastern sky and out of the clouds would ride the King of Glory in a chariot…. ummm, yeah. ;)

My point is that that takes a long time and I’ve now developed an automated process that takes care of everything but the advertising and template design in about 5 second making Duncan’s job obsolete. ;) You’re fired, mate! I plan to write a post soon on the power of automation soon anyway. This is not the one for it.

However, part of the cumbersome process of maintaining so many blogs is trying to keep a common environment. There are certain configurations that we deploy out of the box for our blogs. From my experience in enterprise, I am quite familiar with the XP Unattended install where systems can be imaged with an XP image by feeding it certain options from an .ini file.

Thought I, “Wouldn’t it be great if I could get WordPress to read all of my configuration options from a file, say wp-unattended.ini?” I proposed it to a few people who are working with WordPress development and they liked the idea, but wasn’t sure it had enough juice for the core. Nevertheless, they recommended I go forward with the script and submit it. It is currently waiting for a second opinion.

But this is how it works.

First I developed a custom plugin called WP Unattended Export. This plugin is really only beneficial if you plan to deploy other blogs and you want the same stock settings on all blogs. Go through a blog “image”, set things how you want them, then use this plugin to export settings to a .ini file. You will have to copy the results from your browser into wp-unattended.ini which will look something like this.

Now, it’s time to create the script that will import settings from WP-unattended.ini. The reality is, it is very difficult to get code implemented in the WordPress core. It must be lean and mean and extremely useful. To that end, I tried to keep a low profile with the code - it’s already bad that I’m proposing adding an entirely new file. Anyways, I created automated-install.php that looks like this. Finally, I just needed to make sure the install script would check to find out if wp-unattended.ini exissted, parse it if it did and make necessary adjustments to the WordPress stock options.

I did this with this modification to the install.php.

All this changeset indicates is that two lines are added to install.php to include the automated-install.php file if wp-unattended.ini exists.

I can’t say I’ve done exhaustive testing of this process, but so far it works pretty good. This is really a great way for blog networks to consider deploying blogs.

  • Add to Mixx!
  • Stumble it!
About the Author: Aaron Brazell is the lead editor of Technosailor.com and a social media expert. His passion is to see companies and individuals use the internet and web technologies wisely and effectively to promote their brands and companies. He is Business Development Manager for Lijit and he worked as Director of Technology at b5media from 2005-2008 and is currently an independent consultant.
Tagged: Programming, Sysadmin, WordPress at 12:56 pm -
discussion by DISQUS

Add New Comment

  • Subscribe:  This Thread
  • Go to:  My Comments ·  Community Page
  • Sort thread by:

    Viewing 11 Comments

    Thanks. Your comment is awaiting approval by a moderator.

    Do you already have an account? Log in and claim this comment.

      • ^
      • v
      • Permalink
      • Admin
        • Remove Post
        • Block email
        • Block IP address
      Jesse 2 years ago 1 point

      Please login to rate.

      Do you already have an account? Log in and claim this comment.

      nice. at the rate we've rolled out blogs that could save us a ton of time.

      I think I'm starting to get a very good idea of why Jeremy hired you :)
      reply  edit  flag   record video comment
      http://www.resiny.org /people/3921e4bdb709d01845a80047b14867d3/
      • ^
      • v
      • Permalink
      • Admin
        • Remove Post
        • Block email
        • Block IP address
      Ingrid 2 years ago 1 point

      Please login to rate.

      Do you already have an account? Log in and claim this comment.

      Heh heh, I'm happy my job can't be automated ... ;)

      (Yet.)
      reply  edit  flag   record video comment
      http://www.play-girlz.com /people/443059262af4b935d0f467423d412bbe/
      • ^
      • v
      • Permalink
      • Admin
        • Remove Post
        • Block email
        • Block IP address
      Aaron 2 years ago 1 point

      Please login to rate.

      Do you already have an account? Log in and claim this comment.

      We're working on it. ;)

      Just kidding.
      reply  edit  flag   record video comment
      http://www.technosailor.com /people/d409f7e3d0b43dd41dcfbd58aa255601/
      • ^
      • v
      • Permalink
      • Admin
        • Remove Post
        • Block email
        • Block IP address
      HART (1-800-HART) 2 years ago 1 point

      Please login to rate.

      Do you already have an account? Log in and claim this comment.

      Sounds adventurous. What about the other stuff? Sidebar maintenance, network codes, ad codes, feedburner, links unique to the blog, etc etc etc.?
      reply  edit  flag   record video comment
      http://1800HART.com/blog /people/cc977d4bea95b6d05466c963ee640d47/
      • ^
      • v
      • Permalink
      • Admin
        • Remove Post
        • Block email
        • Block IP address
      Aaron 2 years ago 1 point

      Please login to rate.

      Do you already have an account? Log in and claim this comment.

      Can't be done in a single swoop. Some people get YPN. Some Adsense. This is just a rough out of the box deployment to get the ball moving.
      reply  edit  flag   record video comment
      http://www.technosailor.com /people/d409f7e3d0b43dd41dcfbd58aa255601/
      • ^
      • v
      • Permalink
      • Admin
        • Remove Post
        • Block email
        • Block IP address
      HART (1-800-HART) 2 years ago 1 point

      Please login to rate.

      Do you already have an account? Log in and claim this comment.

      It's never really a 5-minute installation, although it's been getting easier and easier to install a new blog and even upgrade - it still takes time. For me, it's mostly the adsense, sidebar and feedburner stuff as I just have one blog opened in another tab. But, I've got a batch of 5 new ones being created early July .. perhaps I can give this a try. Any time saving is good. Keep Creating neat plugins!
      reply  edit  flag   record video comment
      http://1800HART.com/blog /people/cc977d4bea95b6d05466c963ee640d47/
      • ^
      • v
      • Permalink
      • Admin
        • Remove Post
        • Block email
        • Block IP address
      Aaron Brazell 2 years ago 1 point

      Please login to rate.

      Do you already have an account? Log in and claim this comment.

      Adsense, Feedburner, theme layout, etc... not really a WordPress issue, is it? WordPress is really a 5-minute install. Sure you have to deal with Kubrick and Matt and Donccha in the blogroll, but it is alive and functioning, no? ;)
      reply  edit  flag   record video comment
      http://www.technosailor.com /people/d409f7e3d0b43dd41dcfbd58aa255601/
      • ^
      • v
      • Permalink
      • Admin
        • Remove Post
        • Block email
        • Block IP address
      HART (1-800-HART) 2 years ago 1 point

      Please login to rate.

      Do you already have an account? Log in and claim this comment.

      All part and parcel :)
      reply  edit  flag   record video comment
      http://1800HART.com/blog /people/cc977d4bea95b6d05466c963ee640d47/
      • ^
      • v
      • Permalink
      • Admin
        • Remove Post
        • Block email
        • Block IP address
      Jeremy Wright 2 years ago 1 point

      Please login to rate.

      Do you already have an account? Log in and claim this comment.

      Hart, not really. Your issue is creating a centrally managed Theme. Which Wordpress is happy enough for you to do. With a centrally managed Theme, all that other stuff would come out of it. Once you had it, an unattended install would have your blog, and theme, setup in seconds. Without the theme, though, all this can do is install WP :)
      reply  edit  flag   record video comment
      http://www.ensight.org /people/490d926d48cdd8ab8349fe6206c02da4/
      • ^
      • v
      • Permalink
      • Admin
        • Remove Post
        • Block email
        • Block IP address
      HART (1-800-HART) 2 years ago 1 point

      Please login to rate.

      Do you already have an account? Log in and claim this comment.

      Hi Jeremy .. I've gone through the centrally managed themes (my 8 battling sites) where I spent the time on one theme, then copied it as part of the theme of the other 7 sites. Then you have to activate plugins including some with modifications to templates (eg tag warrior), all the feedburner chicklets. I still plan to give this plugin a try next month with the new 5 - but, I think I will just start from scratch on each one with a list of things to do next to my computer, instead of a list what to change or modify.

      It's good that you got Aaron working for the benefit of all of us too :) Thanks.
      reply  edit  flag   record video comment
      http://1800HART.com/blog /people/cc977d4bea95b6d05466c963ee640d47/
      • ^
      • v
      • Permalink
      • Admin
        • Remove Post
        • Block email
        • Block IP address
      Aaron 2 years ago 1 point

      Please login to rate.

      Do you already have an account? Log in and claim this comment.

      It’s good that you got Aaron working for the benefit of all of us too :) Thanks.

      All part of the spirit of open source. We use open source servers, an open source database server, open source blogging tools, so the stuff I write is usually in that spirit.

      And actually, I just "did" this to make my work easier. Not anything b5 commissioned me for. :)
      reply  edit  flag   record video comment
      http://www.technosailor.com /people/d409f7e3d0b43dd41dcfbd58aa255601/
    discussion by DISQUS

    Add New Comment

    close Joe Chill(joechill)
    konvict

    status via twitter

    Murdering the Wayne parents, creating Batman · 2 minutes ago

    recent comments (follow comments)

      View Profile »
      Powered by Disqus · Learn more
      blog comments powered by Disqus
      Powered by Defender Hosting
      Freshbooks
      • Recent Posts

        • Get a Management System — Now
        • Hints at an $800 Apple laptop, Bloggers Report, Stock up 4 points
        • Internet 2.0, Suck it Up and Lead
        • It’s the Economy, Stupid
        • Startups Need Management, Too
      • Recent Comments

        Powered by Disqus
      • Tags

        Aaron Brazell Advertising Apple b5media Blogging book conferences Design entrepreneurship Facebook Finance and Funding Google guest_blogging holidays humor hurricanes_and_natural_disasters interesting job Links Marketing Music nfl Op-Ed Perfect Pitch personal politics pr Predictions productivity Programming Security Social Issues Social Media Social Networking social_issues Sports Tech Industry Technology Technosailor Travel twitter unix Venture Files WordPress you_can_blog

      • License Creative Commons Attribution-Noncommercial-Share Alike 3.0 | Copyright © 2004 - 2008 - Aaron Brazell | Lisa helped out | Privacy Policy