DEV Community

Discussion on: Deploying Laravel 5 applications on shared hosting without the use of SSH

Collapse
 
bocanhcam profile image
bocanhcam

It's ok on my local. but when i upload it on my hosting, I have this error.

Forbidden
You don't have permission to access /index.php on this server.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

Can you please tell me how to fix it. thank you.

Collapse
 
faryar76 profile image
faryar

also you can use this --> github.com/faryar76/lrm

package to run migrations and upload files without ssh

Collapse
 
edetscript profile image
Abednego Edet

Change the file access permissions for public folder, the permission error will disappear, everything should work normally now, unless you missed a step :)

Collapse
 
rolmax1 profile image
Romax

I had this error. Firstly, there could be a file on the host that is already rerouting you via the .htaccess. After sorting this, then my host required a php.ini in the root directory and this needed to be a "production one" as opposed to a local one. Then bootstrap/cache/config.php had hard-coded references to my local PC, but not compatible with the hosting platform. With that the 500 Internal Service error was gone.

Some comments have been hidden by the post's author - find out more