====== Default Account Structure ====== All new accounts contain the following files and folders: ~/cgi-bin ~/domains ~/etc/dav.digest.passwd ~/etc/svn.basic.passwd ~/etc/svn.digest.passwd ~/etc/svn-access.conf ~/fcgi-bin ~/homes ~/logs ~/Maildir ~/svn ~/tmp ~/web/public ~/web/public/index.html To simplify things, the full path to your home directory (''/users/home/YourUserName/'') is represented as **~/**. The home directory is the default location when you log into your account via SFTP or through the shell (SSH). ===== ~/cgi-bin/ ===== This is where your CGI scripts go. This one we keep for historical reasons, because many users expect to have a special place to put executable scripts in. Note however that nothing is preventing you from placing e.g. Perl or Python scripts right into your document root, provided you raise the ExecCGI option via an .htaccess file. ===== ~/domains/ ===== This is where your secondary domains are located. When you first sign up to Joyent, your initial domain or site will be located in ''~/web/public''. Any additional domains you add to your account will then be located in ''~/domains'' with a separate directory per each new domain, like this: ~/domains/your-second-domain.com/ ~/domains/your-third-domain.net/ Each one of your domain directories as seen above will have the same directory structure and default files as you home directory including ''~/web/public/''. ===== ~/etc/ ===== By default the ''~/etc'' directory contains your Subversion and WebDAV authentication files, and your PHP configuration file (php.ini), and is also used for keeping other configuration files as well. When you add other sites or domains to your account, each domain will have it's own ''~/etc'' directory as well under its respective home (e.g. ''~/domains/your-second-domain.com/etc''). ===== ~/fcgi-bin/ ===== This directory contains critical wrapper scripts needed for PHP operation. Typically you should not need to change these files, and tampering with can result in non-functional PHP on your site (unless you know what you are doing). ===== ~/homes/ ===== This directory contains mail and configuration files for each user you add to the virtual server. Each user will have a directory like this: ''~/homes/newuser/'' with a few configuration files similar to your home account as well as a ''~/Maildir/'' directory. ===== ~/logs/ ===== This is the log directory for your account. It contains the access log and, when enabled, the error logs as well. To enable error logs for your account, see [[enable-errorlog|Enabling Error Logs]]. ===== ~/svn/ ===== This Directory contains any Subversion repositories you've created and their associated files. The user access and password configuration files for Subversion (//svn-access.conf// and //svn.digest.passwd//) are located in ''~/etc''. ===== ~/web/public/ ===== This is the directory where you'd put any files you want to be accessible from your website (http://yourdomain.com/, http://you.textdriven.com/). By default this directory will have a default index file (//index.html//) containing a generic "coming soon" message. Feel free to rename or replace this file with your own website. In theory it would be safe to delete any of the files and folders that reside in your ''web/public'' directory if you do not intend to make use of them. The one exception of course is the ''.nodelete'' file, which is there to prevent the entire ''~/web/public'' directory from going away by accident, as that may cause a server-wide Apache problem. So, whatever you do, **do not delete** the ''~/web/public'' or the ''~/logs'' directories (same for any secondary domains you set up), as this will cause problems for the server.