Quicker WordPress Install

I was creating a new installation of WordPress today for development area of a new website and while I was setting up the site the thought came to me about how much I absolutely HATE having to download the zip then unzip and upload the file contents to a server that I don’t have SSH access to. After a couple of seconds of thought I decided to hash out this script that downloads the latest zip, unzips it, moves the content of the WordPress folder (which will be there by default) to the folder where you placed the file then redirects to index.php so you immediately start the install!

system (‘wget http://wordpress.org/latest.zip/’);
system (‘unzip latest.zip’);
system (‘mv wordpress/* ./’);
system (‘rm -rf wordpress’);
system (‘rm latest.php installer.php’);
<meta http-equiv=”refresh” content=”0;url=index.php”>

I’m sure there are ways to improve this but I figured I would put this rough copy on out there. Of course as you can tell since this passes rm to system() it only works on Linux.

One thought on “Quicker WordPress Install

Leave a Reply

Your email address will not be published. Required fields are marked *