Notice
Recent Posts
Recent Comments
올해는 머신러닝이다.
Ubuntu에서 php8.3 설치하는 방법 본문
Ubuntu에서 PHP 8 이상을 설치하는 방법을 설명해드리겠습니다.
시스템 업데이트
bash
sudo apt update
sudo apt upgrade -y
PHP 저장소 추가
bash
sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php -y
sudo apt update
PHP 설치
기본 PHP 설치
bash
sudo apt install php8.3 -y
주요 확장 모듈 설치
bash
sudo apt install php8.3-cli php8.3-fpm php8.3-mysql php8.3-xml php8.3-mbstring php8.3-curl php8.3-gd -y
설치 확인
bash
php -v
PHP-FPM 상태 확인
bash
sudo systemctl status php8.3-fpm
PHP 설정 파일 위치
Apache용: /etc/php/8.3/apache2/php.ini
FPM용: /etc/php/8.3/fpm/php.ini
설치가 완료되면 PHP 8.3이 시스템에서 사용 가능하며, 웹 서버와 연동하여 사용할 수 있습니다
'스터디 > Server' 카테고리의 다른 글
Spring Boot + Pm2 배포하기(Deploy) (0) | 2018.08.02 |
---|---|
[Server 세팅] 우분투에 nginx, SSL 세팅 가이드 (0) | 2018.04.09 |