본문으로 바로가기

WordPress 설치

category 서버 & 시스템/Linux 2017. 10. 10. 04:02
반응형

설치환경

Centos 6




1. 워드프레스 설치

# mkdir /home/wordpress \\ 관리할 디렉터리 생성 (DocumentRoot에 만들어도 상관없음)

# cd /usr/local/src


워드프레스 최신버전은 https://ko.wordpress.org 에서 확인

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

# tar zxvf wordpress-4.8.2-ko_KR.tar.gz

# mv wordpress /home/wordpress

# chmod 755 /home/wordpress \\ 실행권한 주기


# vi /usr/local/apache/conf/httpd.conf

DocumentRoot "/usr/local/apache/htdocs" \\ 원래는 여기참조

# Virtual hosts
Include conf/extra/httpd-vhosts.conf \\ 주석제거



# vi /usr/local/apache/conf/extra/httpd-vhosts.conf \\ 여기서도 사용 가능

 <VirtualHost *:80>

    DocumentRoot "/home/wordpress/\\ 워드프레스 설치위치
    ServerName [IP 또는 도메인입력] 
#    ServerAlias www.dummy-host.example.com \\ 사용안해서 주석제거 설정해놨음
#    ErrorLog "logs/dummy-host.example.com-error_log"
#    CustomLog "logs/dummy-host.example.com-access_log" common
</VirtualHost>



# /etc/init.d/apachectl restart




2. MySQL 설정

# mysql -uroot -p

mysql> use mysql

mysql> create database wordpress;

mysql> grant all privileges on wordpress.* to test1@localhost identified by '[패스워드]';

mysql> flush privileges;

mysql> exit




3. WordPress 설정 (웹에서 IP 입력)


- 워드프레스 설치 전




- 워드프레스 설치 후






5. 설치완료










반응형

'서버 & 시스템 > Linux' 카테고리의 다른 글

Java & Tomcat & Apache 연동  (0) 2017.10.15
iptables 설정  (0) 2017.10.11
phpMyAdmin 설치 및 설정  (0) 2017.10.10
MySQL 데이터베이스 백업 및 복원  (0) 2017.10.05
MySQL root 비밀번호 초기화  (0) 2017.10.05