「WordPress」の版間の差分
提供: Lisa Wiki
(→WordPressの設置) |
(→データベースの作成) |
||
行16: | 行16: | ||
==WordPressの設定== | ==WordPressの設定== | ||
===データベースの作成=== | ===データベースの作成=== | ||
− | + | データベースを作成 | |
mysql -u root -p | mysql -u root -p | ||
− | + | wordpressと言う名称のデータベースでユーザーID:wordpress パスワード:wordpressで作成 | |
<nowiki>> grant all privileges on wordpress.* to wordpress@localhost identified by ‘wordpress';</nowiki> | <nowiki>> grant all privileges on wordpress.* to wordpress@localhost identified by ‘wordpress';</nowiki> | ||
> create database wordpress; | > create database wordpress; | ||
> exit | > exit | ||
− | |||
===Apacheへの設定=== | ===Apacheへの設定=== | ||
nano /etc/apache2/conf-enabled/wordpress.conf | nano /etc/apache2/conf-enabled/wordpress.conf |
2015年5月27日 (水) 21:46時点における版
WordPressとは
オープンソースのブログソフトウェアである。PHPで開発されており、データベース管理システムとしてMySQLを利用している。単なるブログではなくCMSとしてもしばしば利用されている。
WordPressの設置
- 入手先
- https://ja.wordpress.org/
- ターミナルソフトでログインし
sudo su apt-get install bzip2 mkdir /media/Data/www cd /media/Data/www wget https://ja.wordpress.org/latest-ja.tar.gz tar xvf latest-ja.tar.gz rm latest-ja.tar.gz
WordPressの設定
データベースの作成
データベースを作成
mysql -u root -p
wordpressと言う名称のデータベースでユーザーID:wordpress パスワード:wordpressで作成
> grant all privileges on wordpress.* to wordpress@localhost identified by ‘wordpress'; > create database wordpress; > exit
Apacheへの設定
nano /etc/apache2/conf-enabled/wordpress.conf
# Uncomment this to add an alias. # This does not work properly with virtual hosts.. Alias /wp /mnt/HDD/wordpress <Directory /mnt/HDD/wordpress/> Options +FollowSymLinks AllowOverride All <IfVersion >= 2.3> Require all granted </IfVersion> <IfVersion < 2.3> order allow,deny allow from all </IfVersion> </Directory>