サーバ | さくらVPS |
OS | CentOS 6.6 |
Apach | 2.2.15 |
Apache ユーザー | apache |
Apache グループ | apache |
ドメイン | hoge.∗∗∗∗∗.com(サブドメイン) |
インストール先 | /home/hoge/public_html/ |
DokuWiki | 2015-08-10a |
※ サブドメインのDNS設定はここでは説明しませんので各自で行ってください。
>useradd hoge ← ユーザー追加 >passwd hoge ← パスワードセット ユーザー hoge のパスワードを変更。 新しいパスワード: 新しいパスワードを再入力してください: passwd: 全ての認証トークンが正しく更新できました。
gpasswd -a apache hoge
Adding user apache to group hoge
>chmod 710 /home/hoge >ls -l /home 合計 3 drwx--x--- 3 hoge hoge 4096 ∗∗月 ∗∗ ∗∗:∗∗ ∗∗∗∗ hoge
>gpasswd -a hoge apache >chown hoge:apache /home/hoge >ls -l /home 合計 3 drwx--x--- 3 hoge apache 4096 ∗∗月 ∗∗ ∗∗:∗∗ ∗∗∗∗ hoge
<VirtualHost *:80> SuexecUserGroup hoge hoge ServerName hoge.*****.com ServerAlias www.hoge.*****.com ServerAdmin admin@hoge.******.com DocumentRoot /home/hoge/public_html <Directory /home/hoge/public_html/> AllowOverride all Options FollowSymLinks Order allow,deny Allow from all </Directory> CustomLog /var/log/httpd/hoge/hoge-access_log combined ErrorLog /var/log/httpd/hoge/hoge-error_log </VirtualHost>
>mkdir /var/log/httpd/hoge
>cd /etc/init.d >./httpd restart httpd を停止中: [ OK ] httpd を起動中: [ OK ]
>mkdir /home/hoge/public_html >ls -l /home/hoge 合計 2 drwxr-xr-- 2 root root 4096 ∗∗月 ∗∗ ∗∗:∗∗ ∗∗∗∗ public_html
>chmod 2750 /home/hoge/public_html >ls -l /home/hoge 合計 2 drwxr-s--- 2 hoge hoge 4096 ∗∗月 ∗∗ ∗∗:∗∗ ∗∗∗∗ public_html
>cd /home/hoge >wget http://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz --xxxx-xx-xx xx:xx:xx-- http://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz download.dokuwiki.org をDNSに問いあわせています... 2a01:4f8:140:13e4::b00b, 46.4.55.201 download.dokuwiki.org|2a01:4f8:140:13e4::b00b|:80 に接続しています... 接続しました。 HTTP による接続要求を送信しました、応答を待っています... 200 OK 長さ: 3406922 (3.2M) [application/octet-stream] `dokuwiki-stable.tgz' に保存中 100%[============================================>] 3,406,922 1010K/s 時間 3.3s xxxx-xx-xx xx:xx:xx (1010 KB/s) - `dokuwiki-stable.tgz' へ保存完了 [3406922/3406922] >ls dokuwiki-stable.tgz public_html
>tar -zxvf dokuwiki-stable.tgz dokuwiki-2015-08-10a/ dokuwiki-2015-08-10a/index.php dokuwiki-2015-08-10a/inc/ : : dokuwiki-2015-08-10a/data/index/ dokuwiki-2015-08-10a/data/index/_dummy >ls dokuwiki-2015-08-10a dokuwiki-stable.tgz publuc_html
>mv dokuwiki-2015-08-10a/{.??*,*} public_html/
> chmod -R o-rwx /home/hoge/public_html
>cd /home/hoge/public_html >chmod g+w ./conf >chmod g+w ./data >chmod g+w ./data/attic >chmod g+w ./data/cache >chmod g+w ./data/index >chmod g+w ./data/locks >chmod g+w ./data/media >chmod g+w ./data/media_attic >chmod g+w ./data/media_meta >chmod g+w ./data/meta >chmod g+w ./data/pages >chmod g+w ./data/tmp >chmod g+w ./lib >chmod g+w ./lib/plugins >chmod g+w ./lib/plugins/acl >chmod g+w ./lib/plugins/authad >chmod g+w ./lib/plugins/authldap >chmod g+w ./lib/plugins/authmysql >chmod g+w ./lib/plugins/authpgsql >chmod g+w ./lib/plugins/authplain >chmod g+w ./lib/plugins/config >chmod g+w ./lib/plugins/extension >chmod g+w ./lib/plugins/info >chmod g+w ./lib/plugins/popularity >chmod g+w ./lib/plugins/revert >chmod g+w ./lib/plugins/safefnrecode >chmod g+w ./lib/plugins/styling >chmod g+w ./lib/plugins/usermanager >chmod g+w ./lib/tpl >chmod g+w ./lib/tpl/dokuwiki
http://hoge.*****.com/install.php
>cd /home/hoge/public_html >rm ./install.php