我已经从我的Web服务器上从Raring迁移到了Saucy,并使用它从2.2.x升级到2.4.x. 现在Apache似乎没有意识到启用网站的目录或其内容。 每台主机都提供了000-default.conf。 VirtualHost的一个例子是006-cjshayward : <VirtualHost *:80> ServerName cjshayward.com ServerAdmin [email protected] DocumentRoot /home/jonathan/cjshayward/public_html <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/> Options ExecCGI Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog ${APACHE_LOG_DIR}/author.cjshayward.error.log # […]
我在RedHat 5机器上运行Apache httpd 2.4.4。 我正在使用Django并通过mod_wsgi运行。 我在/ usr / bin中安装了Python 2.4.3,在/ usr / local / bin中安装了Python 2.7.6,我想使用2.7.6。 我从源代码构build2.7.6,并构build了mod_wsgi-3.4。 我已经创build了一个使用2.7.6的virtualenv,并且从命令shell中,python -V告诉我它正在使用2.7.6(在执行. virtpy/bin/activate )。 运行import sys; sys.version import sys; sys.version显示我2.7.6以及sys.executable显示我/www/sqla/virtpy/bin/python 。 当我从httpd运行它时,加载库时出现问题,当我查看sys.version ,我看到2.7.3 。 奇怪的是, sys.executable仍然显示我/www/sqla/virtpy/bin/python , 与我从命令shell中看到的完全一样 。 具体来说,当python试图加载_socket,我看到这个错误从httpd: ImportError: /www/sqla/virtpy/lib/python2.7/lib-dynload/_socket.so: undefined symbol: _PyInt_AsInt 如果我尝试从命令shell导入_socket,没问题。 我有. /www/sqla/virtpy/bin/activate . /www/sqla/virtpy/bin/activate在我的/ etc / sysconfig / httpd中. /www/sqla/virtpy/bin/activate ,并重新启动了Apache。 同一个可执行文件如何给出不同版本的python? […]
通过执行以下命令,可以在瞬间发现一个IP地址正在消耗的Apache worker的数量: netstat -pantu | grep :80 |sort | uniq -c |grep <IP_HERE, eg: 192.168> | wc -l 例如,这在DDoS攻击期间很有用。 从这个angular度可以确定一个人的反措施是否能够有效地减less阿帕奇工作人员被处理的太多stream量等。 最近我遇到了一个共享IP地址受到攻击的情况,我不能很快find哪个用户在使用最多的Apache工作。 如何确定这样的价值? 有人build议我注意每个用户的stream量,但是这似乎并没有真正给出我正在寻找的答案,当有大量的工人正在产生僵局,所以我到了那个地步我试图按照每个用户来分离工人的所有权。
我正在创build一个数据库(在PostgreSQL中,但是这个问题有望独立于底层DBMS),它将被远程托pipe。 大多数访问将通过使用Apache的基于Web的前端来提供,但是我希望允许一些用户从Excel,SPSS,SigmaPlot等等的自定义查询中检索结果。与数据库的直接ODBC连接似乎受到Excel通过数据连接 。 我希望所有的访问都通过Apache通过HTTPS,至less因为我需要支持特殊的凭据处理。 有没有一个确定的方法来做到这一点?
我在这里search了几个问题,但没有一个似乎回答我的问题。 我一直在使用Apache 2.2.21 / PHP 5.3.9一段时间,仍然正常工作。 我下载并安装了Apache 2.4.10 / PHP 5.5.14,目前为止似乎没有执行PHP代码。 PHP模块被加载。 我的猜测是在PHP方面的问题。 这是控制台的输出。 C:\server\Apache2.4\bin>httpd -v Server version: Apache/2.4.10 (Win32) Apache Lounge VC11 Server built: Jul 17 2014 11:50:08 C:\server\Apache2.4\bin>httpd -M Loaded Modules: core_module (static) win32_module (static) mpm_winnt_module (static) http_module (static) so_module (static) access_compat_module (shared) actions_module (shared) alias_module (shared) allowmethods_module (shared) asis_module (shared) auth_basic_module (shared) […]
我在我的服务器日志中发现一个PHP错误,说: [02:09:27 UTC] PHP致命错误:带有消息'SQLSTATE [HY000] [2002]的未捕获的exception'PDOException'/var/www/include/db_connect.php:7中没有这样的文件或目录 堆栈跟踪: `#0 /var/www/include/db_connect.php(7):PDO – > __ construct('mysql:dbname = my …','apache','123 …') 进一步的检查显示,这个错误发生在服务器启动的时候。 日志日志包含以下相关行: 02:09:22 systemd[1]: Starting The Apache HTTP Server… 02:09:22 systemd[1]: Starting MariaDB database server… 02:09:22 systemd[1]: Starting The PHP FastCGI Process Manager… 02:09:24 systemd[1]: Started The Apache HTTP Server. 02:09:25 mysqld_safe[713]: Logging to '/var/log/mariadb/mariadb.log'. 02:09:25 mysqld_safe[713]: Starting […]
我使用带有apache24-2.4.10_2包的FreeBSD 9.2-RELEASE-p5 。 根据CVE-2014-3566 (POODLE) ,我继续closuresSSLProtocol -SSLv3 ,然后重新启动apache24服务,但在运行检查之后,似乎仍然启用了SSLv3。 <IfModule ssl_module.c> SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5 SSLProtocol -SSLv3 SSLPassPhraseDialog builtin SSLSessionCache "shmcb:/var/run/ssl_scache(512000)" SSLSessionCacheTimeout 300 </IfModule> 我跑的一个检查是这样的: openssl s_client -connect <server>:<port> -ssl3 *更新* 我有一个小错误configuration,并将<IfModule ssl_module.c>replace为<IfModule ssl_module> ,apache24 DID接受我的SSLProtocol : [alexus@wcmisdlin02 ~]$ openssl s_client -connect j.alexus.org:443 -ssl3 CONNECTED(00000003) 139809335551816:error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure:s3_pkt.c:1257:SSL alert number 40 139809335551816:error:1409E0E5:SSL routines:SSL3_WRITE_BYTES:ssl handshake failure:s3_pkt.c:596: — […]
在启用selinux的CentOS中,我有一台运行apache的web服务器。 我有一个运行gitlab的单独的服务器。 我试图创build一个工作stream使用gitlab的networking钩子,所以当代码被推到git,gitlab将请求我的生产服务器上,然后将拉最新版本的代码的页面。 脚本运行良好,但是selinux不允许从脚本运行git pull 。 它失败,退出码128。 简化的PHP脚本 <?php $data = json_decode(file_get_contents("php://input")); exec('./.hooks/received-push.sh ' . $data->repository->url); 简化的bash脚本 #!/bin/sh if [ "$#" -ne 1]; then echo "Repo URL must be provided" fi GIT=/usr/local/bin/git TMP=mktemp cd $TMP $GIT clone $1 || echo "git clone failed with exit code $?" 我已经发现httpd_can_network_connect被设置为closures,所以我打开了。 如果我禁用selinux,一切正常,所以我知道有一些东西在这里的方式。 手动运行时脚本工作正常。 看一下audit.log,我看到这行在git clone运行的时候出现(为了可读性,在这里放了多行) type=AVC msg=audit(1420243675.063:1041): avc: […]
介绍 这种情况一天发生几次,木偶代理不能马上识别出木偶大师的变化。 如果是这种情况,木偶需要运行5次以上(如X <5min)才能识别出变化。 木偶版本:3.7.3 X> 100个Puppet-agent节点 一名木偶大师 预期 Puppetmaster的变化应该立即被Puppet-agent承认 尝试 在阅读这个文档之后,其中一个解决这个问题的尝试被执行了: Puppet includes a basic puppet master web server based on Ruby's WEBrick library. (This is what Puppet uses if you run puppet master on the command line or use most puppetmaster init scripts.) You cannot use this default server for real-life loads, as […]
如何禁用安装在Windows Server 2008 R2上的Apache 2.4.9上的SSLv1,SSLv2和SSLv3协议作为服务? (我没有使用IIS。) 我仍然想在我的服务器上安装TLSv1.2协议。 这里是我的一些环境variables: SERVER_SOFTWARE Apache/2.4.9 (Win32) PHP/5.5.12 OpenSSL/1.0.1g SSL_PROTOCOL TLSv1.2 Registered Stream Socket Transports tcp, udp, ssl, sslv3, sslv2, tls