-
Notifications
You must be signed in to change notification settings - Fork 35
Running multiple installations of InstantWP at the same time
You can run several installations of InstantWP at the same time, but you need to separate the installations so that they do not interfere with each other.
You do this by giving each installation a separate PortOffset number.
This number is added to the port numbers to make each installation unique - for example, the HTTP port is (80 + the PortOffset of 10000) = 10080.
- Click the Edit Config button on the Advanced Tab of the InstantWP Control Panel.
- Change the PortOffset from
PortOffset=10000
toPortOffset=11000
. - Save and close the file. Quit InstantWP and then restart InstantWP.
- WordPress won't work unless you update the tables in the WordPress database to use the new port. In this example the old port would have been 10080. Now it will be 11080. You can do this using WP-CLI in the Web Console.
- Click the Web Console button on the Advanced Tab of the InstantWP Control Panel. Login using user 'iwp' with password 'iwp'.
- Type the command
wp search-replace 10080 11080
and hit enter. The command will update the database. - WordPress should be available at the new unique address. You may need to delete any cookies from your web browser in some cases if it still goes to the default address with an error.
You should also edit the AppName, AppVersion, AppPreferredName and AppDate in the configuration file with this new information:
AppName=My Clients Website
AppVersion=v1.0
AppPreferredName=PortOffset 11000
AppDate=2017
This appears in the title bar of the InstantWP Control Panel and will help identify the site when it is running.
You can now have as many folders as you wish with unique InstantWP installations.
Try starting each new site at regular number, say 11000, 12000, 13000 or whatever range is useful.