iT邦幫忙

第 12 屆 iThome 鐵人賽

DAY 17
0
Modern Web

用30days 了解web系列 第 17

(Day 17) Install Lamp Stack Inside Ubuntu Linux

  • 分享至 

  • xImage
  •  

https://ithelp.ithome.com.tw/upload/images/20200930/20129609mhFecU8aUB.png
A LAMP Stack is a set of open-source software that can be used to create websites and web applications. LAMP is an acronym: these stacks typically consist of the Linux operating system, the Apache HTTP Server, the MySQL relational database management system, and the PHP programming language.
To install LAMP on your computer follow these steps.
Step 1: Update your system
sudo apt-get update

Step 2: Install Apache
sudo apt install mysql-server

Step 3: Installing MYSQL
sudo apt install mysql-server
now run this:
sudo mysql
Next, check which authentication method each of your MySQL user accounts use with the following command:
mysql > SELECT user,authentication_string,plugin,host FROM mysql.user;
output will be like this:
+------------------+-------------------------------------------+-----------------------+-----------+
| user | authentication_string | plugin | host |
+------------------+-------------------------------------------+-----------------------+-----------+
| root | | auth_socket | localhost |
| mysql.session | *THISISNOTAVALIDPASSWORDTHATCANBEUSEDHERE | mysql_native_password | localhost |
| mysql.sys | *THISISNOTAVALIDPASSWORDTHATCANBEUSEDHERE | mysql_native_password | localhost |
| debian-sys-maint | *CC744277A401A7D25BE1CA89AFF17BF607F876FF | mysql_native_password | localhost |
+------------------+-------------------------------------------+-----------------------+-----------+
4 rows in set (0.00 sec)

run this
mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
mysql> FLUSH PRIVILEGES;

Step 4: Install PHP
sudo apt install php libapache2-mod-php php-mysql

Step 5: Install Phpmyadmin
sudo apt-get install phpmyadmin
if you have done this far your lamp should be good to go….


上一篇
(day 16) Backend Engineer Roadmap
下一篇
(Day 18) deploy your Laravel project with Apache on Linux
系列文
用30days 了解web30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言