Let’s face it… generally speaking, installing WordPress is not exactly an arduous task. It’s designed to be relatively easy, allowing pretty much anyone to set up a blog of their own, regardless of their technical expertise. For the most part, WordPress succeeds at this. However, if you are the type of person who sets up blogs often, especially considering the fact that they all have to be updated every time a new security hole in WordPress is discovered, and if some of those blogs are on hosts that might have some issues with latency (small lags just before each connection), then setting up WordPress can sometimes be a little bit of a pain. WordPress 2.5.1, for instance, has 515 files in it that have to be uploaded in order to install it. Sure, if you have shell access and know how to use it, then you can just upload the zip file and unzip it on the server. However, if you don’t have that (which is common with most shared hosting accounts), and there is just a couple of seconds lag before each files starts transferring, then that means that uploading the full package can take 20 minutes or more for each blog.
Me? I’m just not that patient.
Therefore I have written a WordPress Installer script, named EasyWP, that removes that hassle completely. Simply download and unzip EasyWP.zip (download link EasyWP). Upload easywp.php (a single file that is a mere 8KB) to the folder where you want to install your blog. Any directory will do, including the root directory, as long as WordPress isn’t already installed in it (this script is designed to do clean installs only) and PHP can write to that directory (either through setting the permissions, or through PHPSuExec running on your server). Next, visit the page wherever you uploaded it to (ie. http://www.yourserver.com/blog/easywp.php), fill out the form, and hit the “Go!” button.
EasyWP will download the latest version of WordPress, unzip it into the directory where you want to host your blog, and modify your configuration file based on the information you entered into the form. Then it tests your database connection. If that fails, it gives you a chance to re-edit the info you entered, so if you made a mistake there is no need to edit and re-upload the config file separately
(just like when you install WordPress without the script, you do have to create the database and user beforehand). After that it takes you to the normal WordPress setup page, where you finish the process.
That’s it. 😀
To recap: you can now upload and configure an entire brand new WordPress installation in under 30 seconds. Feedback and suggestions are of course welcome.
34 thoughts on “EasyWP WordPress Installer – Cause There Ain’t No Such Thing As “Too Easy””
you could just use fantastico that is literally a 1 click install
@Brandon – that’s true, except that not all hosts have Fantastico, and for those that do not all keep them up to date with the latest WordPress versions. Also, this script is especially helpful in cases where you have to clean an infected installation (which I plan on blogging about shortly). I know that WP Automatic Upgrade should not be used in cases like that, and I would guess that Fantastico would have some of the same shortcomings. Can Fantastico install over a pre-existing WP install that wasn’t originally installed by it?
Thanks! This is very convenient, especially for those of us reselling hosting packages. Gives that quick install option of WP, the less I have the set up the happier I am!
Really cool script except I use a Windows host and it doesn’t seem to be working there. I get the error
Warning: exec() [function.exec.php]: Unable to fork [tar xvfz wordpress-2.6.1.tar.gz] in D:\rallyofkerala.com\wwwroot\easywp.php on line 111
@Kiran, I am guessing that’s because that line is a call to “tar”, and that isn’t installed on your Windows host.
I was new to Wpress and didn’t know 1 thing.
I read through the tutorials at WordPress.org and lo and behold I installed it all myself !!!!!
Try that first then come back to this site.
The reason I say this is because you learn a lot by doing, and if you have to make changes later you have the power to do so.
I hope you have a screenshot of the actual installer before we download and run this script. But I’ll try this one now.
Thanks in advance and I hope it work.
Usually I used net2ftp to unzip WordPress files on my host.
Before I tried this script, I was a bit worried about the “owner” of the unzipped files and folders
I tried some scripts that unzip and install automatically similar to this (not WordPress-relate), the owner of the file isn’t my ftp username, and that cause me some troble when I want to move/delete/rename the files
But easyWP has no problem about that issue
I tried it and wow! installing WordPress could not be easier! I’m very impressed. Thank you for the great script 😀
I get the following message: “It does not appear that the current directory is writable.
Please correct and re-run this script.”
I have NO idea what to do next. 🙂
can someone suggest about the modificiation instruction or upgraded version of this software for Windows server?
Me too I use a windows server and the script oes not work on it? Can someone share a mod for windows
Awesome plugin man! I love it! What a quick down of the tar.gz file and uncompression on good servers, almost instant. It even deletes the file after its done. Great job. Tweeted this 🙂 twitter.com/vincenttobiaz
EasyWP was pretty handy. Thanks.
I’m a newbie in using WP. My site has been obviously attacked 5 days ago and until now it’s not fixed. Have asked around with the tech support at my host but it seems their recommendations are not working. I just want my site back but I don’t know where to start troubleshooting. I was using WP 2.8.3 when my site just disappeared and I could no longer login in the WP-admnin.php. No error messages whatsoever. Any help and ideas what will be my next step would be appreciated. More power!
Sammy, please check out How To Completely Clean Your Hacked WordPress Installation. It is a walkthrough that I wrote to specifically address issues of having your WordPress site hacked.
Imust be dumber than dumb.
I made httpdocs and easywp.php writable. I filled out the form properly and I get a 404 error.
my addressbar shows this address: http://www.costumesforpregnantwomen.info/wp-admin/install.php and that is not on my server.
should I just change my domain to wordpress.org?
please help me. Soon
Hmm, great idea! I like it!
I was thinking about writing something like this. This saves a lot of work!
My problem is what SE7EN was talking about. The installer uses PHP, which is run through apache, which has a different user (called “nobody” on my server) rights than me. So although the script works, afterwards, I can’t change any of the files since they now all belong to the that different user.
I can SSH in and manually change them from root, but that is not supposed to necessary. If I’m going to be using SSH, I might as well just use the wget command to download it. The whole point is to not use SSH.
I was thinking that maybe I could use invoke a shell script that would download WordPress and set it up, through php, and just edit your easywp.php, but I’m not sure if this would remain being that “nobody” user. Also, I would have to look up how to write shell scripts, which I don’t as of right now.
I also thought, since I saw it on another install script, http://wpquickinstall.com , that to use FTP and just ask for FTP to download it, then it would use my username and it would probably work. Unfortunately, this script fails right in the beginning with the FTP part, and the code is encrypted so I’m not sure how to do this. This I believe is similar to how WordPress asks you to enter FTP info when you want to update your plugins (on some servers).
Any help would be appreciated, maybe an update to use FTP? Thanks.
Actually the point of this script is for people who do not have ssh access. Also, you’re not on a shared hosting environment, are you? If Apache is running as nobody, and php is running under that same user (as opposed to using some suexec solution) then I am pretty sure that would mean that all users would have access to every other users web directory via scripts.
EasyPHP already does what you suggest, by the way. It is a wrapper for shell commands, including wget and tar, that install WordPress for you very similarly to the way you would do it via ssh. I am not sure why you would not have permissions to the files afterwards.
Thanks! This is very convenient, especially for those of us reselling hosting packages.
Is it compatible with wordpress 3.0 ?
@Orbittechno – actually, it looks like it might not be, although I am not sure why. I will try and fix it in the next day or so.
The script sounds useful. I’m commenting so I get notified if you update it for WP 3.x, let us know.
this is great to make mult blogs
Is this working for the current version of wordpress?
thanks, looks awesome!
You are so awesome! I used your easywp script and it did exactly what you said. Thank you so much for this and your cleaning from hacks article!
Why do I get this always: Operation appears to have failed.
I’ve tried on Chrome, FF, IE, and didn’t work.
Awesome man.. thanks thanks thankss……. i wanted to reinstall wordpress i do not have access to cpanel.. ur script helped me a lot lot lott…. i will preserve it lifetime…..