よろしくお願いします。
###やりたいこと
HTTPDを起動させ、サイトが表示できること。
環境 CentOS Linux release 7.4.1708 (Core) Apache/2.4.6です。
apacheが起動しなくなった原因
https://github.com/farend/redmine-centos-ansible
上記サイトを参考にredmineをインストールしておりました。
redmineを動かすための最低条件はクリアしております。
ruby 2.6.0preview1,Rails 5.1.5,sqlite3 3.7.17
自動インストールを実行した結果、ズラズラとok: [localhost]などが流れ最後にhttpdの再起動でエラーになり、起動不可になってしまいました。
$ ansible-playbook -i hosts site.yml ・ (略) ・ TASK [apache : redmine.confの作成] ************************************************************************************** ok: [localhost] TASK [apache : httpdの再起動] ******************************************************************************************** fatal: [localhost]: FAILED! => {"changed": false, "msg": "Unable to start service httpd: Job for httpd.service failed because the control process exited with error code. See \"systemctl status httpd.service\" and \"journalctl -xe\" for details.\n"} to retry, use: --limit @/root/redmine-centos-ansible/site.retry PLAY RECAP *********************************************************************************************************** localhost : ok=32 changed=6 unreachable=0 failed=1
発生している問題・エラーメッセージ
エラーメッセージ
# 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 水 2018-03-28 09:33:35 JST; 9s ago Docs: man:httpd(8) man:apachectl(8) Process: 25888 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE) Process: 25886 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE) Main PID: 25886 (code=exited, status=1/FAILURE) 3月 28 09:33:35 airatochikaihatu.com systemd[1]: Starting The Apache HTTP Server... 3月 28 09:33:35 airatochikaihatu.com systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE 3月 28 09:33:35 airatochikaihatu.com kill[25888]: kill: cannot find process "" 3月 28 09:33:35 airatochikaihatu.com systemd[1]: httpd.service: control process exited, code=exited status=1 3月 28 09:33:35 airatochikaihatu.com systemd[1]: Failed to start The Apache HTTP Server. 3月 28 09:33:35 airatochikaihatu.com systemd[1]: Unit httpd.service entered failed state. 3月 28 09:33:35 airatochikaihatu.com systemd[1]: httpd.service failed.
# cat /var/log/httpd/error_log [ N 2018-03-28 09:15:20.0848 22901/Tr Ser/Server.h:903 ]: [ServerThr.11] Freed 0 spare client objects [ N 2018-03-28 09:15:20.0851 22901/To Ser/Server.h:559 ]: [ServerThr.9] Shutdown finished [ N 2018-03-28 09:15:20.0851 22901/Tr Ser/Server.h:559 ]: [ServerThr.11] Shutdown finished [ N 2018-03-28 09:15:20.2739 22901/T1 age/Cor/CoreMain.cpp:1227 ]: Passenger core shutdown finished [Wed Mar 28 09:15:20.389696 2018] [suexec:notice] [pid 23003] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Wed Mar 28 09:15:20.400472 2018] [ssl:emerg] [pid 23003] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
# cat /etc/httpd/logs/ssl_error_log [Wed Mar 28 09:33:35.952387 2018] [ssl:emerg] [pid 25886] AH01898: Unable to configure permitted SSL ciphers [Wed Mar 28 09:33:35.952420 2018] [ssl:emerg] [pid 25886] SSL Library Error: error:1410D0B9:SSL routines:SSL_CTX_set_cipher_list:no cipher match
# httpd -t Syntax OK
redmineより、mod_sslが原因だということはわかるのですがこれらエラーのワードで検索しても解決できずご相談に上がりました。
###試したこと
(redmine関係)
・Apache上でRedmineなどのRailsアプリケーションを実行するために使われるPhusion Passengerの再インストール
特にエラーなし。
・/etc/httpd/conf.d/redmine.conf内でのrubyのバージョン一致確認
間違ってないと思います。
・MariaDBを使ってのインストール
https://www.agilegroup.co.jp/technote/redmine-install.html
こちらのサイトがわかり易かったのですが、httpd起動のところで同じエラー。
(SSL関係)
・ssl.confを/etc/httpd/conf.dディレクトリ外へ移動。
するとhttpdは起動できましたが、運営しているサイト(wordpress)を開くと真っ白です。
関係ないかもしれませんが、ソースを表示してみると
<?php /** * Front to the WordPress application. This file doesn't do anything, but loads * wp-blog-header.php which does and tells WordPress to load the theme. * * @package WordPress */ /** * Tells WordPress to load the WordPress theme and output it. * * @var bool */ define('WP_USE_THEMES', true); /** Loads the WordPress Environment and Template */ require( dirname( __FILE__ ) . '/wp-blog-header.php' );
でした。
・元々の設定に戻そうと試しました。
https://centossrv.com/
こちらのサイトを参考にサーバを構築しました。
なので、
Webサーバー間通信内容暗号化(Apache+mod_SSL)
https://centossrv.com/apache-ssl.shtml
をもう一度、実行。
・サーバの再起動。
以上です。
長々となった上、不足情報など不備な点が御座いますとは思いますが
ご教授のほどよろしくお願いします。
回答1件
あなたの回答
tips
プレビュー