change default locations of website data and miradb data directory

Discussion in 'Installation/Configuration' started by Roy Mullins Jr, Sep 6, 2019.

  1. Roy Mullins Jr

    Roy Mullins Jr New Member

    I am building a machine and would like to have ISPCONFIG running on it. I have the following drives on the machine

    1 500 GB for the OS and ISCONFIG - OS is Ubuntu 18.04LTS
    1 10TB Drive for holding websites
    1 1TB drive for holding the databases

    How do i go about setting things up so that everything gets to the correct places

    the 10TB drive is mounted as /website-data
    the 1TB drive is mounted as /database-data
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Remount the drives to the correct locations. The 10TB drive as /var/www and the 1TB drive as /var/lib/mysql
    take care to stop mysql/mariadb before you remount the drives and ensure that all data from the directories get copied to the new drives before you mount them in place.
     
  3. Roy Mullins Jr

    Roy Mullins Jr New Member

    since this is a clean install, as i am going to install later this afternoon, i would do this before i do an installation, correct ?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes. But doing it later would work too, so that's not critical.
     
  5. Roy Mullins Jr

    Roy Mullins Jr New Member

    what about premissions? will i have to do anything about that. I am very new at linux so sometimes i have to have things spelt out for me.
     
  6. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    A straightforward way to get what you want is set up mounts during Ubuntu install. I have not installed Ubuntu in this way, but I know Debian does allow this. So maybe Ubuntu server version and some advanced installation mode at least allows choosing mount points for disk partitions.
    That is: Install Ubuntu following the Tutorial:
    https://www.howtoforge.com/tutorial/ubuntu-lts-minimal-server/
    When you to the Partition Disks phase, choose Manual and mount your disks as follows:
    • 500 GB disk as / and put also swap there
    • 1 TB disk as /var/lib/mysql
    • 10 TB disk as /var/www
    This way permissions are set up by OS install and ISPConfig install, like all other thing also.
     

Share This Page