Common Errors in Website Hosting

SSH Errors

Error:

Permissions 0644 for 'key' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "key": bad permissions
Permission denied (publickey).

Solution:

Change permissions of your key:

chmod 400 keyname


Composer Errors

Error: Classes can't be found

Solution: make sure your composer.json file has the namespace app\\ connected to "app/" (don't forget the /)


After composer errors are solved remove vendor

rm -r vendor


and run

composer install

again


Common Errors

Error 500 (Internal Sever Error)


Run

sudo tail /var/log/apache2/error.log

in the droplet to view the error


Error: 1364 Field 'display_name' doesn't have a default value (also happens with GROUP_BY)

Solution:

  • SSH into server
  • Sign into MySQL, type: mysql -u username -p
  • Enter password
  • Type: SET GLOBAL sql_mode=''";
  • Type: exit

Comments (1)

LVZ

This is so rad maaan. It be cool so stay in school kidz. Ya yeet

Sign in to post a comment

Search Here