> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.webway.host/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to upload website files in DirectAdmin


# How to Upload Website Files in DirectAdmin

Uploading website files in DirectAdmin is a crucial step in the process of setting up your website. This guide will walk you through the process of uploading files to your server using the DirectAdmin control panel.

## Table of Contents

* Prerequisites
* Accessing File Manager
* Uploading Files
* Setting Permissions
* Troubleshooting Common Issues
* Conclusion

### Prerequisites

||| * An active hosting account with DirectAdmin access.
||| * The files you wish to upload (e.g., HTML, CSS, JavaScript files, images).

### Accessing File Manager

1. **Login to DirectAdmin**: Visit the URL of your server (e.g zada119.webway.host:2222) and log in with your username and password. You can find your login details and server URL in the "New Account Information" email. Alternatively, you can login to the [client portal](https://portal.webway.host) and login to your DirectAdmin hosting package from there.
2. **Navigate to File Manager**: Once logged in, find the `File Manager` icon in the DirectAdmin dashboard and click on it.

### Uploading Files

1. **Locate the Public_HTML Directory**: Inside the File Manager, navigate to the `public_html` directory. This is the root directory for your website.
2. **Upload Files**:
   
* Click on the `Upload` button usually located at the top of the File Manager.
   
* Choose the files from your computer that you want to upload. You can select multiple files.
   
* Wait for the upload process to complete.
3. **Verify the Upload**: After the upload finishes, ensure that your files are listed in the `public_html` directory.
4. **Index file**: In order for your website to load, you need to have a file named `index.html` or `index.php` in your `public_html` directory.

### Setting Permissions

* Sometimes, you may need to set specific permissions for files or folders.
* To do this, right-click on the file or folder in the File Manager and select `Change Permissions`.
* Set the permissions as required (e.g., 755 for folders and 644 for files is common), and then save the changes.

### Troubleshooting Common Issues

| * **Upload Limits**: If you encounter limits on the file size, you might need to use an FTP client to upload larger files.
| * **Permission Issues**: Incorrect file permissions can lead to errors. Ensure you have set the appropriate permissions.
| * **File Not Found**: If your website doesn't display your files, check if you uploaded them to the correct directory ( `public_html`).

### Conclusion

Uploading files to your website via DirectAdmin's File Manager is a straightforward process. Ensure that you upload the files to the right directory and set appropriate permissions. If you encounter issues, check the file size limits and permissions, or submit a [support ticket](https://webway.host/contact).

Remember, keeping a backup of your website files before making significant changes is always a good practice.