• 締切済み

httpdが起動しません

SSLをインストールしたのですが、以下のエラーにより、httpdの起動ができなくなってしまいました。 回復方法が分かりましたらよろしくお願いします。 LDAP: Built with OpenLDAP LDAP SDK LDAP: SSL support unavailable suEXEC mechanism enabled(wrapper: /usr/sbin/suexec)

みんなの回答

  • entree
  • ベストアンサー率55% (405/735)
回答No.1

これだけでは回答しかねます。 普通にSSLだけを組み込んだだけであれば、LDAP機能はいっさい使えないはずです。 もうちょっと環境やインストールオプション等の情報を提供していただかないと・・・

関連するQ&A

  • Subversion機能について

    Subversionのロック機能に関して質問なのですが、 下記の環境で、 TortoiseSVNから、ロックの取得をすると エラー: Lock request failed: 401 Authorization Required と、表示されロックすることができません。 apacheログには、 No such file or directory: Anonymous lock creation is not allowed. [401, #405] と出力されており、原因がわかりません。 どなたか御存じの方いらっしゃいますでしょうか? ーーーーーーーーーーーーーーーーーーーーーーー サーバー: OS fedora4 Subversion 1.2.3 mod_dav_svn 1.2.3 apache2.0.54 クライアント: TortoiseSVN 1.4.3 設定 ーーーーーーーーーーーーーーーーーーーー /etc/httpd/conf.d/subversion.conf LoadModule dav_svn_module modules/mod_dav_svn.so LoadModule authz_svn_module modules/mod_authz_svn.so <Location /svn> DAV svn SVNPath /var/www/123 </Location> apache起動時エラー [Mon May 07 19:21:50 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Mon May 07 19:21:50 2007] [warn] module dav_svn_module is already loaded, skipping [Mon May 07 19:21:50 2007] [warn] module authz_svn_module is already loaded, skipping [Mon May 07 19:21:50 2007] [notice] Digest: generating secret for digest authentication ... [Mon May 07 19:21:50 2007] [notice] Digest: done [Mon May 07 19:21:50 2007] [notice] LDAP: Built with OpenLDAP LDAP SDK [Mon May 07 19:21:50 2007] [notice] LDAP: SSL support unavailable [Mon May 07 19:21:50 2007] [notice] Apache/2.0.54 (Fedora) configured -- resuming normal operations dav_svn_moduleと、authz_svn_moduleは存在していることを確認ずみ。

  • Railsで作ったWebアプリに頻繁に繋がらない

    RailsでWebアプリを作ったのですが、さくらVPSにて本番環境で公開後、 ブラウザからURLを入力しても繋がらない状態が頻発しています。 しばらくすると繋がるようになるのですが、また時間を置くと繋がらなくなり、 お名前.comの404 Page Not Foundのページが表示されてしまいます。 環境は以下のとおりです。 Rails3、MySQL、Apache、CentOS(さくらVPS)、DNS: お名前.com Apacheのエラーログ(/var/log/httpd/error_log-20120930)を見たところ、 以下のnoticeが繰り返し記録されており、これが怪しいと思うのですが、 ググってもピンと来る解決策が見つからず、詰んでいます。。 [Sun Sep 30 01:48:47 2012] [notice] caught SIGTERM, shutting down (中略) [Sun Sep 30 03:39:02 2012] [notice] SIGHUP received. Attempting to restart シャットダウン --> 再起動を繰り返しているように見えるのですが、 どうすれば良いのでしょうか?? また、他に何か思い当たる原因等ありましたら教えてください。 ちなみに、Railsのlog/production.rbにはGET,POST等の記録が残っているだけで 特に怪しい所は見つかりませんでした。 また、MySQLのログにも特に怪しいところは見つかりませんでした。 以下、Apacheのエラーログの詳細を貼ります。 /var/log/httpd/error_log-20120930: [Sun Sep 30 01:48:47 2012] [notice] caught SIGTERM, shutting down [Sun Sep 30 02:30:01 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Sun Sep 30 02:30:01 2012] [notice] Digest: generating secret for digest authentication ... [Sun Sep 30 02:30:01 2012] [notice] Digest: done [Sun Sep 30 02:30:01 2012] [notice] Apache/2.2.15 (Unix) DAV/2 Phusion_Passenger/3.0.17 configured -- resuming normal operations [Sun Sep 30 02:41:44 2012] [notice] caught SIGTERM, shutting down [Sun Sep 30 02:41:48 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Sun Sep 30 02:41:48 2012] [notice] Digest: generating secret for digest authentication ... [Sun Sep 30 02:41:48 2012] [notice] Digest: done [Sun Sep 30 02:41:48 2012] [notice] Apache/2.2.15 (Unix) DAV/2 Phusion_Passenger/3.0.17 configured -- resuming normal operations [Sun Sep 30 02:48:42 2012] [notice] caught SIGTERM, shutting down [Sun Sep 30 02:48:49 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Sun Sep 30 02:48:49 2012] [notice] Digest: generating secret for digest authentication ... [Sun Sep 30 02:48:49 2012] [notice] Digest: done [Sun Sep 30 02:48:49 2012] [notice] Apache/2.2.15 (Unix) DAV/2 Phusion_Passenger/3.0.17 configured -- resuming normal operations [Sun Sep 30 03:11:45 2012] [notice] caught SIGTERM, shutting down [Sun Sep 30 03:11:49 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Sun Sep 30 03:11:49 2012] [notice] Digest: generating secret for digest authentication ... [Sun Sep 30 03:11:49 2012] [notice] Digest: done [Sun Sep 30 03:11:49 2012] [notice] Apache/2.2.15 (Unix) DAV/2 Phusion_Passenger/3.0.17 configured -- resuming normal operations [Sun Sep 30 03:39:02 2012] [notice] SIGHUP received. Attempting to restart

    • ベストアンサー
    • Ruby
  • Linux 5でApache関連のアップデートを行わない方法

    Linux 5でApache関連のアップデートを行わない方法 <環境> WADAX専用サーバ エントリープラン GUIソフト:PLESK8.3使用 Red Hat Enterprise Linux 5 PHP 5.1 MySQL 5.0 ローカルコンピュータ:WindowsXP Red Hat Enterprise Linux 5でApache関連のアップデートを行いたくない場合は、ファイル名がhttpd* 及びmod_ssl*のアップデートパッケージのみインストールしないようにすれば良いのでしょうか? 具体的なコマンドは以下: #yum --exclude=httpd* mod_ssl* update もしも、Apache関連のアップデートを行いたくない場合、httpd* 及びmod_ssl*以外にも除外しておいたほうがよいファイル名があれば教えてください。 P.S ちなみに、Apache関連のアップデートを行いたくない理由は、Apache関連のアップデートを行うと、PLESKの関連でsuexecの置換コマンドの実行が必要となるからです。 http://kb.parallels.com/en/762 上記のURLでは、PLESK 7.xのみ手動コマンドによるsuexecの置き換えが必要と説明してありますが、実際は、PLESK 8.xでも下記のコマンドの手動実行が必要となります。 ~# cp /usr/local/psa/suexec/psa-suexec /usr/sbin/suexec ~# chown root:apache /usr/sbin/suexec ~# chmod 4510 /usr/sbin/suexec そのため、重大なセキュリティアップデート以外は、Apache関連のアップデートを行いたくないのです。 よろしくお願いします。

  • openssl

    いつも参考にさせていただいております。 今回、DebianEtchでopenssl-0.9.8hとopenldap-2.4.11を利用しSSL化をしてみたのですが、 LDAPを起動しようとしたところで、 「/usr/local/libexec/slapd: symbol lookup error: /usr/local/libexec/slapd: undefined symbol: SSL_CTX_set_info_callback NG」 のようなメッセージが表示されてしまいます。 1.SSLインストール。(./Configure --prefix=/usr/local --openssldir=/usr/local/stow/openssl-0.9.8i/ssl shared linux-generic32) 2.LDAPインストール(./configure --enable-tls --enable-wrappers --enable-crypt --prefix=/usr/local/stow/openldap-2.4.11 --libdir=/usr/local/lib --sysconfdir=/etc/ldap --includedir=/usr/local/include --enable-monitor=no) をして、 3.SSLで鍵の生成後、slapd.confに鍵設定追加後、 LDAPを起動しようとすると出ました。 そこで、LDAPのTLS設定が有効になっていないのかと思い ./configure --enable-tls --enable-wrappers --with-tls --enable-crypt --prefix=/usr/local/stow/openldap-2.4.11 --libdir=/usr/local/lib --sysconfdir=/etc/ldap --includedir=/usr/local/include --enable-monitor=no tlsを有効にし、再インストールを行いLDAPの起動を行ったところ 「/usr/local/libexec/slapd: symbol lookup error: /usr/local/libexec/slapd: undefined symbol: SSL_CTX_set_info_callback NG」 のメッセージは出なくなり正常に起動したのですが、 サーバを再起動したあともう一回、LDAPを起動しようとしますと 同じエラーメッセージが表示されてしまいます。 どなたか、解決方法をご存知の方がいられましたら ご教授のほうお願いできないでしょうか? よろしくお願いします。

  • solaris10にて、SMFからのapache+ssl起動

    solaris10にて、apache2+sslの環境を構築しているのですが、SMF経由でapacheを起動させると、sslが有効になりません。 SMFにて使用する、起動用のスクリプト「/lib/svc/method/http-apache2」内のsvcpropというコマンドで、チェックしているところまでは分かったのですが、ここからが分かりません。 どなたか、ご教授願います。 ★SMFからの起動(apache2のみ起動される) # /usr/sbin/svcadm disable svc:/network/http:apache2 # /usr/sbin/svcadm enable svc:/network/http:apache2 # svcs -a |grep apache2 online 11:30:43 svc:/network/http:apache2 # ps -ef|grep http |grep -v grep root 692 1 19 11:30:43 ? 0:06 /usr/local/apache2/bin/httpd -k start webservd 698 692 0 11:30:51 ? 0:00 /usr/local/apache2/bin/httpd -k start ★apache2+SSL手動起動 ・apache無効化 # /usr/sbin/svcadm disable svc:/network/http:apache2 # /usr/local/apache2/bin/apachectl startssl # ps -ef|grep http webservd 675 670 0 11:25:45 ? 0:00 /usr/local/apache2/bin/httpd -k start -DSSL root 670 1 9 11:25:42 ? 0:03 /usr/local/apache2/bin/httpd -k start -DSSL

  • Apacheアップデートしたのにバージョンが。。

    困っています。 以下の手順でapacheをアップデートしたのですが、 「rpm -qi httpd」ではバージョンが変わりません。 「httpd -V」では最新バージョンになっています。 「httpd」の実行ファイルは置き換えているので、 最新化されていると思うのですが、何が不足しているのか どなたか教えて頂けないでしょうか。 よろしくお願いします。 <サーバ環境>  OS:Redhat Enterprise Linux 5.7 <旧apache情報>  バージョン:2.2.3  ディレクトリ:/etc/httpd  実行ファイル:/usr/sbin <新apache情報>  バージョン:2.2.21  ディレクトリ:/usr/local/apache2  実行ファイル:/usr/local/apache2/bin ※ネットワークの問題により、「yum httpd update」は使用できない。 <アップデート手順> 1.apacheミラーサイトから httpd-2.2.21.tar.gz をダウンロード。 2.configureでインストール準備。  パラメータは、モジュール全て展開、suexec生成を指定。 3.make、make install にてインストール。 4.makeで作成された最新の suexecを /usr/sbin の旧実行ファイルと置き換え。 5.httpd旧実行ファイルの置き換え。   # mv /usr/sbin/httpd /usr/sbin/httpd_old   # ln -s /etc/httpd/bin/httpd /usr/sbin/httpd 6.旧Apache ディレクトリと同名の、シンボリックリンクを作成する。   # ln -s /usr/local/apache2 /etc/httpd 7.httpd.conf 関連の設定変更。   旧apacheの設定を、下記ファイルに反映。   ・httpd.conf   ・extra/httpd-default.conf   ・extra/httpd-languages.conf 8.起動スクリプトの変更   httpd-2.2.21/build/rpm/httpd.init から /etc/rc.d/init.d/httpd を生成し、   旧スクリプトと置き換える。 9.service httpd start で、再起動し、アプリケーションの正常動作を確認。  OS再起動後も自動起動していることを確認。 以上です。

  • Openldapインストールmake testでエラー

    Openldapのインストールについて質問があります。 1度は、正常にOpenldapのインストールは、成功したのですが Openldapを再インストールしようと思い実行したのですが、 make testで、下記のエラーが表示されました。 Initiating LDAP tests for BDB... Running ./scripts/all... >>>>> Executing all LDAP tests for bdb >>>>> Starting test000-rootdse ... running defines.sh Starting slapd on TCP/IP port 9011... Using ldapsearch to retrieve the root DSE... Waiting 5 seconds for slapd to start... Waiting 5 seconds for slapd to start... Waiting 5 seconds for slapd to start... Waiting 5 seconds for slapd to start... Waiting 5 seconds for slapd to start... Waiting 5 seconds for slapd to start... ldap_bind: Can't contact LDAP server (-1) >>>>> Test failed >>>>> ./scripts/test000-rootdse failed (exit 1) make[2]: *** [bdb-yes] Error 1 make[2]: Leaving directory `/var/tmp/src/ldap/openldap-2.2.17/tests' make[1]: *** [test] Error 2 make[1]: Leaving directory `/var/tmp/src/ldap/openldap-2.2.17/tests' make: *** [test] Error 2 ネットで調べたのですが、有力な情報がなかったので、知っている方がいれば教えて頂けたら幸いです。 BerkeleyDB.4.7のパッチは、当てています。 http://www.tail.gr.jp/wiki/?OpenLDAP CPPFLAGS="-I/usr/local/BerkeleyDB.4.7/include -I/usr/loca/ssl/include -I/usr/local/include" export CPPFLAGS LDFLAGS="-L/usr/local/BerkeleyDB.4.7/lib -R/usr/loca/BerkeleyDB.4.7/lib -L/usr/local/ssl/lib -R/usr/local/ssl/lib -L/usr/local/lib -R/usr/local/lib" export LDFLAGS ./configure --enable-crypt make depend make ここまでは、エラー無く通っています。 make test よろしくお願いします。

  • apache make時のエラーで困っています

    お世話になります。 apache をソースからインストールしなければならないのですが、以下のエラーが出ており、解決できません。お力をお借りできますでしょうか。 ■エラー内容------------------------------------------------- In file included from /usr/include/apr-1/apr_ldap.h:120, from /home/***/httpd-2.2.6/include/util_ldap.h:31, from exports.c:38: /usr/include/apr-1/apr_ldap_init.h:112: error: expected declaration specifiers or '...' before 'LDAP' In file included from /usr/include/apr-1/apr_ldap.h:121, from /home/***/httpd-2.2.6/include/util_ldap.h:31, from exports.c:38: /usr/include/apr-1/apr_ldap_option.h:204: error: expected declaration specifiers or '...' before 'LDAP' /usr/include/apr-1/apr_ldap_option.h:226: error: expected declaration specifiers or '...' before 'LDAP' In file included from exports.c:38: /home/***/httpd-2.2.6/include/util_ldap.h:82: error: 'LDAP_DEREF_NEVER' undeclared here (not in a function) /home/***/httpd-2.2.6/include/util_ldap.h:83: error: 'LDAP_DEREF_SEARCHING' undeclared here (not in a function) /home/***/httpd-2.2.6/include/util_ldap.h:84: error: 'LDAP_DEREF_FINDING' undeclared here (not in a function) /home/***/httpd-2.2.6/include/util_ldap.h:85: error: 'LDAP_DEREF_ALWAYS' undeclared here (not in a function) /home/***/httpd-2.2.6/include/util_ldap.h:90: error: expected specifier-qualifier-list before 'LDAP' make[2]: *** [exports.lo] エラー 1 make[2]: ディレクトリ `/home/***/httpd-2.2.6/server' から出ます make[1]: *** [all-recursive] エラー 1 make[1]: ディレクトリ `/home/***/httpd-2.2.6/server' から出ます make: *** [all-recursive] エラー 1 ------------------------------------------------------------------ OS:openSUSE 10.2 apacheのソース:httpd-2.2.6 ディレクトリ /home/***/下にソースを展開&makeしています。 openldapのインストールが必要かと思い、openldap2 2.3.27をインストールしてみましたが、変化がありませんでした。 また、configureオプションが問題かと思い、オプションを何もつけない状態で試しましたが、やはり同じエラーになります。 別環境のopenSUSE 10.0では、同じソースを使って問題なく、make、installができます。 原因として何が考えられますでしょうか。 よろしくお願いいたします。

  • LinuxにPHPをソースからインストールできない・・・

    Linuxを四苦八苦しながら触り始めて、一週間となります。 会社のLinuxにPHPをインストールしようかと思ったのですが、コンパイルエラーからなかなか進めません。 Linux Red Hat Enterprise Linux 4 RPM httpd httpd-2.0.52-9.ent httpd-devel-2.0.52-9.ent httpd-suexec-2.0.52-9.ent system-config-httpd-1.3.1-1 httpd-manual-2.0.52-9.ent RPM版のPHPは既にアンインストール済みです。 mysqlはソースでインストール済みです。 apxsの場所 /usr/sbin/apxs # perl -v This is perl, v5.8.5 built for i386-linux-thread-multi $PATH確認 /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin ソールからインストールしたいPHPは4.4.6です エラー内容 # ./configure --with-apxs2=/usr/sbin/apxs (中略) Configuring SAPI modules checking for AOLserver support... no checking for Apache 1.x module support via DSO through APXS... no checking for Apache 1.x module support... no checking for mod_charset compatibility option... no checking for Apache 2.0 filter-module support via DSO through APXS... no checking for Apache 2.0 handler-module support via DSO through APXS... Sorry, I cannot run apxs. Possible reasons follow: 1. Perl is not installed 2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs 3. Apache was not built using --enable-so (the apxs usage page is displayed) The output of /usr/sbin/apxs follows: Can't exec "/usr/bin/apr-config": No such file or directory at /usr/sbin/apxs line 48. Use of uninitialized value in scalar chomp at /usr/sbin/apxs line 53. -O2 -g -pipe -m64 apxs:Error: /usr/bin/apr-config not found!. configure: error: Aborting apr-config がない(?)と言われているようなのですが、aprを探したところなさそうです。 aprをインストールすればいいのでしょうか? ネットで探してみたのですが、解決方法はなかなか見つからず・・・。 できれば、apacheはこのまま使用したいのですが。 なにか解決法やアドバイスがあれば、よろしくお願いいたします。

  • nginxのSSL対応について

    nginxでSSL化を今しようとしているのですが(OSはcentOS 7.2です) どうもインストール時にSSLに対応したモジュールを インストールしていなかった?ようでSSLをonにする設定にすると nginxが起動しません 「nginx -V」で調べると以下のコードが返ってきます nginx version: nginx/1.14.0 built by gcc 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) built with OpenSSL 1.0.2k-fips 26 Jan 2017 TLS SNI support enabled configure arguments: --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --prefix=/usr/local/nginx --add-module=/root/nginx-rtmp-module-master nginxのSSL化をしたい場合は再度アンインストールから再インストールするような形しかないのでしょうか?できれば設定を調節するなどだけで対応したいのですが