Install LAMP Stack on Deepin

This guide will Introduce How to install LAMP Stack( Apache Server 2.4 , MySQL Server 5.7, php 7.2 ) on Deepin linux.

Note : As these commands are executed with sudo(root privileges)  it will ask for user password to continue operations. 
After you enter password apt will tell you which packages it plans to install and how much extra disk space they'll take up. Press Y and hit ENTER to continue, and the installation will proceed.

Open deepin terminal (ctrl+alt+t) and execute following commands to install LAMP Stack.

1. Update All Packages.
Make sure all repositories are is up-to-date.
$ sudo apt-get update && sudo apt-get upgrade

2. Install Apache Server
$ sudo apt-get install apache2

restart apache server
$ sudo service apache2 restart

visit http://localhost or on your favorite web browser to check whether if Apache server is working fine.

3. Install MySQL Server(If not installed)
Follow this complete guide, How to Install MySQL Server 5.7 on Deepin Linux to install MySQL Server if it not installed.

4. Install PHP Modules
Install php 7.2 and commonly used php modules.(You may need some additional packages and PHP modules in order for PHP to work with your applications.)
$ sudo apt-get install php7.2 php7.2-cli php7.2-common php7.2-opcache php7.2-curl php7.2-mbstring php7.2-mysql php7.2-zip php7.2-xml
check php version you have installed.
$ php -v

So you have installed LAMP Stack Successfully. Happy Coding !.

Post a Comment