0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

RHEL 8.5にOSS版httpd 2.4.52をインストールする(2)

Last updated at Posted at 2022-03-13

前回

RHEL 8.5にOSS版httpd 2.4.52をインストールする

systemdで起動できるように設定ファイルを作成

cd /usr/lib/systemd/system
sudo touch httpd.service
sudo vi httpd.service

以下を追加
(redhatのものを参考にしているが要検証)

[Unit]
Description=The Apache HTTP Server
#Wants=httpd-init.service
# After=network.target remote-fs.target nss-lookup.target httpd-init.service
After=network.target remote-fs.target nss-lookup.target
Documentation=man:httpd.service(8)

[Service]
Type=simple
Environment=LANG=C

ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND
ExecReload=/usr/sbin/httpd $OPTIONS -k graceful
# Send SIGWINCH for graceful stop
KillSignal=SIGWINCH
KillMode=mixed
PrivateTmp=true

[Install]
WantedBy=multi-user.target

起動確認

sudo systemctl start httpd
sudo systemctl status httpd

php 7.4.28を利用したいのでremiリポジトリのphpを利用して設定する
RHEL 8.5にOSS版httpd 2.4.52をインストールする(番外編-phpを利用する)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?