0

I am installing laravel on server via putty. I linked public with public_html. Files were located inside laravel folder above public_html. After installation its showing "Internal Server Error"

The server encountered an internal error or misconfiguration and was unable to complete your request.

1 Answers1

0

Usually when using cPanel it will usually require your index.php to have the permissions 644 otherwise you'll get a 500 error.

You can change this in cPanel by doing the following:

  1. Login to your cPanel (if not already there)
  2. Click File Manager.
  3. Click the name of the file for which you would like to change the permissions.
  4. Select the Change Permissions link at the top right of the page.
  5. Select the permissions you would like to set for the file

    • Owner - Read and write
    • Group - Read
    • World - Read
  6. Click Change Permissions.


Alternatively, if you have ssh access you could run the following command on the server:

chmod 644 path/to/index.php
Rwd
  • 34,180
  • 6
  • 64
  • 78