$ 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
$ cd wiki3_6_5
$ ./setup.sh
$ sudo cp -pr wiki3_6_5 /var/www/cgi-bin/fswiki
$ 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
sudo yum -y install perl-CGI