Page 1 of 1

Multiple Portable XAMPP installs?

PostPosted: 08. June 2015 17:33
by Booleanboy
I've just started to use XAMPP portable for developing Wordpress sites locally. The problem is that I have many different sites.

Would it be viable to have multiple USB memory sticks each with its own XAMPP/Wordpress site installation? I'd only run one stick at a time and I guess I'd have to ensure that Apache & MySQL were closed down before swapping sticks?

Would there be any problems with this approach?

Re: Multiple Portable XAMPP installs?

PostPosted: 08. June 2015 19:23
by Nobbie
What about different VirtualHosts (one VirtualHost per Site) and only one stick for everything? One Stick per Site means multiplying Xampp without use - you only need one Xampp, but you need different projects (i.e. different VirtualHosts).

Re: Multiple Portable XAMPP installs?

PostPosted: 09. June 2015 00:33
by glitzi85
Please be aware that with Nobbies solution you still would have to make sure you have stopped mysql before unplugging the stick! In this case keeping apache on the stick as well doesn't matter much more, does it?

Is there a specific reason you would like to use usb sticks at all?

Re: Multiple Portable XAMPP installs?

PostPosted: 14. June 2015 22:02
by jimmydburrell
Yes, that would work. However, glizi85 is correct, the most easily implemented solution is to create a virtualhost config for each of your wordpress sites. These virtualhost configs go into the "C:\xampp\apache\conf\extra\http-vhost.conf" file on Windows.. similar location on other OSes. A config for an individual wordpress site, a.k.a virtualhost might look something like this:
Code: Select all
<VirtualHost *:80>
   ServerName symfonytestapp.dev
   DocumentRoot "C:/Users/jburrell/Sites/symfony/web"
        <Directory "C:/Users/jburrell/Sites/symfony/web">
           Allow From All
           AllowOverride All
           Options +Indexes
           Require all granted
        </Directory>
</VirtualHost>


The "DocumentRoot" points to your HTML folder. Don't forget to restart Apache after you make your additions / edits!

Hope this helps!

Jim...

Re: Multiple Portable XAMPP installs?

PostPosted: 15. June 2015 13:15
by Nobbie
jimmydburrell wrote:However, glizi85 is correct, the most easily implemented solution is to create a virtualhost config for each of your wordpress sites.


That was me (Nobbie), not glitzi85.