Common Errors in Website Hosting

... by Bittle in Website Hosting July 24, 2019

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: ext-curl not found

Solution: Run the following commands in the droplet

sudo apt-get install php-curl
sudo apt-get update


Error: zip and unzip commands are not found

Solution: Run the following commands in the droplet

sudo apt-get install zip unzip php7.2-zip


Error: the requested PHP extension mbstring is missing from your system

Solution: Run the following commands in the droplet

sudo apt-get install php7.2-mbstring


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


Propel Errors

Error:  'Symfony\Component\Translation\IdentityTranslator' not found

Solution: Something didn't install right! Copy vendor folder from Kode Central (or another project working with validate) and replace the current project vendor folder


Error: Cannot insert a value for auto-increment primary key

Solution: Put allowPkInsert="true" in desired table

<table name="table_name" idMethod="native" phpName="TableName" allowPkInsert="true">
...


Common Errors

Error 500 (Internal Sever Error)


Run

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

in the droplet to view the error


Error: Invalid command 'RewriteEngine'

Solution: Run the following commands in the droplet

sudo apt-get install apache2
sudo a2enmod rewrite
service apache2 restart


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