Wordpress auto-install w/ plugins & settings?

johu

Posts Too Much
Jun 16, 2007
2,118
18
0
I've been looking for a script to allow me to quickly install multiple Wordpress installations on different domains, that will automatically be set up with the same themes and plugins installed, and then prompt me for some quick configuration values, and set up the account. I'm sure something like that is fairly simple to program, but I don't program...

I've found Installation Script Using WordPress Subversion Repositories | SuperWebDeveloper.com , but that doesn't take care of everything. Preferably, I'm looking for a free, open-source script, or a pay-script that doesn't encode its code (so yeah, that probably doesn't exist in paid form) so that I can get a programmer to make modifications in the future to suit my needs if the original script doesn't meet all of my needs.
 


Nothing? Anyone know how to best work a WordPress MU install with domain names, preconfigured templates, and not having to use manual hacks to get domains working?

I think I might just get my developer to create something like this and sell it, as well - I'm sure the idea would benefit others, as well.
 
from what i hear, uBot could probably do this (correct me if im wrong)
I'm sure it could, but that would be a lot more complicated than it needs to be, and I'm looking for a web-based script. I basically need a customized version of the Fantastico auto-installer for WordPress.

I'm sure it's fairly easy to program, but what I need to have is automated installs on my server, just by loading the script onto a new domain name, inputting the basic data (site name, admin username, admin password, database to create, database username & password to create or have a hardcoded default in), hitting a button, and then having WP installed and preconfigured with all necessary themes and plugins for my use. Maybe I won't even bother my developer, and just find code samples to hack something together with.
 
My ideal solution would install fully-fledged standalone installs of WordPress, rather than use WordPress MU just to separate accounts properly, and to allow the domains to be hosted on different IPs. WP Cloner looks like a good solution, but as with all paid scripts, has encrypted code so I can't make modifications - Good thing is, it looks like cloning an existing install might fit all my needs, so I'll definitely look into it.

But now I'm set on figuring out a way to program this myself, too.
 
You could probably use a shell script to extract Fantastico and addons & then an iMacros script to configure it (iMacros can take an input file with variables or pop-up to prompt you for variables as needed). iMacros will basically record your actions & repeat them with the variables that you specify - and it's free.
 
You could probably use a shell script to extract Fantastico and addons & then an iMacros script to configure it (iMacros can take an input file with variables or pop-up to prompt you for variables as needed). iMacros will basically record your actions & repeat them with the variables that you specify - and it's free.
What, no server side solution, tvmatt? Last time I hire you for programming help... :) Figure out a server-side solution, and I'll let you sell the script. Deal?

The script to extract the install & the script and specified add-ons would be the easy part for a server-side solution, but I guess piggy-backing off of Fantastico to do the database install and initial WordPress configuration would be the easiest solution. Most plugins would probably have pretty standard configurations, not dependant on the specific site that's using them, so I guess I could just use a local, pre-configured/modified repository of templates to cover that base. I guess I'll have to get Fantastico, first.
 
Autoinstall of WordPress

Shit. That is so easy. You just need a little bit of BASH and you are good to go. Here is a very simple install script that downloads and installs the latest and greatest version of WordPress. It doesn't do the plugins, I can't give you everything for free). :D

You will need to have the /var/www/apps/ or change that to /tmp or something.

You basically run it like this:
./wp_install.sh /path/to/final/install

Code:
#!/bin/bash
# Wordpress Installation Script

# Download Latest.tar.gz
wget http://wordpress.org/latest.tar.gz -O /var/www/apps/wordpress/latest.tar.gz
# Extract it to a Temporary location
tar xzvf /var/www/apps/wordpress/latest.tar.gz -C $1
# Move it to its final destination
mv $1/wordpress/* $1
# Change the permissions so you can make changes to the config from the backend.
chown -R www-data:www-data $1


Now if you want to run this through PHP, just setup a private password protected page and use the exec method or whatever it is that allows you to run a shell command. Being sure to pass in any variables from your form to the script.

Using awk or sed to make the changes automatically to the config.php file should be pretty easy as well, but it is only a few clicks to get it installed really, so that is a non-issue for me really.

Also creating a database and user should be really easy to do if you want to automate that part as well. Just add in the command line commands for MySQL and you are good to go.

Oh well, let me know if you want some help making this a little more robust. I will charge you, but I will not rape you.
 
The simplest method to do this is probably the following. I've been too busy lately, but maybe I'll get around to writing this.

1. Create a sample "image" of Wordpress with customizations & plugins.
2. Package up that image into a tar.gz or your favorite format.
3. Write a script to create the new database, prompt for the new domain & title, and write the info to the new config file & database.

Shouldn't be too hard.