Installation of Laravel in Sub-domain - cPanel


I can install Laravel in normal domain (created from cPanel) whereas in sub-domains i cant able to do that.

Is there any solution to install laravel in sub-domain..? 

Tags: WHM cPanel
user image Author :   jackson

yeah!!! At first install laravel in the main domain... and then run the commands in the respective user.

composer global require "laravel/installer"

export PATH="~/.composer/vendor/bin:$PATH"

laravel new

Now login to cpanel through browser and create the sub domain normally. There, edit the Document root as /laravel/public directory path.fd

user image
jagan January 10, 2017
Add comment