Forums

My Mass Install Script - need help! (4 posts)

  1. screamfine
    Member
    Posted 2 years ago #

    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!!

  2. vkaryl
    Member
    Posted 2 years ago #

    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?

  3. Kafkaesqui
    Moderator
    Posted 2 years ago #

    I'd recommend soliciting advice on the WP Hackers list.

    http://lists.automattic.com/mailman/listinfo/wp-hackers

  4. screamfine
    Member
    Posted 2 years ago #

    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_) ...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags