## Site settings

The following settings are editable for each site:

Site

- Nickname: The name that is displayed for this site in the Sites tab.
- Protocol: The file transfer protocol to be used with the web server. FTP and SFTP are the most common.
- Passive mode: (FTP protocol only) Determines whether Coda connects to the server for data transfers (passive mode), or vice-versa (active mode).
- Server: The address of the web server hosting the site.
- Port: Which port to connect to for file transfers. This depends on which file transfer protocol is used, and in most cases does not need to be manually changed.
- User Name: The user name required to log into the web server hosting the site.
- Password: The password required for the above user name.
- Ask each time: Check this box if you would prefer to store passwords in your brain than in your system keychain.
- Root URL: The root URL for the web site. This will be used to generate a thumbnail image for the site, and as the base URL for previewing remote pages.
- Local URL: The base URL used for previewing local pages.
- Remote Root: The default web server folder you will be placed in upon connection to this site, and the base folder used for generating preview URLs.
- Local Root: The local folder you will be placed in upon connection to this site.

See also: Getting around in Coda, Using the files tab, Editing text

Terminal

- SSH Server: The address of an SSH server associated with this site. Generally, this is the same address as the web server.
- Port: The default port (22) is usually correct, but may also be edited if necessary.
- User Name: The user name required to log into the SSH server.
- Password: The password required for the above user name.

See also: Using the terminal

Source

These options are only available if you have entered a Local Root in the Site section.

- Off/On: If turned on, Coda will assume the site's local root is under source control and will offer source control features when this site is open.

The remaining options vary depending on whether your Local Root points to a Subversion or Git working copy.

Subversion options:

- Repository URL: The URL of the source control repository for the site will be displayed here. This is determined by information in the local root.
- User Name: The user name required to access the repository, if any.
- Password: The password required for the above user name, if any.

Git options:

- Remote popup: The desired remote repository to use.
- URL: Remote repository URL, if any.
- Password: Password for remote repository, if any.
- Branches: The desired branch to use.

For more information on using Git or Subversion source control features, see SCM sidebar.

Database

- Database Type: No Database will disable Coda's database features for this site. MySQL Server indicates a network connection to a remote MySQL server. MySQL Server via SSH indicates a network connection to a remote MySQL server, tunneled over SSH. MySQL Socket indicates a connection to a local MySQL server via a Unix socket.
- MySQL Server/Socket: For "MySQL Server" connections, the address of the remote MySQL server. For "MySQL Socket" connections, the path to the socket.
- User Name: The user name required to log into the MySQL server.
- Password: The password required for the above user name.
- Initial Database: If specified, the database to select upon connection to the server.
- SSH Server: For "MySQL Server via SSH" connections, the address of the SSH server.
- User Name: The user name required to log into the SSH server.
- Password: The password required for the above user name.

Most of these settings are optional, and can be left blank if you're not sure what to enter.

Contact your web hosting provider for information about server addresses, user names, and passwords.

For more information on MySQL databases, see Managing MySQL databases.

See also: Editing a site