Articles of apache 2.4

mariadb mysql并行安装apache和php

我试图安装mysql和mariadb作为并行安装在同一台服务器上,每个服务在不同的端口上。 我在基于debian的发行版中使用apt-get安装了mysql服务器,然后使用mariadb预编译的二进制文件按照本教程中的mariadb。 乍一看,一切似乎正常工作,因为: A)我看到两个服务在执行“netstat -latun”之后在端口3306和3307上侦听: tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:3307 0.0.0.0:* LISTEN tcp6 0 0 :::80 :::* LISTEN tcp6 0 0 :::22 :::* LISTEN B)从远程主机,我可以通过phpMyAdmin和命令行连接到这两个服务,并执行查询: MySQL: mysql -u root -pmypassword -h xxxx –port 3306 MariaDB: mysql -u root -pmypassword -h xxxx –port 3307 C)在服务器上,我可以成功连接到两个控制台并执行查询使用: […]

在Debian 8中使用Apache2.4 + Php5.6 + mod_proxy_fcgi + php-fpm的SuExec

我安装了Apache2.4 + Php5.6 + mod_proxy_fcgi + php-fpm等东西,如Mysql 5.5,Phpmyadmin和munin,没问题。 注意:我也激活了userdir并重写。 现在我想要更安全,但SuExec不起作用,没有发现错误。 如果我把/home/sitetest/public_html/test.php放在: <?php echo exec('whoami'); ?> 它说: www-data 我能做什么? search谷歌不帮我。 /var/log/apache2/error.log [Fri Dec 11 21:32:21.918933 2015] [mpm_prefork:notice] [pid 771] AH00169: caught SIGTERM, shutting down [Fri Dec 11 21:32:28.064683 2015] [suexec:notice] [pid 12374] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec) [Fri Dec 11 21:32:28.126362 2015] [mpm_prefork:notice] [pid 12375] […]

ESXi VM中的CentOS 7无法查看端口80请求

我在ESXi虚拟机中运行CentOS 7。 我禁用了iptables和selinux。 我只是试图在这个版本的CentOS 7上运行Apache,我认为它工作正常: [root@am1 etc]# systemctl status httpd.service httpd.service – The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled) Active: active (running) since Mon 2015-12-14 11:17:31 EST; 2h 7min ago Process: 16028 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS) Main PID: 16033 (/usr/sbin/httpd) Status: "Total requests: 3; Current requests/sec: 0; Current traffic: 0 B/sec" CGroup: /system.slice/httpd.service […]

同时在apache中启用CGI中的gzip和$ STR_REPLACE

我在我的CGI脚本中有一个用于replace文本的代码(例如用'blue'代替'red') $STR_SEARCH='red' $STR_REPLACE='blue' 我在.htaccess使用下面的代码来启用replace函数:(RequestHeader unset Accept-Encoding) 这工作很好。 但是当我想使用gzip进行压缩时,gzip不起作用。 如果我禁用replace,gzip工作正常。 请帮我理解如何同时启用replace和gzip?

当mod_rewrite和fcgi一起使用时,Apache退出信号出现分段错误

我使用Ubuntu 15.04,Apache / 2.4.10。 我启用了mod_rewrite和mod_proxy_fcgi。 我的fcgi的apacheconfiguration是: ProxyPassMatch ^/(.+\.(hh|php)(/.*)?)$ fcgi://127.0.0.1:9000/var/www/html/myapp/$1 当我请求http://127.0.0.1/index.php它完美的作品 我添加了这样一个重写规则: RewriteRule ^foo index.php?country=de&handle=cleanmaster&offer=3 现在,当我请求http://127.0.0.1/foo Apache崩溃与此错误: [pid 4242:tid 140535432255360] AH00051: child pid 4539 exit signal Segmentation fault (11), possible coredump in /tmp/apache2-gdb-dump 如果我看看核心转储,这是堆栈跟踪: Program terminated with signal SIGSEGV, Segmentation fault. #0 strlen () at ../sysdeps/x86_64/strlen.S:106 warning: Source file is more recent than executable. 106 movdqu […]

如何通过代理(隐藏真实IP)在Windows上使用Apache Web服务器?

我想要做的是: (1)互联网 – >域名 – > proxyip:端口 – > apache web服务器 (和) (2)apache web服务器 – > proxyip:port – > internet 看起来我已经设置(1)在dynamicDNS服务的帮助下,但如何做(2)? 而且我也有一个关于(1)的问题,因为我不知道它是否设置正确。 我使用快速用户:通过auth私人代理(也可以通过IPauthentication)与代理软件和dyn dns实用程序,频繁刷新ip。 它是否适用于(1)部分?

Windows 2012 R2上的Apache(OWA)反向代理停止响应

最近我用旧的ISA服务器与Apache反向代理交换了。 ISA Server只反向代理Exchange OWA。 因此,我的第一个想法是相当简单的。 当我发现这个任务是一个更大的任务完成后(和一些深夜的头发撕裂),我有一个正在运行的反向代理。 而且,它也能够处理主动同步。 现在我的错误:这个反向代理简单地closures(忽略传入的查询)下来15分钟随机。 它不断运行,而不是崩溃。 相反,正如我已经说过的,在浏览器中打开时没有反应。 我们有一个VSS备份解决scheme正在运行,但是故障点不在我们备份运行的时间范围内。 如果您希望我可以提供日志,但请记住这些错误日志每天可能会超过200 MB,这是由于Windows不支持Active-Sync的标准实现。 下面你会发现我的Windows和Apache的configuration和版本。 如果您需要更多我可以提供的,请随时让我知道。 Apache版本:2.4.16 Windows Server 2012 R2 ProxyRequests Off <VirtualHost 192.168.1.200:443> ServerName webmail.example.com:443 Header always set X-Frame-Options SAMEORIGIN Header set Server Apache Header unset X-AspNet-Version Header unset X-OWA-Version Header unset X-Powered-By Header unset WWW-Authenticate Header add WWW-Authenticate "Basic=realm=mail.example.com" Header add WWW-Authenticate "Basic […]

SiteMinder Web代理在Windows 2012 64上使用分离的2.4(32位)进行冻结

我正在使用Apached Siteminder进行单点login身份validation。 我的configuration如下: 64位Windows 2012(64)R1。 Apached 2.4,(32位)(我们尝试了64位,但它不适用于siteminder代理,DLL问题)。 它是从apache的rest室下载的 我今天面临的问题是每隔一小时webagent冻结,authentication不起作用,直到我重新启动Apache。 Apache被用作Tomcat的反向代理。 tomcat服务运行良好,没问题。 但是,然后我必须重新启动我的Apache所有的时间,以保持在Tomcat服务正常运行。 我的问题是: 有没有人遇到类似的问题,SiteMinder的networking代理有点冻结,然后停止身份validation服务? 如果是的话,你做了什么来解决它? 有没有办法将SiteMinder直接集成到Tomcat? 是否推荐? 这可能是什么结果呢? 该集成与Tomcat 8一起使用吗? Siteminder和Windows 2012之间是否有任何已知的问题? 最好, 中号

在OS X 10.10上几分钟后,Apache服务器就会closures

我试图在OS X 10.10上使用Apache在Intranet上运行PHP应用程序。 我可以成功地启动Apache使用: sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist PHP应用程序正常工作,可以从其他机器访问。 但是,在几分钟后,apache会在/ var / log / apache2 / error_log中没有有用的错误消息 [Sat Jan 02 22:21:38.685725 2016] [mpm_prefork:notice] [pid 112] AH00163: Apache/2.4.16 (Unix) PHP/5.5.29 configured — resuming normal operation [Sat Jan 02 22:21:38.685807 2016] [mpm_prefork:info] [pid 112] AH00164: Server built: Jul 22 2015 21:03:09 [Sat Jan 02 22:21:38.685828 2016] […]

编辑OS X 10.10服务器中的Apache环境path

我的phpinfo显示Apache的环境path是: /usr/bin:/bin:/usr/sbin:/sbin 我想补充一点: /opt/local/bin/ 我正在使用OS X 10.10服务器与Server.app的网站function