Update system after installed

sudo apt update && sudo apt -y upgrade

Install required packages

sudo apt -y install python-software-properties
sudo apt -y install software-properties-common

MySQL

sudo apt -y install mysql-server mysql-client mysql-workbench mysql-sandbox mysql-utilities mysql-testsuite
sudo mysql_secure_installation
sudo mysql
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
FLUSH PRIVILEGES;
sudo apt -y install apache2 apachetop

PHP & Utilities

sudo add-apt-repository ppa:ondrej/php && sudo apt update
sudo apt -y install \
php5.6 php5.6-{cgi,cli,common,curl,dev,enchant,gd,imap,intl,json,mbstring,mysql,opcache,readline,soap,sqlite3,xml,xmlrpc,xsl,zip} \
php7.0 php7.0-{cgi,cli,common,curl,dev,enchant,gd,imap,intl,json,mbstring,mysql,opcache,readline,soap,sqlite3,xml,xmlrpc,xsl,zip} \
php7.1 php7.1-{cgi,cli,common,curl,dev,enchant,gd,imap,intl,json,mbstring,mysql,opcache,readline,soap,sqlite3,xml,xmlrpc,xsl,zip} \
php7.2 php7.2-{cgi,cli,common,curl,dev,enchant,gd,imap,intl,json,mbstring,mysql,opcache,readline,soap,sqlite3,xml,xmlrpc,xsl,zip} \
php7.3 php7.3-{cgi,cli,common,curl,dev,enchant,gd,imap,intl,json,mbstring,mysql,opcache,readline,soap,sqlite3,xml,xmlrpc,xsl,zip} \
php7.4 php7.4-{cgi,cli,common,curl,dev,enchant,gd,imap,intl,json,mbstring,mysql,opcache,readline,soap,sqlite3,xml,xmlrpc,xsl,zip} \
php-imagick php-gd php-cli php-mbstring php-xdebug php-pecl-http php-uploadprogress php-memcache php-memcached memcached imagemagick curl git unzip

Switch PHP Cli version

sudo update-alternatives --set php /usr/bin/phpx.y

Pages: 1 2 3

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Blog at WordPress.com.

Up ↑

%d bloggers like this: