Going Up Laravel4 App for Shared Hosting

Asked

Viewed 1,084 times

3

Gerenciador

My access to this hosting can only be from the folder public_html forward, I can’t access a level back.

I put all the project files inside public_html and inserted a htaccess with

 <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_URI} !^public
    RewriteRule ^(.*)$ public/$1 [L]
</IfModule>

and it didn’t work, returns me a blank page.

I wonder what’s wrong?

  • 1

    Laravel has write permission in folder app/storage? Also make sure that all extensions that Laravel needs are installed and enabled such as: JSON, Mcrypt and others.

  • the briefcase app/storage is with permissions and extensions are all installed... for deployment test I got a repository from github that is active and working...

1 answer

2

The only way I found in shared that I use is:

SetEnv APPLICATION_ENV production
<IfModule mod_rewrite.c>
    RewriteEngine on

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

    RewriteCond %{REQUEST_URI} !-d
    RewriteRule (.*) public/$1 [L]
</IfModule>

This issue of . htaccess varies from the version of apache, and the way it compiled, that same code does not work on a friend’s host.

It might work for you. But I can’t be sure.

  • I don’t know why, but it’s not working... to test I took the repository of the tutorial todovel on github and did it the way he taught but there was no way

Browser other questions tagged

You are not signed in. Login or sign up in order to post.