【APACHE的工作方式】 prefork模式(默认) 这个多路处理模块(MPM)实现了一个非线程型的、预派生的web服务器,它的工作方式类似于Apache 1.3。它适合于没有线程安全库,需要避免线程兼容性问题的系统。它是要求将每个请求相互独立的情况下最好的MPM,这样若一个请求出现问题就不会影响到其他请求。 这个MPM具有很强的自我调节能力,只需要很少的配置指令调整。最重要的是将MaxClients设置为一个足够大的数值以处理潜在的请求高峰,同时又不能太大,以致需要使用的内存超出物理内存的大 ...
Read More »Linux Apache无法解析PHP综合因素
在httpd.conf 里加入如下几句 AddType application/x-httpd-php .php LoadModule php5_module modules/libphp5.so <IfModule mod_php5.c> AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps </IfModule> 怎么说呢,我反正都加了,完美启动 ...
Read More »configure error xml2-config not found. please check your libxml2 installation
centos 5.5 安装 PHP 5.4.3 报 configure error xml2-config not found. please check your libxml2 installation 错误 检查是否安装了libxm包 [root@rh-linux software]# rpm -qa |grep libxml2 libxml2-2.6.26-2.1.12 libxml2-python-2.6.26-2.1.12 重新安装libxml2和libxml2-devel包, y ...
Read More »apache出现You don’t have permission to access / on this server. 提示
打开httpd.ini # Each directory to which Apache has access can be configured with respect # to which services and features are allowed and/or disabled in that # directory (and its subdirectories). # # First, we configure the ”default” to be ...
Read More »编译apahce时出现httpd-2.2.22/srclib/apr-util错误的解决方法
今天在编译apache时,出现如下问题: make[3]: Entering directory `/tmp/httpd-2.2.22/srclib/apr-util/xml/expat’ /bin/sh ./conftools/mkinstalldirs /usr/local/apache2/lib /usr/local/apache2/include /bin/sh ./libtool –mode=install /usr/bin/install -c libexp ...
Read More »