Last active
December 20, 2015 14:48
-
-
Save kik0220/6149024 to your computer and use it in GitHub Desktop.
最小構成でインストールした直後ぐらいの状態のCentOS6.4にTiny Tiny RSSをインストールする手順
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo su | |
yum install -y php php-mbstring php-mysql php-xml php-xmlrpc httpd mysql mysql-server | |
chkconfig httpd on | |
chkconfig mysqld on | |
service mysqld start | |
mysql_secure_installation #初期設定ウィザード | |
mysql -u root -p | |
#ここからmysqlコマンドの確認(やらなくても良い) | |
grant all privileges on test.* to centos@localhost identified by 'centospass'; | |
# ↑ testデータベースへの全てのアクセス権限を持った、新規ユーザcentosを登録 | |
select user from mysql.user where user='centos'; | |
# ↑ centosユーザ登録確認 | |
delete from mysql.user where user='centos' and host='localhost'; | |
# ↑ centosユーザ削除 | |
#ここまで。 | |
create database ttrss; | |
grant all on ttrss.* to ttrss@localhost identified by 'password'; | |
flush privileges; | |
exit | |
wget https://github.com/gothfox/Tiny-Tiny-RSS/archive/1.9.tar.gz | |
mv 1.9 ttrss.tar.gz | |
tar xzvf ./ttrss.tar.gz | |
cd Tiny-Tiny-RSS-1.9 | |
mkdir /var/www/html/ttrss | |
cp -Rp ./* /var/www/html/ttrss | |
chown apache.apache -R html | |
service httpd start | |
# ブラウザで http://localhost/ttrss/ を開く。初期設定ページが表示されればOK。されなければどこか間違えているはずなので、上を見直す。 | |
# 上から「MySQL」「ttrss」「password」「ttrss」「」「3306」と入力する。「Host name」は空でかまわない。 | |
# で、「test」「initialize」に成功したら「Save」。 | |
# http://localhost/ttrss/ を開いてユーザー認証画面が出たらOK。 | |
# 最初は「 admin/password 」で入る。 | |
# 管理用のユーザーなので自分用のアカウントは別で作るのも良し。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment