- Download the product archive from your Envato downloads.
- Upload the archive to the directory that will contain the application and extract it on the server. Extracting on the server keeps hidden files from being skipped.
- Copy the contents of the package's
Scriptdirectory into the application directory. - Confirm that hidden files such as
.envand.htaccessare present. - Allow the web server user to write to
storage/andbootstrap/cache/. Don't make the whole application writable.
Document root
Point the domain's document root at the package's public/ directory. If the application lives in /var/www/justdocs, the document root is /var/www/justdocs/public.
This keeps .env, the code, logs and stored secrets outside the public web directory. If /public appears in your site's address, the document root isn't set correctly.
Info
A package-level fallback file may help on restricted hosting, but the real document root is the production-safe answer.
Web server notes
- Apache/LiteSpeed: allow the included
.htaccessrules and enable URL rewriting. - Nginx: route requests through
public/index.phpwith a standard Laravel server block. - Customers' domains: requests for a customer's domain arrive with that hostname. Make the JustDocs virtual host the default one (Apache: first in the list; Nginx:
server_name _;ordefault_server), so they reach JustDocs instead of a default page. See Custom domains. - Reverse proxies: forward the original host, scheme and client address, so the application knows it's on HTTPS.