public_html root directory on DirectAdmin hosting.
1. Open File Manager
- Log in to your DirectAdmin control panel.
- Under the System Info & Files section on the dashboard, click the File Manager icon.

Select File Manager under System Info & Files
2. Navigate to domains and Select Your Domain
- In the File Manager directory tree, open the domains folder.
- Click on your website domain name (e.g.
testing.lezats.netoryourdomain.com).

Open domains folder and choose your domain
3. Open the public_html Folder
Inside your domain directory, click on the public_html folder.

The public_html folder is your website's document root
The
public_html folder is the primary document root where the web server serves your website files to internet visitors.4. Upload Script Archive (.ZIP)
For websites with multiple files, we recommend compressing them into a single.zip file on your computer first:
- Inside
public_html, click the Upload button in the top menu bar. - Drag and drop your
.zipfile from your local computer into the upload modal, then wait for the upload progress to finish.
5. Extract the ZIP File on the Server
- Locate the uploaded
.zipfile inside thepublic_htmldirectory. - Right-click the
.zipfile or check its box, then select Extract (or Archive -> Extract). - Confirm extraction to
/domains/[yourdomain]/public_html. - Your website files will extract immediately!

Website files extracted inside the public_html directory
6. Edit Configuration Files (e.g. .env or config.php)
If you need to update database credentials or environment variables:
- Click on the configuration file (e.g.
.env,config.php, or.htaccess). - Click the Edit button in the top menu.
- Update the values (make sure
DB_HOST=localhost), then click Save in the bottom-right corner.
