0
votes

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
There are many changes for Internal Server Error describe with more details ?Niklesh Raut
When I access server after installation of Laravel, without any modification to index.php and any other file. Its showing this error.Kulwinder Singh
Is your server using cPanel or Plesk? Do you have SSH access? Is the domain pointing to the public folder of your Laravel app or the root folder?Rwd
Anything in the logs?apokryfos
Its cpanel. I connected with Putty and installing via that. Showing error. Kindly check chandigarhtutors.comKulwinder Singh

1 Answers

0
votes

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