<aside> 💡 LAMP (Linux, Apache, Mysql, Php) 서버 구축

</aside>

AMP 설치 (Server)

$ dnf -y install httpd php php-mysqlnd mariadb-server

AMP 테스트 (Server)

$ vi /var/www/html/index.html

# /var/www/html/index.html

[Test Web Page]

Screenshot 2023-08-18 at 15.35.45.png

$ vi /var/www/html/phpinfo.php
# /var/www/html/phpinfo.php

<? php phpinfo(); ?>

Screenshot 2023-08-18 at 15.36.14.png

Web 서버용 데이터베이스 생성 (Server)

MariaDB > create database wpDB;
Query OK, 1 row affected (0.001 sec)

MariaDB > grant all on wpDB.* to wpUser@localhost identified by 'seungwon';
Query OK, 0 rows affected (0.005 sec)

Wordpress 설치 (Server)

캡처.PNG

Wordpress 활용 웹 서버 구축 (Server)

$ vi /var/www/html/wordpress/wp-config.php

2.PNG

Web 서버 구동 확인 (WinClient)