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

how to install lamp on deepin linux
Image Credit: unsplash.com

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 http://127.0.0.1 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 !.

COMMENTS

Name

Linux,3,Programming,3,Tips & Tricks,6,
ltr
item
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.
https://1.bp.blogspot.com/-H5tEiEf6g2Q/Xnxpb5PxGjI/AAAAAAAAYJM/6PXB2cPpahomgbP0_-H_aB0QVrfN2hyNACLcBGAsYHQ/s640/install-lamp-stack-deepin.jpg
https://1.bp.blogspot.com/-H5tEiEf6g2Q/Xnxpb5PxGjI/AAAAAAAAYJM/6PXB2cPpahomgbP0_-H_aB0QVrfN2hyNACLcBGAsYHQ/s72-c/install-lamp-stack-deepin.jpg
DebuggerMe
https://www.debuggerme.com/2019/01/install-lamp-stack-on-deepin.html
https://www.debuggerme.com/
https://www.debuggerme.com/
https://www.debuggerme.com/2019/01/install-lamp-stack-on-deepin.html
true
3101717173497195494
UTF-8
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