​​​​​​​Centos 설치 후 WordPress설치

1. 기초 프로그램 설치 

 
#cd /opt
#yum install wget unzip
#wget http://wordpress.org/latest.zip
#yum install php-gd
 
2. MariaDB 설정
 
설치가 안되어 있으면 설치를 먼저 진행한다.
더보기
 
설치 후 데이터 베이스를 생성한다.
 
# mysql -u root -p
 
mysql> CREATE DATABASE wordpress;
mysql> GRANT ALL PRIVILEGES on wordpress.* to ‘wpuser’@’localhost’ identified by ‘your_password’;
mysql> FLUSH PRIVILEGES;
mysql> exit
# service mariadb restart
 
3. HTTPD, PHP 설치 
 
# sudo yum install httpd
# sudo systemctl start httpd.service
# sudo systemctl enable httpd.service
# sudo yum install php php-mysql
# sudo systemctl restart httpd.service
# sudo yum install php-fpm
# sudo vi /var/www/html/info.php
 
<?php phpinfo(); ?>
 
# sudo firewall-cmd –permanent –zone=public –add-service=http
# sudo firewall-cmd –permanent –zone=public –add-service=https
# sudo firewall-cmd –reload
 
설정이 다 되었으면, 브라우저를 열고 확인해 봅니다.
 
http://ip/info.php
 
 
4. 기타 기초 파일 설치 
 
#unzip -q latest.zip -d /var/www/html
#chown -R apache:apache /var/www/html/wordpress/
#chown -R 755 /var/www/html/wordpress/
#mkdir -p /var/www/html/wordpress/wp-content/uploads
#chown -R :apache /var/www/html/wordpress/wp-content/uploads
#cd /var/www/html/wordpress/
#mv wp-config-sample.php wp-config.php
#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’, ‘wordpress’);
 
/** MySQL database username */
define(‘DB_USER’, ‘wpuser’);
 
/** MySQL database password */
define(‘DB_PASSWORD’, ‘your_password’);
 
/** MySQL hostname */
define(‘DB_HOST’, ‘localhost’);
 
4. 대망의 설치 
 
http://ip/wordpress/wp-admin/install.php

Leave a Reply

Your email address will not be published. Required fields are marked *