How to change document root in Webuzo

Asked by: boon
Date:
Viewed: 67
Answers: 1
  • 0

Hi everyone,

I'm trying to deploy a Laravel application on a server managed by Webuzo, but I ran into an issue with setting the document root. As you might know, Laravel requires the server's document root to point to the public folder inside the Laravel project.

Currently, my Webuzo server's document root points to the default location (e.g., /home/<username>/public_html), but I need it to point to /home/<username>/laravel_project/public instead.

I’ve done this on other servers with Apache or Nginx by modifying the VirtualHost or server block in the respective configuration files. However, I’m unsure how to achieve this with Webuzo.

Could anyone guide me through the process? Specifically:

  1. How can I change the document root for a domain or subdomain in Webuzo?
  2. Are there any caveats or best practices I should follow when deploying Laravel on a Webuzo server?
  3. How can I ensure the .htaccess rules for Laravel work properly after changing the document root?

Thanks in advance for any help! 😊

 

 

 

Answers

Answer by: Bill

Answered on: 02 Mar 2025

  • 0

As far as I know you cannot change it for the primary domain, but you can set your own path for addon domains.

Please log in to post an answer!