Articles of apache 2.2

Apache不会加载/parsing.php

我刚刚安装了Apache 2.2.17和PHP 5.3.4。 对于Apacheselect的Win32安装程序,对于PHP,我select了x86 VC6线程安全, 因此 ,我把Apache放在C:\ web \ Apache2.2,PHP放在C:\ web \ libraries \ PHP中。 事情是每次我尝试打本地主机上的PHP页面,我在我的日志文件中得到这个条目: [Thu Dec 16 11:54:02 2010] [error] [client 127.0.0.1] File does not exist: C:/web/htdocs/web, referer: http://localhost/ DocumentRoot是C:\networking\ htdocs,它正常工作正常的.html文件( 它的工作! )。 但是,似乎Apache将所有.php页面的请求redirect到一个名为/ web htdocs的子文件夹。 我不明白。 所有的PHP安装程序都在httpd.conf中: ScriptAlias /php/ "C:/web/libraries/php/" Action application/x-httpd-php "C:/web/libraries/php/php-cgi.exe" 和mime.types: application/x-httpd-php php application/x-httpd-php-source phps

¿如何设置最大的下载或套接字或其他,在Apache和PHP?

我做了一个PHP脚本,从我的本地主机运行,从远程服务器stream文件并提供服务。 我这样做,所以我可以在浏览器显示对话框来保存它们,通过标题(“文件名:…”)来重命名文件 无论如何,尽pipe远程服务器允许以很好的速度同时下载许多文件,但是当它们通过我的本地apache / php进行stream式传输时,我不能同时获得6个以上的文件。 当我尝试下载第七个时,第六个下载完成后立即出现另存为对话框。 我几乎可以肯定,这是由php.ini或Apache的httpd.ini强加的一些限制,但不知道是哪一个。 你做?

php-cgi的内存使用率高于php的内存限制

我正在使用fastcgi与worker MPM和php一起运行apache。 以下是我的mpm限制: StartServers 5 MinSpareThreads 5 MaxSpareThreads 10 ThreadLimit 64 ThreadsPerChild 10 MaxClients 10 MaxRequestsPerChild 2000 我也安装了我的php-cgi与以下内容: PHP_FCGI_CHILDREN=5 PHP_FCGI_MAX_REQUESTS=500 我注意到我的平均php-cgi进程正在使用大约200多MB的RAM,即使它们刚开始时也是如此。 不过,我的php memory_limit只有128M。 这怎么可能,我能做些什么来降低php-cgi的内存消耗?

mod_rewrite 标志不按预期工作?

我认为[L]标志表示“这个规则应该是这个http请求处理的最后一个规则..” 但是,当我有两个规则,如: RewriteRule ^test$ php/test.php [L] RewriteRule (.*) error.php 总是发生的是请求http:// localhost / test去error.php, 而不是我想象的test.php,因为我把[L]放在那里。 如果你注释掉那里的第二个规则,那么请求http:// localhost / test按预期转到test.php。 我真正想要做的是用mod_rewrite捕获404错误。 我想要做的事情可能是错的。 但是我仍然想知道为什么catch-all规则是活跃的,因为我在^test规则之后放了一个[L]。 我在这里看到一个很大的列表,在这里服务器pipe理员列出了一大堆以识别的目录开头的path,但是我想避免通过简单地使用一个很好的catch-all规则来做到这一点。

Apache不会停止启动

/ usr / local / apache / bin / httpd -k start -DSSL nobody 6906 0.0 0.1 187032 5448? S 13:20 0:00 / usr / local / apache / bin / httpd -k start -DSSL nobody 6907 0.0 0.1 187032 5448? S 13:20 0:00 / usr / local / apache / bin / httpd -k […]

阻止对所有人的访问

对于运行Ubuntu的服务器,我怎样才能让用户试图访问一个网页,看起来整个服务器都closures了? 它正在运行Apache 2。 谢谢

为什么在rpmforge中找不到mod_dav_svn 1.6?

这就是我正在做的事情: # yum –enablerepo=rpmforge list mod_dav_svn Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: mirrors.adams.net * base: mirror.sanctuaryhost.com * extras: mirror.sanctuaryhost.com * rpmforge: fr2.rpmfind.net * updates: mirror.steadfast.net Available Packages mod_dav_svn.x86_64 1.4.2-4.el5_3.1 base 为什么1.4.2? 1.6+在哪里?

configurationApache以反向代理特定的名称

我有一个工作的内部网服务器: 正确地为http:// hqmktgwb01 / 目前正确configuration为将代理从http:// hqmktgwb01 / dashstats反转为localhost:3000 – localhost:3003的循环 也有DNS名称dashstats (去相同的IP) 当前的工作configuration文件可以在这里find: http : //pastie.org/1426082 我想修改configuration,使: 4. http:// dashstats /执行相同的反向代理http:// hqmktgwb01 / dashstats 。 我试图通过修改这样的configuration来实现#4: http : //pastie.org/1426047 (增加第90-98行),但这不是一个有效的Apacheconfiguration。 请帮我修改原来的configuration文件来完成1-4以上。

Apache服务器,PHP

我在我的apache服务器(Mac)上运行一个php站点。 当我在外部访问或从同一台服务器上的另一台计算机访问网站时,我无法在网站上显示图像。 如果我试图直接访问图像。 website.com/image.jpg我得到一个断开的链接图标,无法显示图像。 任何想法可能导致这一点? 我的图像是使用style.css文件embedded的。 background-image:url(image.jpg);

Mindtouch打破了我的Apache2虚拟主机configuration

我使用这里的说明安装了mindtouch,它似乎打破了我的虚拟主机configuration。 我有几个域运行相同的Apache实例,这是工作正常,但现在我所有的域名parsing到虚拟主机安装MindTouch。 所以mindtouch使我所有的域名指向新的mindtouch实例。 哎呀! 我使用debians默认的虚拟主机机制(网站启用等)。 有谁知道什么apache指令mindtouch是用来破坏我的vh设置? 我搜遍了所有的conf文件,在apache2.conf或httpd.conf中没有任何明显的会导致这种行为。 它是否创build了一个我应该销毁的sym-link? 我应该补充说我已经卸载了mindtouch软件包,但是apache仍然坚持把所有的域redirect到启用站点的文件夹中提到的第一个域。 thini:~# apache2ctl -S [Wed Jan 05 13:39:11 2011] [warn] NameVirtualHost *:80 has no VirtualHosts VirtualHost configuration: wildcard NameVirtualHosts and _default_ servers: *:* www.openancestry.org (/etc/apache2/sites-enabled/openancestry.org:1) *:* www.pragmantra.com (/etc/apache2/sites-enabled/pragmantra.com:1) *:* services.pragmantra.com (/etc/apache2/sites-enabled/services.pragmantra.com:1) *:* www.subversionreports.com (/etc/apache2/sites-enabled/subversionreports.com:1) *:* www.thijssen.ch (/etc/apache2/sites-enabled/thijssen.ch:1) Syntax OK 编辑:Niall&DerfKbuild议更正后,我现在得到这个: thini:/etc/apache2/sites-enabled# apache2ctl -S VirtualHost configuration: wildcard NameVirtualHosts […]