Last active
November 27, 2017 18:35
-
-
Save oxechicao/0f97bf98c03ee452910a9025c33a35df to your computer and use it in GitHub Desktop.
Development enviroment install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apt-get install git vim curl build-essential | |
| # Requirements for PHP 5.6 | |
| ## Source https://stackoverflow.com/questions/46378017/install-php5-6-in-debian-9 | |
| ### https://deb.sury.org/ | |
| apt-get install apt-transport-https lsb-release ca-certificates | |
| cd ~ | |
| wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg | |
| echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list | |
| cat /etc/apt/sources.list.d/php.list | |
| apt-get update | |
| apt-get install php5.6 | |
| # Install php 7.2 5.6 and defaults | |
| apt-get install php5.6 php7.2 \ | |
| php5.6-mbstring php7.2-mbstring php5.6-mbstring-dbgsym php7.2-mbstring-dbgsym \ | |
| php5.6-mcrypt php-mcrypt \ | |
| php5.6-opcache php7.2-opcache php5.6-opcache-dbgsym php7.2-opcache-dbgsym \ | |
| php5.6-xml php7.2-xml php5.6-xml-dbgsym php7.2-xml-dbgsym \ | |
| php5.6-xmlrpc php7.2-xmlrpc php5.6-xmlrpc-dbgsym php7.2-xmlrpc-dbgsym \ | |
| php5.6-xsl php7.2-xsl \ | |
| php5.6-curl php7.2-curl php5.6-curl-dbgsym php7.2-curl-dbgsym \ | |
| php5.6-fpm php7.2-fpm php5.6-fpm-dbgsym php7.2-fpm-dbgsym \ | |
| php5.6-json php7.2-json php5.6-json-dbgsym php7.2-json-dbgsym \ | |
| php5.6-mysql php7.2-mysql php5.6-mysql-dbgsym php7.2-mysql-dbgsym \ | |
| php5.6-readline php7.2-readline php5.6-readline-dbgsym php7.2-readline-dbgsym \ | |
| php-redis php-redis-dbgsym \ | |
| php-mongodb php-mongodb-dbgsym \ | |
| php5.6-zip php7.2-zip php5.6-zip-dbgsym php7.2-zip-dbgsym \ | |
| libphp5.6-embed libphp5.6-embed-dbgsym libphp7.2-embed libphp7.2-embed-dbgsym \ | |
| composer; \ | |
| # Composer required as user (not root) | |
| composer global require "laravel/installer"; \ | |
| composer global require "friendsofphp/php-cs-fixer"; \ | |
| composer global require "squizlabs/php_codesniffer=*"; \ | |
| # JavasScript/NodeJs | |
| ## https://nodejs.org/en/download/package-manager/ | |
| curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash - | |
| apt-get install -y nodejs | |
| npm i -g n; | |
| n stable; | |
| npm i -g vue; | |
| npm i -g vue-cli; | |
| npm i -g quasar-cli; | |
| npm i -g cordova; | |
| # Databases | |
| apt-get install mongodb mariadb-server mariadb-client | |
| ## Extras | |
| apt-get install nginx; \ | |
| apt-get install redis-server; \ | |
| apt-get install pkg-config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment