LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Directory structure for services (https://www.linuxquestions.org/questions/linux-server-73/directory-structure-for-services-605880/)

marknoten 12-10-2007 03:29 PM

Directory structure for services
 
Hi all,

I would like to use a different partition for the data of the Apache server, Subversion repositories, FTP server and PostgreSQL database. Can anyone guide me in the directory structure that I should use for each partition? Are there any conventions? I'm thinking about:

/repos -> Subversion repositories
/var/www -> Apache installation with /var/www/html document root
/var/ftp -> FTP server
??? -> PostgreSQL database

How difficult is it with Ubuntu server to install these extra partitions? I would also like to move /usr, /opt and /var to a separate partition.

Kind regards,

Mark

dafyre 12-10-2007 04:23 PM

Re: Directory Structure for Services
 
Quote:

/repos -> Subversion repositories
/var/www -> Apache installation with /var/www/html document root
/var/ftp -> FTP server
??? -> PostgreSQL database

How difficult is it with Ubuntu server to install these extra partitions? I would also like to move /usr, /opt and /var to a separate partition
Hey Mark:

Do you have another disk drive available, or are you wanting to repartition the drive you have now?

There are tools for Linux that will let you repartition the drive, even after you've installed your OS. GParted is one I can remember (it's a gui version of qparted, I think, and it runs under gnome). Careful with this one, as I don't remember if it's destructive or not!

Make sure when you repartition the drives that you have a good backup, just in case! And make sure that you give each partition more space than it requires. That's just my 2c worth. Hope it helps!

See Ya!
~Brant


All times are GMT -5. The time now is 12:29 PM.