How to create symlink between private_html and public_html

In this guide we go through how to create a Symlink between the private_html and public_html directories.

When you add a domain in Direct Admin, a symlink is automatically created between private_html and public_html. Sometimes, however, that link can be broken for various reasons. Keep in mind that, when you create the symlink again, everything in private_html will be lost. Be sure to move the files you want to save before continuing the wizard.

Start by logging into Direct Admin. If you are not sure how to log in, you can follow this guide: Log in to Direct Admin

Hover the mouse over the four the dots on the left (1). Click on Account Manager(2) and then on Domain Setup(3). 0.png

Click on the domain you want to symlink to. 1.png

Then click on private_html Setup to the right 2.png Then click in "Use a symbollink link from private_html to public_html - allows for same data in http and https" (1). Confirm the changes by clicking Save (2). 3.png