LoginSignup
1
0

More than 5 years have passed since last update.

fedoraのhttpd24でサーバが起動できない

Posted at

問題

サーバを起動、または再起動しようとすると、以下のようなエラーが出る。


$service httpd24-httpd restart

rm: cannot remove `/opt/rh/httpd24/root/var/run/httpd/httpd.pid': Permission denied

rm: cannot remove `/opt/rh/httpd24/root/var/lock/subsys/httpd': Permission denied
rm: cannot remove `/opt/rh/httpd24/root/var/run/httpd/httpd.pid': Permission denied
Starting httpd: AH00526: Syntax error on line 31 of /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf:
Invalid command '/etc/httpd', perhaps misspelled or defined by a module not included in the server configuration
                                                           [FAILED]

※環境はcentos65で、httpd24は以下のリポジトリのものを使用。
https://repos.fedorapeople.org/repos/jkaluza/httpd24/epel-httpd24.repo

解決方法

sudoのつけ忘れ。エラーメッセージから分かりにくい。

$ sudo service httpd24-httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
1
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
1
0