Python

Install Python 3.8 on CentOS 6 from source Install python 3.6 on CentOS 7 Install Python 2.7 on CentOS 6 pip Install jupyter notebook virtualenv Running Web Server with python SimpleHTTPServer Hosting Python Application in Production gunicorn Python Errors error: Python.h: No such file or directory pip install mysqlclient mysql_config: not found ERROR: Failed building […]

Read More…

Laravel

Laravel Database Migration Error Key too long How to find Laravel Framework Version Create project using latest laravel

Create project using specific version of laravel.

You can see available laravel versions on site https://packagist.org/packages/laravel/laravel […]

Read More…

Laravel Database Migration Error Key too long

When doing a database migration on Laravel, i get following error

This is because MariaDB use different UTF8 format. To fix, edit file

Inside, find

Replace with

You will also need to add

here is how my file look like after editing.

Laravel […]

Read More…

nodemon

Node.js applications when you run with nodejs command, you need to restart when a change is made to source code of the application. nodemon will watch your application source code for changes, restart if a change is detected. To install nodemon, run

Example

nodejs […]

Read More…

pm2 process manager for node.js

Auto Start pm2 on boot pm2 is a process manager for node.js applications. It is similar to forever. http://pm2.keymetrics.io First you need to install npm, on Ubuntu/Debian, run

To install pm2, run

Start an Application

Start an Application with name

Start Application in Cluster mode with

To Scale a clustered […]

Read More…

Check if PHP session is working

To check if PHP session is working, upload following script

Access the file, refresh the page in browser, if you see number increase with every refresh, PHP session is working properly on server. […]

Read More…