###前提・実現したいこと
Apacheを使用してWebサーバを立てようとしています
###発生している問題・エラーメッセージ
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
# systemctl status httpd.service ● httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Tue 2017-10-17 07:47:16 JST; 1min 12s ago Docs: man:httpd(8) man:apachectl(8) Process: 9043 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE) Process: 9041 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE) Main PID: 9041 (code=exited, status=1/FAILURE) Oct 17 07:47:16 tk2-218-18677.vs.sakura.ne.jp systemd[1]: Starting The Apache HTTP Server... Oct 17 07:47:16 tk2-218-18677.vs.sakura.ne.jp httpd[9041]: (13)Permission denied: AH00091: httpd: could not open error ...log. Oct 17 07:47:16 tk2-218-18677.vs.sakura.ne.jp httpd[9041]: AH00015: Unable to open logs Oct 17 07:47:16 tk2-218-18677.vs.sakura.ne.jp systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE Oct 17 07:47:16 tk2-218-18677.vs.sakura.ne.jp kill[9043]: kill: cannot find process "" Oct 17 07:47:16 tk2-218-18677.vs.sakura.ne.jp systemd[1]: httpd.service: control process exited, code=exited status=1 Oct 17 07:47:16 tk2-218-18677.vs.sakura.ne.jp systemd[1]: Failed to start The Apache HTTP Server. Oct 17 07:47:16 tk2-218-18677.vs.sakura.ne.jp systemd[1]: Unit httpd.service entered failed state. Oct 17 07:47:16 tk2-218-18677.vs.sakura.ne.jp systemd[1]: httpd.service failed. Hint: Some lines were ellipsized, use -l to show in full.
###該当のソースコード
#投稿時の文字数の都合でコメントアウト部分は省略 #プライバシー情報はぼかしています ServerRoot "/etc/httpd" Listen 80 Include conf.modules.d/*.conf User apache Group apache ServerAdmin XXX@xxx.com ServerName XXXXX:xx <Directory /> AllowOverride none Options -Indexes +FollowSymLinks +Multiviews +ExecCGI AddHandler cgi-script .cgi Require all granted </Directory> DocumentRoot "/var/www/bashcms" <Directory "/var/www"> AllowOverride None # Allow open access: Require all granted </Directory> <Directory "/var/www/html"> (コメントアウト省略) Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory> <IfModule dir_module> DirectoryIndex index.html index.cgi index.php </IfModule> <Files ".ht*"> Require all denied </Files> ErrorLog "/var/log/bashcms/error_log" LogLevel warn <IfModule log_config_module> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %>s %b" common <IfModule logio_module> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio </IfModule> </IfModule> <IfModule alias_module> </IfModule> <Directory "/var/www/cgi-bin"> AllowOverride None Options None Require all granted </Directory> <IfModule mime_module> TypesConfig /etc/mime.types AddType application/x-compress .Z AddType application/x-gzip .gz .tgz AddHandler cgi-script .cgi AddType text/html .shtml AddOutputFilter INCLUDES .shtml </IfModule> AddDefaultCharset UTF-8 <IfModule mime_magic_module> MIMEMagicFile conf/magic </IfModule> EnableSendfile on IncludeOptional conf.d/*.conf
###試したこと
ポート使用状況の確認(LISTEN)
ログの指定ディレクトリの存在とパーミッション確認
###補足情報(言語/FW/ツール等のバージョンなど)
Server version: Apache/2.4.6 (CentOS)
local:Mac OS Sierra10.12.6

バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/10/19 22:44
2017/10/19 23:29 編集