Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

danielw's avatar

Cpanel Envoy deployment

Running into an issue with envoy deployment to a subfolder public_html/app cPanel domain is pointing to public_html/app/current/public

I have tried adjusting where the directory path is and assigning appropriate .htaccess directives, but the server continues to show the folders, not the application rendering.

Any suggestions?

0 likes
3 replies
Snapey's avatar

if your host allows it install laravel above public_html, then delete public_html and recreate it as a symlink to laravels public folder

This is the only really truly secure method, and I have multiple sites hosted on cpanel shared hosting using this technique

danielw's avatar

@Snapey I have root access to whm. So the suggestion is to install the app within the /home/<cpanel_user>/app and then symbolically link to a folder within public_html/app ?

Snapey's avatar

@danielw no, as long as you only have this one site, blow away the public_html folder then recreate it as a symbolic link pointing to public

so if you did ls of public_html you would see laravel public folder

and then use the standard laravel directory structure and .htaccess

Please or to participate in this conversation.