laravel installation on shared godaddy hosting 1 of 2

laravel installation on shared godaddy hosting 1 of 2



Laravel on shared Godaddy hosting

You need the following for the task.
1) SSH client.. download it
2) your SSH info.. get if from godaddy CPanel
3) composer.phar file. download it by following instructions.

Key issues and solution:
——————
1) if composer is installed in bin at the root.. it won’t execute no mater what you do (change privilege etc). So create your own bin folder.

2) use the command below provided by me.. Do not use the command provided on laravel official website. (after composer there is extention “.phar” don’t miss that)
composer.phar create-project laravel/laravel your-project-name

3) edit the .htaccess file
RewriteEngine On

RewriteCond %{REQUEST_URI} !^/yourlaravelinstalledfolder/public/.*$
RewriteRule ^(.*)$ /yourlaravelinstalledfolder/public/$1 [L]

3 thoughts on “laravel installation on shared godaddy hosting 1 of 2

  1. hello my friend , very good tutorial . I wold like to make a question to you .
    Is that betther to create the laravel project before the root ( before public_html )of the site , and the public folder , stay inside the public html ?
    How could I do It ? thanks

Leave a Reply

Your email address will not be published. Required fields are marked *