经过很长一段时间,我们在我们的Debian生产服务器上进行了apt-get dist-upgrade,更新ofc并没有成功,因为它打破了一些服务, exim和httpd(重新启动后)/ Configs在更新时不会被覆盖。 httpd错误日志:… [Thu Jul 06 21:40:14.738185 2017] [core:notice] [pid 64478] AH00052: child pid 3955 exit signal Aborted (6) [Thu Jul 06 21:40:14.740261 2017] [core:notice] [pid 64478] AH00052: child pid 3957 exit signal Aborted (6) [Thu Jul 06 21:40:16.749335 2017] [core:notice] [pid 64478] AH00052: child pid 3960 exit signal Aborted (6) [Thu Jul […]
我想在Apache重新启动时运行一些特定于应用程序的清理代码。 首先,我遵循从https://stackoverflow.com/questions/2992938/is-it-possible-to-launch-a-php-script-at-apache-startup的步骤。 我使用Apache / 2.4.18在本地Ubuntu 16.04.1 LTS虚拟机上更改了/etc/init.d/apache2,在启动时添加了一些代码,并且工作完美。 但是当我尝试在AWS上使用Apache / 2.4.23时,在Ubuntu 16.04.2 LTS上执行完全相同的步骤时,几乎就像我的更改被忽略了一样。 我已经join了许多“回声”语句来理解正在发生的事情,但是我没有看到代码正在运行的任何符号。 这是我在/etc/init.d/apache2中改变的 start) log_daemon_msg "Starting $DESC" "$NAME" do_start RET_STATUS=$? case "$RET_STATUS" in 0|1) log_success_msg [ "$VERBOSE" != no ] && [ $RET_STATUS = 1 ] && log_warning_msg "Server was already running" ;; 2) log_failure_msg print_error_msg exit 1 ;; esac # Restart the reports […]
我有一个apache2 / mod-wsgi部署服务多个域与本质上是一个单一的应用程序。 所有域都在端口80和443上提供。 所以,我的configuration看起来像这样: <VirtualHost *:80> #ServerName www.example.com ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined WSGIDaemonProcess example processes=2 threads=12 python-path=/app_path WSGIProcessGroup example WSGIScriptAlias / /scripthome …… </VirtualHost> <VirtualHost *:80> ServerName example.com Redirect permanent / http://www.example.com/ </virtualHost> <VirtualHost _default_:443> ServerName www.example.com ErrorLog ${APACHE_LOG_DIR}/error_easyset_ssl.log CustomLog ${APACHE_LOG_DIR}/access_easyset_ssl.log combined WSGIDaemonProcess example_ssl processes=2 threads=12 python-path=/app_path WSGIProcessGroup example_ssl WSGIScriptAlias / /scripthome SSLEngine […]
我正在运行Debian 8 Jessie,而且我的Apacheconfiguration有一个PHP问题 。 运行Apache: apachectl -f /etc/apache2/apache2.conf 在运行守护进程的传统方式时,提供所需的结果/行为不会: apachectl start 我该如何去确定这两个选项之间的差异以隔离我的问题?
我有mod_proxy安装程序的Apache作为IIS上面的反向代理。 不pipe我做什么我得到代理错误 – 来自上游服务器错误的无效响应。 我已经设置了2400秒的超时仍然错误。 我直接打IISdebugging,一切工作正常。 所以这不是IIS的问题。 我认为现在唯一的debugging方法是loggingApache从IIS获得的响应。 我怎样才能启用这种types的日志logging?
我在我的实例Amazon EC2的端口80上运行rails应用程序。 我需要apache2来通过phpmyadmin获得我的数据库访问权限。 我安装了apache2,接着写了一篇文章, 说明如何在不同于80的端口上运行apache2 。 我有我的服务器实例上的Ubuntu,所以我跟着本文中的第一个选项。 然后我检查了服务apache2的状态,它在新的端口上运行成功。 更新端口后,我也更新了安全组入站信息,并允许新的端口从任何地方说8090,但仍然无法访问phpmyadmin通过使用以下url。 HTTP:// my_public_ip:8090 / phpMyAdmin的 注意: 在端口80上运行Rails应用程序之前,我检查并运行端口80上的apache2。它工作正常。 我想在端口80上运行rails应用程序,所以我需要更改apache2的端口。 我花了很多时间在这方面也search了很多,但仍然无法find存在的问题。 我是服务器端的新用户。 如果有人能帮助我,我会感激你的。
我使用Apache作为反向代理到应用服务器层 – 使用ProxyPass。 App Server是单个实例(无负载平衡)。 定期(可能是由于一些较低级别的networking问题)Apachelogging以下错误。 [Mon Jul 10 12:48:43.491680 2017] [proxy_http:error] [pid 17325:tid 139862111938304] [client xxxx:21241] AH01114: HTTP: failed to make connection to backend: prod_java, referer: https://my.company.com/app/request 并且503服务不可用响应被返回给客户端。 我正在考虑设置以下对连接失败的反应更快: ProxyPass /app http://PROD_JAVA:8080/app connectiontimeout=1 retry=0 keepalive=On 我的问题是 – 在这种失败的情况下,是否有办法让Apache再次将请求重新发送到后端 – 而不是立即回应客户端?
我有一台运行Ubuntu 16.0.4并运行Apache 2.4.18的服务器,它似乎拒绝来自某些客户端的请求。 我有另一台服务器与Apache 2.4.7接受相同的请求无错误。 如果我通过像Runscope这样的代理运行请求,我会得到一个结果。 如果我只是要求一个简单的PHP文件,我会得到错误。 我有loglevel设置为debugging,但服务器根本不显示请求。 我已经设置了LimitRequestLine 100000和AllowEncodedSlashes On,因为我请求的URL包含一个编码的URL。 但是,如果我删除所有传递的参数,它仍然失败。 这似乎是一个握手问题。 [MacBook-Pro-2:〜] admin%openssl s_client -connect www2.nrgsoft.com:443 CONNECTED(00000003)3519:error:140790E5:SSL例程:SSL23_WRITE:ssl握手失败:/ BuildRoot / Library / Caches / com。 apple.xbs /来源/ OpenSSL098 / OpenSSL098-59.60.1 / src目录/ SSL / s23_lib.c:185: 证书似乎是好的,当我检查像SSLLabs的网站。 https://www.ssllabs.com/ssltest/analyze.html?d=www2.nrgsoft.com 我的Mac有OpenSSL 0.9.8zh 2016年1月14日,而服务器是OpenSSL 1.0.2g 2016年3月1日。
我的Apache服务器继续停止。 如果我重新启动它将再次工作5-6小时,它会下降。 这些是系统和Apache的configuration细节。 Apache : 2.4 version PHP : 5.6.30 System Configuration :256GB RAM,80 cores intel processors MPM Module : mpm_event MPM Config file : <IfModule mpm_event_module> StartServers 10 # MinSpareThreads 25 #MaxSpareThreads 75 ThreadLimit 64 ThreadsPerChild 64 ServerLimit 62 MaxRequestWorkers 3968 MaxConnectionsPerChild 10000 </IfModule> Avg Concurrent requests :500 Max Concurrent requests :1600 total customers […]
自从上次更新以来,apache将无法启动…我有这样的消息: (98)已经使用的地址:AH00072:make_sock:无法绑定到地址[::]:80 (98)已经在使用的地址:AH00072:make_sock:无法绑定到地址[::]:443 当我试图看看谁在监听( netstat -plant )时,我在这些端口上看不到任何进程…他们也在我的iptables上打开。 有任何想法吗 ? 顺便说一句我在Archlinux(4.4.75-1-MANJARO)和使用Apache 2.4.26。