$ sudo apt install apache2 libapache2-mod-php5 php5 php5-curl php5-intl php5-mcrypt php5-mysql php5-sqlite php5-xmlrpc mysql-server mysql-client$ cd /var/www/html$ mkdir joomla$ cd /var/www/html/joomla$ sudo wget https://downloads.joomla.org/cms/joomla3/3-6-5/joomla_3-6-5-stable-full_package-zip?format=zip$ unzip joomla_3-6-5-stable-full_package-zip?format=zip$ rm -r joomla_3-6-5-stable-full_package-zip?format=zip$ chown www-data: -R joomla/Enter the console of mysql
$ mysql -u root -pCreate user:
$ CREATE USER 'joomlauser'@'localhost' IDENTIFIED BY 'userpassword';$ CREATE DATABASE joomladb;On the basis of newly created data, we assign the user:
$ GRANT ALL PRIVILEGES ON joomladb.* TO 'joomlauser'@'localhost';Refresh the database:
$ FLUSH PRIVILEGES;And exit
$ exit;Now go to the next path
https://localhost/joomlain your browser and finish the installation