본문 바로가기
강좌/HW운영관리

그누보드/워드프레스 설치

by 막대바람 2021. 6. 28.
반응형

그누보드 설치하기

1. 테스트 서버 준비 사항

   -.  아파치 설치

   -.  php 설치

       sudo apt install php php-gd php-mysql

   -. mysql 설치

   -. 포트 포워딩 80 준비

2. 파일을 PC에 다운로드 하자.

gnuboard5.4.5.5.tar.gz
8.15MB

3. Filezila를 사용하여 테스트 서버의 "다운로드" 디렉토리에 업로드 하자.

4. /var/www/html/gb 폴더를 만들자.

5. 파일을 /var/www/html/gb로 복사하고 파일의 압축을 풀자.

6. /var/www/html/gb/data 디렉토리를 만들자.

7. chmod 707 /var/www/html/gb/data 

8. 데이터 베이스 작업

 create database gnub;

 create user gnuser@localhost;

grant all privileges on gnub.* to gnuser@localhost identified by '123456';

9. http://127.0.0.1/gb/ 접속

   

워드프레스 설치하기

1.  database 설정

    create database wp_db;

    create user wp_user@localhost identified by '1234';

    grant all on wp_db.* to wp_user@localhost;

2. 파일 다운로드

wget https://ko.wordpress.org/wordpress-5.2.4-ko_KR.tar.gz

3. 압축풀기 및 소스 복사하기

sudo cp -r wordpress /var/www/html/wordpress

cd /var/www/html/wordpress

4. 워드프레스 환경설정

sudo cp wp-config-sample.php wp-config.php

sudo vi wp-config.php

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define( 'DB_NAME', 'wp_db' );

/** MySQL database username */
define( 'DB_USER', 'wp_user' );

/** MySQL database password */
define( 'DB_PASSWORD', '1234' );

/** MySQL hostname */
define( 'DB_HOST', 'localhost' );

5. 완료 확인하기

http://127.0.0.1:60080/wordpress/

728x90
반응형

댓글