Title: My Mass Install Script &#8211; need help!
Last modified: August 18, 2016

---

# My Mass Install Script – need help!

 *  [screamfine](https://wordpress.org/support/users/screamfine/)
 * (@screamfine)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/my-mass-install-script-need-help/)
 * Hi!
 * I made a script (mass-install.php) which I run and it then makes multiple installs
   of wordpress. But I have some trouble with it. Primary mass-install.php contains
   all the codes and commands from wp-admin/install.php. And I have a “for” loop
   in it to change the database prefix for multiple blog installs using the same
   database.
 * The first run is ok (all tables and files get installed 100%). The next run I
   get the message “You appear to have already installed WordPress. To reinstall
   please clear your old database tables first.” … and that’s the problem. I have
   no idea why. The prefixes are unique etc. everything is fine. I have that feeling
   that I need to CLOSE and RE-OPEN the mysql connection for every blog install …
   but I don’t know how to do that.
 * How can I reset the complete db connection ??? Could this solve the problem?
 * Thanks for your help!!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/my-mass-install-script-need-help/#post-456649)
 * Why do you need mass installations? How many is “mass”? Are you setting up multiple
   blogs for various users, or is this something like a splog farm?
 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/my-mass-install-script-need-help/#post-456670)
 * I’d recommend soliciting advice on the WP Hackers list.
 *  [http://lists.automattic.com/mailman/listinfo/wp-hackers](http://lists.automattic.com/mailman/listinfo/wp-hackers)
 *  Thread Starter [screamfine](https://wordpress.org/support/users/screamfine/)
 * (@screamfine)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/my-mass-install-script-need-help/#post-456697)
 * ok. I subscribed there. However, does anybody have any tip for me? What could
   be the problem?
 * WHERE can I find the script in which the database installation and table creation
   for installation is made? It seems as it is using always the same prefix (111_)
   instead of using (111_ then 222_ then 333_) …

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘My Mass Install Script – need help!’ is closed to new replies.

## Tags

 * [mass](https://wordpress.org/support/topic-tag/mass/)
 * [script](https://wordpress.org/support/topic-tag/script/)

 * 3 replies
 * 3 participants
 * Last reply from: [screamfine](https://wordpress.org/support/users/screamfine/)
 * Last activity: [19 years, 7 months ago](https://wordpress.org/support/topic/my-mass-install-script-need-help/#post-456697)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
