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

vijayrana's avatar

Host Laravel 5.3 project in Addon Domain in Shared Hosting

I have a shared hosting account and addon domains available for 3 sites. Can I host my laravel 5.3 project on addon domain? Thank You

0 likes
2 replies
spekkionu's avatar

You can but make sure to change the document root from the default (generally public_html for cpanel or httpdocs for plesk) to the public directory in your Laravel install. You only want the public directory to be web accessible.

Really I highly recommend not using shared hosting and instead use something like Forge if you don't have the devops knowledge to setup and secure a server yourself.

vijayrana's avatar

I have created folder in /home/username directory named as "myproject". I have to move all my project to "myproject" except public folder of my project. Inside public folder, I have created a addon domain, ex "myaddondomain". So, I have to put public folder of my project inside "myaddondomain". Is this how it is done? After this, What files should I need to change? Thank You for your reply

Please or to participate in this conversation.