ablog

不器用で落着きのない技術者のメモ

FreeStyleWiki のインストール

Apache をインストールする

  • インストールする。
$ sudo yum -y install httpd
$ sudo systemctl enable httpd.service
  • 自動起動が有効化されていることを確認する。
$ sudo systemctl is-enabled httpd.service
enabled
  • 起動する。
$ sudo systemctl start httpd.service
  • 起動していることを確認する。
$ sudo systemctl status httpd.service
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2022-10-10 12:59:56 UTC; 3s ago
     Docs: man:httpd.service(8)
 Main PID: 3581 (httpd)
   Status: "Processing requests..."
   CGroup: /system.slice/httpd.service
           ├─3581 /usr/sbin/httpd -DFOREGROUND
           ├─3582 /usr/sbin/httpd -DFOREGROUND
           ├─3583 /usr/sbin/httpd -DFOREGROUND
           ├─3584 /usr/sbin/httpd -DFOREGROUND
           ├─3585 /usr/sbin/httpd -DFOREGROUND
           └─3586 /usr/sbin/httpd -DFOREGROUND

Oct 10 12:59:56 ip-10-1-1-14.ap-northeast-1.compute.internal systemd[1]: Starting The Apache HTTP Server...
Oct 10 12:59:56 ip-10-1-1-14.ap-northeast-1.compute.internal systemd[1]: Started The Apache HTTP Server.

FreeStyle Wiki をインストールする

$ curl -L -O https://ja.osdn.net/projects/fswiki/downloads/69263/wiki3_6_5.zip
  • 解凍する。
$ unzip wiki3_6_5.zip
  • setup.sh を実行する。
$ cd wiki3_6_5
$ ./setup.sh
  • コピーする
$ sudo cp -pr wiki3_6_5 /var/www/cgi-bin/fswiki
  • owner を apache に変更する。
$ cd /var/www/cgi-bin
$ sudo chown -R apache:apache fswiki
  • 静的コンテンツを /var/www/html に移動する。
$ sudo mkdir -p /var/www/html/fswiki
$ sudo mv theme ../../html/fswiki
$ sudo chown -R apache:apache fswiki
  • setup.dat を編集してテーマへのパスを変更する。
$ vi setup.dat
theme_dir = ../../html/fswiki/theme
theme_uri = ../../fswiki/theme
  • CGI.pm をインストールする。
 sudo yum -y install perl-CGI
  • http://.../cgi-bin/fswiki/wiki.cgi にアクセスしてログインして admin と guest のパスワードを変更する。
    • admin の初期パスワードは admin。