Linux Environment
Open the terminal as Root and enter the following commands.
Install Git
Install Git on your local environment:
apt-get install git
Config Git
Config your name and email:
git config --global user.name {Your Name}
git config --global user.email {your.name@domain.com}
Install Node
Install Node on your local environment:
apt-get install nodejs
Install Grunt
Install Grunt on your local environment:
npm install --global grunt-cli
Install PHP
Install PHP on your local environment:
apt-get install php php-cli php-dev
Install Composer
Install Composer on your local environment:
apt-get install composer
Install SQLite
Install the SQLite
bundle on your local environment:
apt-get install sqlite php-sqlite
Install MSSQL
Install the MSSQL
bundle on your local environment:
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - curl https://packages.microsoft.com/config/ubuntu/18.10/prod.list > /etc/apt/sources.list.d/mssql-release.list apt-get update
apt-get install msodbcsql mssql-server unixodbc-dev
pecl install pdo_sqlsrv
Config MSSQL
Enable the extension:
echo "extension=pdo_sqlsrv.so" | tee /etc/php/7.2/mods-available/pdo_sqlsrv.ini phpenmod pdo_sqlsrv
Create a test database:
sqlcmd -U sa -P {your-password} -Q 'create database test'
Set the root password:
sqlcmd -U sa -P {your-password} -Q 'alter login sa with password = '\'test\'
Install MySQL
Install the MySQL
bundle on your local environment:
apt-get install mysql-server mysql-client php-mysql
Config MySQL
Create a test database:
mysql -u root -e 'create database test'
Set the root password:
mysqladmin -u root password test
Install PostgreSQL
Install the PostgreSQL
bundle on your local environment:
apt-get install postgresql php-pgsql
Config PostgreSQL
Create a test database:
psql -U postgres -c 'create database test'
Set the root password:
psql -U postgres -c 'alter user postgres with password '\'test\'
Install Xdebug
Install Xdebug on your local environment:
apt-get install php-xdebug
Install Sendmail
Install Sendmail on your local environment:
apt-get install sendmail
Tweak /etc/hosts
if messages stuck in the Sendmail queue:
127.0.0.1 {your-hostname}.localdomain {your-hostname} localhostEdit on GitHub