php - Laravel website on a shared webhost that does not provide any shell? -


i have laravel 5 site on localhost. want launch on shared host host neither providing me shell nor has composer installed. can still launch website on host? if yes how? if answer no should do?

yes can upload via file manager if wish. follow below steps

  1. check server configuration of php 5.4 (this because every little change on .htaccess file may change config)

  2. create directory in same level of public_html , put project inside folder (except public folder).

  3. put content of public (l5) directly on public_html (don't overwrite .htaccess file)

inside public_html files of public directory of laravel 5 resides now.

go index.php , edit line 22

#from require __dir__.'/../bootstrap/autoload.php'; #to require __dir__.'/../[framework-folder]/bootstrap/autoload.php'; 

and on line 36

#from  $app = require_once __dir__.'/../bootstrap/app.php'; #to $app = require_once __dir__.'/../[framework-folder]/bootstrap/app.php'; 

then edit .htaccess file , add lines

rewriteengine on # redirect trailing slashes... rewritecond %{request_uri} !^ rewriterule ^(.*)$ /$1 [l]   

hope works. worked me.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -