OS

2022.02.14 17:19

wordpress 설치하기

  • 비아웹 오래 전 2022.02.14 17:19 인기
  • 3,770
    0

1. 설치 환경

OS : CentOS Linux release 7.9.2009 (Core)

SELINUX : disabled

apache : 2.4.6

php : 7.2.34

MariaDB : 10.1.48

 

2. 소스 다운로드

[root@viaweb ~]# wget https://wordpress.org/latest.tar.gz

3. 설치 및 설정

[root@viaweb ~]# tar xzf latest.tar.gz
[root@viaweb ~]# mv wordpress /var/www/html/
[root@viaweb wordpress ~]# cp wp-config-sample.php wp-config.php
[root@viaweb wordpress ~]# mkdir -p wp-content/upload
[root@viaweb ~]# chown -R apache:apache /var/www/html/wordpress/

4. DB 설정

위 사진과 같이 DB를 만들어준다.

## DB 설정
MariaDB [(none)]> create database wordpress;
MariaDB [(none)]> show databases; // 확인
MariaDB [(none)]> grant all privileges on wordpress.* to word@localhost identfied by '패스워드';
MariaDB [(none)]> flush privileges;
MariaDB [(none)]> exit

5. 설정파일 수정

[root@viaweb wordpress ~]# 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','디비이름');
 
/** MySQL database username */
define('DB_USER','디비사용자');
 
/** MySQL database password */
define('DB_PASSWORD','패스워드');

위 3곳만 수정해서 저장 합니다.

 

6. 설치하기

http:// 주소 /wordpress로 접속하면 아래와 같은 화면이 나옵니다.

 

페이지 이름, 사용자 이름, 패스워드, 이메일 입력

 

설정 완료 후 http://주소/wordpress 로 재접속 화면

 

감사합니다

서버호스팅 비아웹

  • 공유링크 복사
  • 이전글Nginx / php-fpm 소켓 연동2022.02.14
  • 다음글ioncube loader 설치하기2022.02.14
  • 댓글목록

    등록된 댓글이 없습니다.