In this article we are going to install the famous Linux Apache PHP and MySQL web services. The article is going to use the tasksel Ubuntu app.
In this current article we are going to use:
- Apache 2.4.41
- PHP 7.4.3 with Zend Engine 3.4.0
- MySQL 8.0.23
- Ubuntu Server 20.04.2 LTS codename Focal , no problems to run in Ubuntu 21.04
Fist we have to install tasksel in the command line:
# Install tasksel sudo apt-get install taskselCode language: PHP (php)
The second thing is to run the app by typing tasksel in the command line:
# Start tasksel taskselCode language: PHP (php)
The third step is to select the text box LAMP Server and with the TAB button on the keyboard select <Ok>
After a the installation has finished you have a brand new LAMP installation on your server. To enter in Apache default page open a web browser and type the IP of the server.
For entering into the MySQL console type:
# Enter MySQL console, the password is your ubuntu server login password mysql -u root -pCode language: PHP (php)
The default web folder for Apache is /var/www/html