우분투 16.04 버전 기준으로 작성하였습니다.
1. MySQL DB와 USER 생성.
$ mysql -u root -p
CREATE DATABASE wordpress;
CREATE USER wordpressuser@localhost;SET PASSWORD FOR wordpressuser@localhost= PASSWORD("password");
GRANT ALL PRIVILEGES ON wordpress.* TO wordpressuser@localhost IDENTIFIED BY 'password';FLUSH PRIVILEGES;
exit
2. 워드프레스 다운로드.
$ wget http://wordpress.org/latest.tar.gz
$ apt-get install php5-gd libssh2-php
$ tar xzvf latest.tar.gz
$ apt-get update$ apt-get install php5-gd libssh2-php
$ cd ~/wordpress
$ cp wp-config-sample.php wp-config.php
$ vim wp-config.php
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', 'wordpressuser');
/** MySQL database password */
define('DB_PASSWORD', 'password');
/** The name of the database for WordPress */
define('DB_NAME', 'wordpress');
/** MySQL database username */
define('DB_USER', 'wordpressuser');
/** MySQL database password */
define('DB_PASSWORD', 'password');
3. 파일 옮기기
$ cp -r wordpress/ /var/www/html/
$ usermod -a -G www-data www-data
$ cd /var/www/
$ chown -R www-data:www-data html/$ usermod -a -G www-data www-data
4. 웹 인터페이스로 설치하기
http://ip 주소 or 도메인 주소
출처 – https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-on-ubuntu-14-04
https://www.vultr.com/docs/how-to-install-wordpress-on-a-lemp-configuration
'Operating System Tip > Ubuntu' 카테고리의 다른 글
| tar 명령어 (0) | 2016.06.17 |
|---|---|
| 워드프레스 계정 권한 (0) | 2016.06.17 |
| 우분투에서 예약 작업 하기! (0) | 2016.06.17 |
| > /dev/null 2>&1 이 무슨 뜻일까? (0) | 2016.06.17 |
| ibus 한글 설정 하기! (0) | 2016.03.17 |