Mac OSX Kubernetes Run `brew link` on these: kubernetes-cli

July 26, 2020

You may see this error after installed Kubernetes and run “brew doctor”. Warning: You have unlinked kegs in your Cellar. Leaving kegs unlinked can lead to build-trouble and cause brews that depend on those kegs to fail to run properly once built. Run `brew link` on these: kubernetes-cli It can be solved by running below […]

Laravel 7 Digitalocean managed database error: The server requested authentication method unknown to the client

July 20, 2020

I am using Laravel 7 to do testing on DigitalOcean’s managed database cluster. Laravel connection doesn’t work, with error and I have fo find the fix that causing it. Illuminate\Database\QueryException SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client This issue has been fixed in PHP7.4, please install PHP7.4 in the Droplet. If […]

Laravel & NPM installation Steps

July 15, 2020

Create a new laravel project. $ composer create-project –prefer-dist laravel/laravel   my-project (NOTE: if you do not have composer, please install in your machine and make it global. This will make a lot easier) Or Clone the repository from github or your private repo. $ git clone <your repo> Install NPM globally if you haven’t installed that […]

PHP Apache2 Laravel Resource interpreted as Stylesheet but transferred with MIME type text/html: “

July 13, 2020

Depending on your server configuration. Some condition, it can be solved by creating an .htaccess file into your root folder (or update the existing one) with this line inside AddType text/css .css this will tell apache to send the right content-type header for .css file On my case, the above won’t work at all. My own hosted Ubuntu needs below changes so […]

Mac OSX Composer Could not open input file: /Users//composer.phar

July 1, 2020

To most of the people who want to install composer on OSX, usually, the below command is sufficient: $ curl -sS https://getcomposer.org/installer | php $ mv composer.phar /usr/local/bin/composer $ alias composer=’/usr/local/bin/composer.phar’ However, it could still happen to have error of “Could not open input file: /Users/kayliongmac11air/composer.phar“ This is due to shell environment didn’t refresh. To fix this […]