1.apache2 설치
$ sudo apt-get install apache2
Do you wnat to continue? [Y/n] y
2. MariaDB 설치
2-1 저장소 추가
$ sudo apt-get install software-properties-common dirmngr apt-transport-https
$ sudo apt-key adv --fetch-keys 'https://mariadb.org/mariadb_release_signing_key.asc'
$ sudo add-apt-repository 'deb [arch=amd64,arm64,ppc64el,s390x] https://ftp.harukasan.org/mariadb/repo/10.7/ubuntu focal main'
(MariaDB 설치 및 다운로드 : https://downloads.mariadb.org/)
2-2 정장소 업데이트 및 MariaDB 설치
$ sudo apt-get update
$ sudo apt-get install mariadb-server
Do you wnat to continue? [Y/n] y
3. php8.1 설치
3-1 저장소 추가 및 업데이트
$ sudo apt install software-properties-common
$ sudo add-apt-repository ppa:ondrej/php -y
$ sudo apt-get update
$ sudo apt-get upgrade -y
3-2 php8.1 및 apache 모듈 설치
$ sudo apt install php8.1 libapache2-mod-php8.1
Do you wnat to continue? [Y/n] y
4. info.php 파일 생성 및 서버확인
$ sudo sh -c 'echo "<?php phpinfo(); ?>" > /var/www/html/info.php'
$ service apache2 start
localhost/info.php (아이피주소/info.php) 로 접소 확인
www.woobi.net
welcome