How to Install LAMP(Apache, MySQL, PHP) Stack on Deepin

how to install lamp on deepin linux
Image Credit:

This guide will Introduce How to install the LAMP Stack ( Apache Server, MySQL, PHP ) on Deepin Linux.

Note: As these commands are executed with root privileges, so it will ask for a user password to continue operations. After you enter the password, The APT will tell you which packages it will install and how much 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 the following commands to install LAMP Stack.

1. Update All Packages.

Type following command and execute to make sure all repositories are up-to-date.

[sudo apt-get update && sudo apt-get upgrade]

2. Install Apache Server

Type following command in your terminal to 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 have to install some additional packages and PHP modules 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 the PHP version you have installed.

[php -v]

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



Linux,3,Programming,3,Tips & Tricks,6,
DebuggerMe: How to Install LAMP(Apache, MySQL, PHP) Stack on Deepin
How to Install LAMP(Apache, MySQL, PHP) 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.
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy