본문 바로가기

Programing/Setup

Raspberry Pi 4 LAMP(Linux + Apache + MySQL + PHP) setup

"Ubuntu 20.04.1 LTS Server 64bit for Raspberry pi 4" image installing.
https://ubuntu.com/download/raspberry-pi

 

Install Ubuntu on a Raspberry Pi 2, 3 or 4 | Ubuntu

Ubuntu is an open-source operating system for cross platform development, there’s no better place to get started than with Ubuntu on a Raspberry Pi.

ubuntu.com

SDcard is written download image with Win32DiskImager (use Windows 10).

 

Win32 Disk Imager

Download Win32 Disk Imager for free. A Windows tool for writing images to USB sticks or SD/CF cards . This program is designed to write a raw disk image to a removable device or backup a removable device to a raw image file. It is very useful for embedded

sourceforge.net

Apache Install

Command insert Terminal.

sudo apt-get update
sudo apt-get install apache2

Installing Version check.

apache2 -v

 

Php Install

Command insert Terminal.

sudo apt-get install php7.4

Installing Version check.

php -v

Mysql install

Command insert Terminal.

sudo apt-get install mysql-server

Installing version check.

sudo mysqladmin version

Secure Installation setting

sudo /usr/bin/mysql_secure_installation

all y, password secure set 0(low)~2(strong), password setting

"홀로라이프는 포스팅을 통해 쿠팡 파트너스 활동의 일환으로, 이에 따른 일정액의 수수료를 제공받습니다."