Ubuntu

Install APM On Ubuntu

1. 개요

Ubuntu에 APM을 설치한다.
설치 순서 : Apache, MySQL, PHP 8.2

 

2. Install APM

1) Install Apache httpd

# Install apache web server
apt-get install -y apache2

# Set ownership
chown -R www-data.www-data /var/www/html

# config file
/etc/apache2/apache2.conf

# Data Directory
/var/www

# App Directory
/usr/lib/apache2

 

2) MySQL 설치

# Install mysql
apt-get install -y mysql-server mysql-client

# Set mysql root's password
mysql -u root -p
mysql> UPDATE user SET password=password(‘비밀번호‘) WHERE user=root;
mysql> flush privileges;

# check mysql version
mysql -V

# config file
/etc/mysql/my.cnf

 

3) PHP 8.2 설치

# Set repository
apt install software-properties-common
add-apt-repository ppa:ondrej/php
apt-get update

# Install php
apt install php8.2*

# config file
/etc/php/[version]/apache2/php.ini

# restart apache2
service apache2 restart

 

Back To Top