Installing to /home

Discussion in 'Installation/Configuration' started by fatbear, Aug 7, 2010.

  1. fatbear

    fatbear Member HowtoForge Supporter

    I'd like to install so that dynamic content (domains, mailboxes, etc.) are all stored under /home. I saw a thread saying that this has to be done before ISPConfig is used (at install time). I tried both the standard and expert settings, but I was never prompted for a PREFIX_DIR (or something like that) to use.

    So, is it still the case that once you've completed the installation of ISPConfig3, you can't change mail from /var/vmail to /home, web from /var/www to /home, etc.?

    In general, the need is to install so that volatile data goes into /home, not /var.
  2. mccharlet

    mccharlet Member HowtoForge Supporter


    I use this solution

    1. to the service
    2. move the folder ti /home
    3. create a link
    4. restart the service

    Exemple for apache

    1. /etc/init.d/apache stop
    2. mv /var/www /home/www
    3. ln -s /home/www /var/www
    4. /etc/init.d/apache stop
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Installing under /home for website contents is a really bad idea as apache suexec will stop working then. The suexec path is compiled into apache, so you can not chnage this without compiling your won apache.
  4. fatbear

    fatbear Member HowtoForge Supporter

    Unfortunately, the / partition that owns /var is small. The /home partition is the one that has usable disk space. What does one do to make /home work?
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Nothing. As thats simply the wrong solution for your problem. The solution that you use normally in such a case is even easier, you simply remount the harddisk partition that is currently used for /home e.g. as /var/www
  6. mike_p

    mike_p Member

    I had similar problems. The ISP I use for my servers delivers them partitioned with the majority of space allocated to /home. Basically the solution is to swop the partitions of the disk. Here is a guide I wrote (for myself!) so that I could replicate the fix: (the physcal disk names (sda3, sda5) may be different in your partitioning scheme)

    Partition adjustment
    In theory to make the swop you should edit the /etc/fstab . However fstab uses the disk labels to identify devices, so the method I use is to change the disk labels.

    To achieve the swop:

    1. Move contents of /home to /backuphome
          mkdir /backuphome
          mv /home/* /backuphome
    2. copy contents of /var to /home
          cp -r /var /home
    3. use e2label to swop partition labels.
          e2label /dev/sda3 /var
          e2label /dev/sda5 /home
    4. reboot (for changes to take effect)

    5. delete contents of /home (ie all the 'old' var contents which should have already been copied across.

          rm -rf /home/*
    6. move contents of /backuphome to /home
          mv /backuphome/* /home/
    Then install IPSCONFIG.

    For my full guide that i use have a look at:

    If you don't understand any of the procedure, please ask before trying it!
  7. =ChAoS=

    =ChAoS= New Member

    Hi i'm also trying to acheive whats posted here but have changed something. My file system is installed in a 10 gig partition on a 1T hdd.

    Instead of swapping with home that i presume would leave me with a small home directory (like /var is now) I have made another partition thats half my original home directory called data. Its around 450gig and mounted at /. Will it be ok to use this?

    Also i'm a little unsure what devs to use. It seems to me to be a straight swap but i'm not sure where the original /var is?

    So far i have ...

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 1275 10241406 83 Linux
    /dev/sda2 1276 65975 519702750 83 Linux <= /home
    /dev/sda3 121536 121601 523488 82 Linux swap / Solaris
    /dev/sda4 65976 121535 446285700 83 Linux <= /data - The one i created

    So is var just mounted like the one i made, data?

    If you could please adjust the e2label part to suit my drive i would really appreciate it or atleast tell me what i'm missing here.

    sorry for the noob questions ... Thanks =ChAoS=

Share This Page