How to deploy laravel 4.2 on shared hosting?

后端 未结 5 1426
遇见更好的自我
遇见更好的自我 2020-12-09 06:00

I developed an application with laravel 4.2.8 and now I am having trouble deploying it. I followed this answer https://stackoverflow.com/a/16683938/3153380 but its not worki

5条回答
  •  南方客
    南方客 (楼主)
    2020-12-09 06:49

    I just add a new folder in the / folder on my shared hosting

    www.domain.com

    Where i add a sub folder called

    public/

    So that the path looks like this

    /www.domain.com/public/

    And from the CPANEL i link the domain name root folder to the

    www.domain.com/public/

    And then i just upload the laravel application in

    /www.domain.com

    It works for laravel 4.2 and 5. And there is no security breaches because the root domain folder is in the public folder of the laravel app, no need for updating the .htaccess file.

    It just works.

提交回复
热议问题