and.....
HTTP ERROR 500 Laravel shared hosting (planet hoster )
Hi there,
I trying to deploy my project to shared hosting ( planethoster ). I use Filezilla and actually my structure is that
- goshr
- public_html
- index.php
-.htacess
- .....
I replace
__DIR__ . '/../bootstrap/autoload.php'
to that
__DIR__ . '/../app_folder/bootstrap/autoload.php'
and same for the other declaration on index.php
here my htaccess
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
RewriteEngine On
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#RewriteRule ^(.*)/$public / [L,R=301]
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
# Send Requests To Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
Before deployment, I optimized my project and I added permissions.
Can you help me please?
@laracoft this has been discussed before, on a shared host main laravel should be outside of public_html.
I have never had problems following this guide:
http://novate.co.uk/deploy-laravel-5-on-shared-hosting-from-heart-internet/
But exactly follow, not partly follow.
Another is https://laravel-news.com/subfolder-install
But I prefer the novate setup, it works.
Please or to participate in this conversation.