Skip to content

Instantly share code, notes, and snippets.

@trinvh
Last active February 23, 2019 11:29
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save trinvh/ac74f6e6a81b93f245347543a15f1449 to your computer and use it in GitHub Desktop.
Save trinvh/ac74f6e6a81b93f245347543a15f1449 to your computer and use it in GitHub Desktop.
1. Go to Module Admin.
2. Click Apache Config.
3. Scroll to bottom, look at "Override a Virtual Host Setting" section, select your vhost from dropdowns.
4. In "Custom Entry" field, paste the following code:
`DocumentRoot "/var/sentora/hostdata/[username]/public_html/[domain-alias]/public"`
Replace [username] with your login username, and [domain-alias] with your domain directory friendly name (domain.com => domain_com).
5. "Save Host" and waiting for Sentora Daemon, or from terminal, reload httpd service:
`php -q /etc/sentora/panel/bin/daemon.php`
`service httpd restart`
6. Done !
@DiyarBakir
Copy link

DiyarBakir commented Nov 4, 2016

if i do that step do i need to change director in public folder as most people do for shared host/// personally i have vps but i did not install any panel for it it try some panel but none of them worked perfectly ... for my laravel project....
thanks if its work it help me ... because i did same thing but without using __panel :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment