This answer explains a couple of methods you can use to publish files to your VPS.
Publishing your site means uploading web pages, scripts and graphic files that compose your site to your web space in any of the following ways:
- FTP connection
- Plesk File Manager
- Secure Shell connection (only for users of Linux and FreeBSD operating systems)
- With Adobe Dreamweaver
FTP is one of the most easiest and most common ways of uploading files.
Uploading sites through FTP
- Connect to the server with an FTP client program, like FileZilla or CuteFTP. To log in, use the FTP account details you specified during setup of the hosting account or that you obtained from your provider.
Enable passive mode if you are behind a firewall.
- Upload files and directories that should be accessible through HTTP protocol to the httpdocs directory. Upload files and directories that should be transferred securely over SSL protocol to the httpsdocs directory.
- Place your CGI scripts into the cgi-bin directory.
- Close your FTP session.
Uploading sites through Plesk File Manager
To upload files through Plesk File Manager:
- Log in to Plesk control panel.
- Click the Domains shortcut in the navigation pane.
- Click the required domain name in the list.
- Click the File Manager icon in the Hosting group.
- Create and upload files and directories.
- Upload files and directories that should be accessible through HTTP protocol to the httpdocs directory. Upload files and directories that should be transferred securely over SSL protocol to the httpsdocs directory.
- To create a new directory in your current location, click the Add New Directory button.
- To create new files in the required directory, click Add New File Enter a file name into the File creation section and select the Use html template checkbox if you want the file manager to insert some basic html tags to the new file. Click OK. A page will open allowing you to enter the content or html-formatted source of a new file. After you are done, click OK again.
- To upload a file from your local computer, click Add New File, specify its path to its location in the File source box (or use the Browse button to locate the file), and click OK
When you upload web content through File Manager or FTP, your control panel automatically sets the appropriate access permissions for files and directories. The permissions are represented as three sets of symbols, for example, 'rwx rwx r--'.
The first set tells what the owner of the file or directory can do with it; the second tells what the user group, the file or directory belongs to, can do with the it; the third set indicates what other users (the rest of the world, i.e. Internet users visiting a site) can do with it:
- R means permission is given to read the file or directory
- W means permission is given to write to the file or directory
- X means permission is given to execute the file or look inside the directory
To modify permissions for a file or directory, click the hyperlink which represents the relevant set of permissions in the Permissions column. Modify the permissions as desired and click OK.
To edit the source code of a file, click .
To edit the Web page in the built-in visual editor (available only to users of Microsoft Internet Explorer), click . When editing an HTML file, Plesk opens its internal editor by default. If you want to edit the source code of the HTML file, click Html. To return back to WYSIWYG mode, click Design.
To view the file, click .
To rename a file or directory, click . Type in a new name and click OK.
To copy or move a file or directory to another location, select the required file or directory using the appropriate checkbox, and click Copy/Move. Specify the destination for the file or directory to be copied or renamed to, then click Copy to copy, or Move to move it.
To update the file or directory creation date, click Touch. The timestamp will be updated with the current local time.
To remove a file or directory, select the corresponding checkbox, and click Remove Selected. Confirm removal by clicking OK.
Uploading Sites Through SSH Connection If your are using a Linux or FreeBSD operating system on your local computer and have access to server shell, use the
‘scp’ command to copy files and directories to the server:
scp your_file_name login@remoteserver.com:path to copy files, and
scp -r your_directory_name login@remoteserver.com:path to copy entire directories. After publishing, you will be able to work with files and directories on your account using SSH terminal web application integrated in your Plesk control panel (
Domains > domain name > SSH Terminal).
Publishing from Microsoft FrontPage through FTP
To publish files through FTP:
- Open FrontPage.
- Open a FrontPage website: open File menu and select the Open Site item.
- Go to Remote Web site view: click the Web Site tab, and then the Remote Web Site button at the bottom of the window.
- Set up your Remote Web Site Properties:
- Click the Remote Web Site Properties button in the upper-right corner of the window.
- Select FTP as the remote Web server.
- In the Remote Web site location box, type your host name (e.g. ftp://ftp.yourdomain.com)
- In the FTP directory box, type your FTP directory if your hosting company provided one. Leave it blank if they did not specify one.
- Select the Use Passive FTP checkbox if your computer or network is protected by a firewall.
5 Click
OK to connect to the remote site.
The Remote Web site view will show files that you have in your local and remote sites.
6 Click the Publish Web site button in the lower-right corner of the window.
Publishing Sites with Adobe Dreamweaver
Before publishing a site from Dreamweaver, you need to define the site properties. This means telling Dreamweaver where your site files are located on your computer, and specifying the server to which you want to publish the site.
To define a site in Dreamweaver:
- From the Site menu, choose New Site. The Site Definition screen will open.
- Click the Advanced tab.
- In the Local Info category, specify the following:
- Site name. This will show in the web browser’s title bar.
- Local root folder. This is the folder on your computer where all of your site files are stored. For example c:\My Site
- Default images folder. Specify the folder where your site’s graphic files are stored. For example c:\My Site\images
- HTTP address. Specify your domain name. For example, http://your-domain.com
4. From the
Category menu, select the
Remote Info item.
5. From the
Access menu, select the
FTP option. Most likely, your server supports publishing through FTP (File Transfer Protocol, commonly used for transferring files over the internet).
6. Specify the following settings:
- FTP host. Type your FTP host name without the ftp:// prefix. For example, your-domain.com.
- Host directory. Specify the directory on the server where your site will reside. In most cases, this is httpdocs.
- Login and password. Specify the log in name and password for access to the FTP account.
- Use passive FTP. Select this option only if your computer is behind a firewall.
7. To ensure that you specified the correct login and password, and that Dreamweaver can connect to the server, click the
Test button.
8. To save the settings, click
OK.
To publish your site:
- Open your site in Dreamweaver.
- From the Site menu, select the Put op