Can I have wamp server spread over two disks?
Posted by: sylarlocke (---.red-acceso.airtel.net)
Date: February 14, 2024 01:34PM

Hi, I currently have wamp server installed in C: in the www folder
c:\wamp\www

I'm running out of space in C, but I want to keep everything I have in C:\wamp\www and distribute the new stuff in D:\www2

I was thinking about something that would be like a shortcut within C\wamp\www\"www2 shortcut" or if there is a way to have it in both places, since in principle I don't want to migrate everything that is in C to D.

Thank you

Options: ReplyQuote
Re: Can I have wamp server spread over two disks?
Posted by: Otomatic (Moderator)
Date: February 14, 2024 02:39PM

Hi,

Local sites have no obligation to be in the c:\wamp\www\ tree, they can be on another partition or disk.

At home, Wampserver is installed in e:\wamp64\ and my local sites are in g:\www\.

The VirtualHost DocumentRoot will tell you where the local site is.

For example, in the file: e:\wamp64\bin\apacheapache2.4.58.1\conf\extra\httpd-vhosts.conf
<VirtualHost *:80>
  ServerName mes-photos
  DocumentRoot "g:/www/phottello"
  <Directory  "g:/www/phottello/">
    Options +Indexes +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require local
  </Directory>
</VirtualHost>

It is also possible to create one or more junctions in c:\wamp\www\.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Can I have wamp server spread over two disks?
Posted by: sylarlocke (---.red-acceso.airtel.net)
Date: February 14, 2024 04:04PM

Thanks for the help.
So if I understand correctly, I can have two or more projects on different disks?

Example 1st project in:
Document Root "g:/www/phottello"

And another 2nd project in:
Document Root "d:/www/app2"

I imagine that the same thing won't happen with the database, right?

That is, you could have two databases in two different places.

The thing is that I have to bring a website for development that the database weighs 10GB and the files weigh 300GB, so my idea is to have this with the current configuration that I have in wampserver and not have two wampservers, use only one that is in charge of distributing projects and database on different disks.

Thank you so much

Options: ReplyQuote
Re: Can I have wamp server spread over two disks?
Posted by: Otomatic (Moderator)
Date: February 14, 2024 04:47PM

Hi,

> I imagine that the same thing won't happen with the database, right?
See Item 09 of Wampserver 3 - Some explanations

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.