﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>PHP博客-PHP整理架</title><link>http://www.phpweblog.net/linxiaobo/</link><description>我的朋友PHP</description><language>zh-cn</language><lastBuildDate>Sat, 31 Jul 2010 15:56:17 GMT</lastBuildDate><pubDate>Sat, 31 Jul 2010 15:56:17 GMT</pubDate><ttl>60</ttl><item><title>用户的＄home/.dmrc已被忽略，这将无法保存 默认会话和语</title><link>http://www.phpweblog.net/linxiaobo/archive/2010/07/30/7318.html</link><dc:creator>小博</dc:creator><author>小博</author><pubDate>Fri, 30 Jul 2010 02:03:00 GMT</pubDate><guid>http://www.phpweblog.net/linxiaobo/archive/2010/07/30/7318.html</guid><wfw:comment>http://www.phpweblog.net/linxiaobo/comments/7318.html</wfw:comment><comments>http://www.phpweblog.net/linxiaobo/archive/2010/07/30/7318.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.phpweblog.net/linxiaobo/comments/commentRss/7318.html</wfw:commentRss><trackback:ping>http://www.phpweblog.net/linxiaobo/services/trackbacks/7318.html</trackback:ping><description><![CDATA[
<div class="blog_title" style="margin-bottom: 15px; font-family: Arial, sans-serif, Helvetica, Tahoma; font-size: 12px; line-height: 18px; "><h3 style="font-size: 16px; line-height: 1.5em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; padding-top: 10px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: black; "><span style="font-weight: normal; line-height: 18px; font-size: 12px; ">用户的＄home/.dmrc已被忽略，这将无法保存 默认会话和语言</span></h3></div><div class="blog_content" style="font-family: Arial, sans-serif, Helvetica, Tahoma; font-size: 12px; line-height: 18px; "><div class="blog_content"><span class="postbody">权限管理，一不小心就搞出这种情况：<br><br>开机进入登录界面，输入用户名、密码回车后提示：&#8220;<span class="hilite1" style="background-color: rgb(255, 255, 0); ">用户的＄home/</span>&nbsp;.dmrc已被忽略，这将无法保存 默认会话和语言。该文件应该由用户所有，并且权限设置为644。用户的＄home目录应由用户自己所有，别的用户也无法写入。<br><br>解决办法:<br></span>chmod 755 －R /home/用户名<br>chmod 644 /home/用户名/.dmrc</div></div><img src ="http://www.phpweblog.net/linxiaobo/aggbug/7318.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.phpweblog.net/linxiaobo/" target="_blank">小博</a> 2010-07-30 10:03 <a href="http://www.phpweblog.net/linxiaobo/archive/2010/07/30/7318.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Linux下安装最新Apache2.0.52+PHP5+GD2+MySQL等</title><link>http://www.phpweblog.net/linxiaobo/archive/2010/02/03/7076.html</link><dc:creator>小博</dc:creator><author>小博</author><pubDate>Wed, 03 Feb 2010 03:53:00 GMT</pubDate><guid>http://www.phpweblog.net/linxiaobo/archive/2010/02/03/7076.html</guid><wfw:comment>http://www.phpweblog.net/linxiaobo/comments/7076.html</wfw:comment><comments>http://www.phpweblog.net/linxiaobo/archive/2010/02/03/7076.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.phpweblog.net/linxiaobo/comments/commentRss/7076.html</wfw:commentRss><trackback:ping>http://www.phpweblog.net/linxiaobo/services/trackbacks/7076.html</trackback:ping><description><![CDATA[Linux下安装最新Apache2.0.52+PHP5+GD2+MySQL等 <br><br>来源：中国智慧在线( http:
//article.21e.cn )<br>
<br>
以下经过测试在red hat 9 和red hat A 3上通过! <br>
<br>
如果你机器里原来装有了PHP或者APACHE的RPM或者低版本.你可以现删除,删除安装简洁一些,不过我的实际操作过程是煤油删除,而直接安装的.当然你也可以跟我一样! <br>
首先,服务器GCC要有,不然什么都不能做.可以用gcc -v来查看是否安装了GCC, <br>
<br>
#gcc -v <br>
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs <br>
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--host=i386-redhat-linux <br>
Thread model: posix <br>
gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-34) <br>
<br>
有以上类似信息说明已有GCC,没有就现安装吧,至于如何安装,我就不说了,可以用光盘安装或者是下载源文件都可以,当然你的版本不一定是3.2.3! <br>
<br>
请下载以下所有的东西: <br>
<br>
httpd-2.0.X.tar.gz 版本最好是下载最新的啦,下载地址:<a href="http://www.apache.org/" target="_blank">http://www.apache.org</a> <br>
MySQL-client-4.0.20-0.i386.rpm <br>
MySQL-server-4.0.20-0.i386.rpm(如果你打算升级mysql的话请下载,下载地址:http:
//www.mysql.org 当然也是下载最新的版本最好了,由于我不打算安装mysql,就省略了,安装的时候的步骤也是先安装mysql!) <br>
php-5.0.X.tar.gz 下载地址:<a href="http://www.php.net/" target="_blank">http://www.php.net</a> <br>
ZendOptimizer-2.5.3-linux-glibc21-i386.tar.gz <br>
zend的最新版安装是好像有点问题,就下载这个版本就可以,zend用来加速php,你可以选择不安装!下载地址:http: //www.zend.com <br>
gd-2.0.28.tar.gz 这个软件的下载地址,php推荐的是:<a href="http://www.boutell.com/gd/" target="_blank">http://www.boutell.com/gd/</a> 但是由于某些原因,开发者不支持gif图像的创建,这有点不太方便,所以,我下载了个支持gif图像的,也就是打了gif补丁的:http: //www.rime.com.au/gd/ <br>
libxml2-2.X.X.tar.gz 下载地址: <br>
zlib-1.X.X.tar.gz 忘记了,自己找一下吧 <br>
jpegsrc.v6b.tar.gz 下载地址:<a href="ftp://ftp.uu.net/graphics/jpeg/" target="_blank">ftp://ftp.uu.net/graphics/jpeg/</a> <br>
libpng-1.2.5.tar.gz 下载地址:<a href="http://www.libpng.org/pub/png/libpng.html" target="_blank">http://www.libpng.org/pub/png/libpng.html</a> <br>
freetype2-X.X.tar.gz 下载地址:<a href="http://www.fretype.org/" target="_blank">http://www.fretype.org</a> <br>
<br>
xpm-3.4k-2.i386.rpm 忘记了,自己找一下吧 <br>
<br>
以上都是我下载的官方地址,软件的版本中的X,你自己看看你想用哪个版,不过最好是用最新稳定版本的!如果你以前安装过上述软件的其他版本,你也可以选择不安装! <br>
<br>
安装MYSQL 服务器: <br>
#rpm -ivh MySQL-server-4.0.20-0.i386.rpm <br>
#rpm -ivh MySQL-client-4.0.20-0.i386.rpm <br>
安装好后试试能不能用 <br>
#mysql 如果设置了密码后测试方法是(mysql -u root -proot -h localhost 注意的是-p后煤没有空格,直接跟密码) <br>
Welcome to the MySQL monitor. Commands end with ; or \g. <br>
Your MySQL connection id is 27651 to server version: 4.0.20-standard <br>
Type 'help;' or '\h' for help. Type '\c' to clear the buffer. <br>
<br>
说明可以了! <br>
请自己改mysql的密码,方法不说了! <br>
<br>
安装XPM （<span class="ec_mean"> (X-Windows Pixelmaps)彩色图象文件格式，</span>XPM(XPixMap)图形格式在X11中是一个标准格式,它把图形保存成ASCII文本,一个XPM的定义不仅仅是ASCII形式,它的格式还可以是 C源代码形式的,可以直接将它编辑到自己的应用程序中去。
）<br>
<br>
#rpm -ivhxpm-3.4k-2.i386.rpm <br>
<br>
安装libxml （Libxml2 是一个xml c语言版的解析器）<br>
# tar -zxf libxml2-2.6.16.tar.gz <br>
# cd libxml2-2.6.16 <br>
# ./configure (xml默认安装就可以,不要指定路径了,因为安装时php可能找不到它,PHP5只支持libxml2-2.5.10以上版本) <br>
# make <br>
# make install <br>
<br>
安装zlib （Zlib是一个压缩和解压模块）<br>
# tar -zxf zlib-1.2.2.tar.gz <br>
# cd zlib-1.2 <br>
# ./configure --prefix=/usr/local/zlib2 (注意,如果您以前没有安装zlib,可以不指定路径,我是没有删除以前的低版本才指定的!以下雷同!) <br>
# make <br>
# make install <br>
<br>
安装jpeg <br>
# tar -zxf jpegsrc.v6b.tar.gz <br>
# cd jpeg-6b/ <br>
# ./configure --prefix=/usr/local/jpeg6 <br>
# make <br>
# make install-lib <br>
如果你选择默认安装,可能很顺利,指定路径后,请先创建以下文件夹 <br>
错误提示:...... /usr/bin/install -c -m 644 jconfig.h /usr/local/jpeg6/include/jconfig.h <br>
/usr/bin/install: 无法创建一般文件&#8216;/usr/local/jpeg6/include/jconfig.h&#8217;: 没有那个文件或目录 <br>
make: *** [install-headers] Error 1 <br>
# mkdir /usr/local/jpeg6 <br>
# mkdir /usr/local/jpeg6/include <br>
# mkdir /usr/local/jpeg6/lib <br>
# make install-lib <br>
# make install <br>
<br>
安装时如果错误提示: <br>
/usr/bin/install: 无法创建一般文件&#8216;/usr/local/jpeg6/lib/libjpeg.a&#8217;: 没有那个文件或目录 <br>
make: *** [install-lib] Error 1 <br>
创建如下文件夹: <br>
# mkdir /usr/local/jpeg6/lib <br>
# make install <br>
/usr/bin/install -c cjpeg /usr/local/jpeg6/bin/cjpeg <br>
/usr/bin/install: 无法创建一般文件&#8216;/usr/local/jpeg6/bin/cjpeg&#8217;: 没有那个文件或目录 <br>
make: *** [install] Error 1 <br>
# mkdir /usr/local/jpeg6/bin <br>
/usr/bin/install -c -m 644 ./cjpeg.1 /usr/local/jpeg6/man/man1/cjpeg.1 <br>
/usr/bin/install: 无法创建一般文件&#8216;/usr/local/jpeg6/man/man1/cjpeg.1&#8217;: 没有那个文件或目录 <br>
make: *** [install] Error 1 <br>
# mkdir /usr/local/jpeg6/man <br>
# mkdir /usr/local/jpeg6/man/man1 <br>
# make install <br>
好了,直到安装成功! <br>
<br>
安装libpng: <br>
# tar -zxf libpng-1.2.7-config.tar.gz <br>
# cd libpng-1.2.7-config <br>
# ./configure --prefix=/usr/local/libpng2 <br>
# make <br>
# make install <br>
<br>
安装freetype: （<span style="font-family: 宋体;"><font size="3"><span lang="EN-US"><font size="3"><span lang="EN-US"><font face="Times New Roman">Freetype</font></span><span style="font-family: 宋体;">是一个操作字体的函数库，它不但可以处理点阵字体，也可以处理多种矢量字体，包括</span><span lang="EN-US"><font face="Times New Roman">truetype</font></span><span style="font-family: 宋体;">字体，为上层应用程序提供了一个统一的调用接口。</span></font></span></font></span>）<br>
# tar -zxf freetype-2.1.9.tar.gz <br>
# cd freetype-2.1.9 <br>
# ./configure --prefix=/usr/local/freetype2 <br>
# make <br>
# make install <br>
<br>
安装gd库: <br>
# tar -zxf gd-2.0.26gif.tar.gz <br>
# cd gd-2.0.26gif <br>
# ./configure --prefix=/usr/local/gd2 --with-zlib=/usr/local/zlib2/
--with-png=/usr/local/libpng2/ --with-jpeg=/usr/local/jpeg6/
--with-freetype=/usr/local/freetype2/ (请指定及格插件的安装路径,否则安装php的时候可能出错!) <br>
# make <br>
# make install <br>
<br>
安装apache,(php5安装环境需要apache2.0.46以上版本,下载的时候注意!) <br>
#tar zxvf httpd-2.0.50.tar.gz <br>
#cd httpd-2.0.50 <br>
#./configure --prefix=/usr/local/apache2 --enable-module=so <br>
#make <br>
#make install <br>
<br>
安装php5: <br>
# tar -zxf php5-200411260130.tar.gz <br>
# cd php5-200411260130 <br>
# ./configure --prefix=/usr/local/php
--with-apxs2=/usr/local/apache2/bin/apxs
--with-jpeg-dir=/usr/local/jpeg6/ --with-png-dir=/usr/local/libpng2/
--with-gd=/usr/local/gd2/ --with-freetype-dir=/usr/local/freetype2/
--enable-trace-vars --with-zlib-dir=/usr/local/zlib2/
-with-mysql=/var/lib/mysql <br>
# make <br>
# make install <br>
# cp php.ini-dist /usr/local/php/lib/php.ini <br>
<br>
安装libxml的时候如果指定了路径,make的时候可能出错,所以,我安装的时候没指定! <br>
我MAKE PHP4.3.8 和5的时候都遇到: <br>
ext/gd/gd.lo(.text+0x63a): In function `zm_deactivate_gd': <br>
<br>
/root/software/php-4.3.8/ext/gd/gd.c:385: undefined reference to `gdFreeFontCache' <br>
<br>
collect2: ld returned 1 exit status <br>
<br>
make: *** [sapi/cli/php]Error 1 <br>
另外还有一个错误可能是什么: libphp.lo的错误(错误当时没有纪录,忘记了,大概是!) <br>
是因为GD库的freetype没装,或者是安装gd库的时候煤油指定插件的路径!! <br>
<br>
复制PHP.INI文件到正确位置 <br>
在PHP目录下运行 <br>
#cp php.ini-dist /usr/local/php/lib/php.ini <br>
<br>
编辑apache配置文件httpd.conf <br>
#vi /usr/local/apache2/conf/httpd.conf <br>
<br>
要改的有如下几处: <br>
<br>
一般都在 <br>
#AddType application/x-tar .tgz <br>
下加一行 <br>
#LoadModule php5_module modules/libphp5.so <br>
AddType application/x-httpd-php .php <br>或者是AddType application/x-httpd-php .php .phtml<br>
如果你搜索其它地方没有以下这行 <br>
<br>
LoadModule php5_module modules/libphp5.so <br>
请把上面的#号去掉 <br>
<br>
还有找到 <br>
DirectoryIndex index.html index.html.var <br>
在后面加 index.php 让它把index.php做为默认页 <br>
<br>
找到 <br>
# don't use Group #-1 on these systems! <br>
把下面的用户名和组改为 <br>
User apache <br>
Group apache <br>
(原来好像是nobody) <br>
<br>
再找 <br>
#ServerName <br>
把#去掉,后面的IP改成你的IP. <br>
<br>
找到 <br>
DocumentRoot "/usr/local/apache2/htdocs" <br>
把/usr/local/apache2/htdocs改为你存放网页文件的路径 <br>
<br>
为了让中文网页没乱码 <br>
找到 <br>
AddDefaultCharset iso8859-1 <br>
把后面的iso8859-1改为gb2312 或者是干脆off <br>
其他的选项就自己修改吧!或者到<a href="http://article.21e.cn/" target="_blank">http://article.21e.cn</a> 有一个专门的httpd.conf的说明! <br>
<br>
保存httpd.conf文件. <br>
<br>
启动apache <br>
# /usr/local/apache2/bin/apachectl start <br>
如果没有出错,写一个测试页放到你网页目录下.访问就应该可以看到php的版本等信息了! <br>
<br>
如无意外.PHP脚本已经可以连接mysql了. <br>
<br>
用ZendOptimizer加速PHP <br>
<br>
#tar zxvf ZendOptimizer-2.5.3-linux-glibc21-i386.tar.gz <br>
#cd ZendOptimizer-2.5.3-linux-glibc21-i386 <br>
#./install.sh <br>
安装的时候注意输入正确的安装apache的路径等内容! <br>
安装完毕,再看看phpinfo页面的zend选项就发现了!! <br>
<br>
如果你以前的apache没有删除,而你又想使用 <br>
# /etc/init.d/httpd restart <br>
这样重起apache的话,那就修改/etc/init.d/httpd这个文件,修改其中的apahce的三个路径就可以了!! <br>
<br>
好了,终于安装完毕,你的机器已经是最新的apache+php+mysql+gd.......了,恭喜!! <br>
<br>
艾,累死我了,整整弄了好几天!!休息了!!~(安装的时候,可能安装的时候和写不不是很一样,不过大同小异!) <br>
<br>
同时感谢以前那几位辛苦的安装者,参照你们的文章我才得以顺利安装成功,虽然还是用了好几天!~  <img src ="http://www.phpweblog.net/linxiaobo/aggbug/7076.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.phpweblog.net/linxiaobo/" target="_blank">小博</a> 2010-02-03 11:53 <a href="http://www.phpweblog.net/linxiaobo/archive/2010/02/03/7076.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>linux安装时的安装语句</title><link>http://www.phpweblog.net/linxiaobo/archive/2010/02/02/7075.html</link><dc:creator>小博</dc:creator><author>小博</author><pubDate>Tue, 02 Feb 2010 10:04:00 GMT</pubDate><guid>http://www.phpweblog.net/linxiaobo/archive/2010/02/02/7075.html</guid><wfw:comment>http://www.phpweblog.net/linxiaobo/comments/7075.html</wfw:comment><comments>http://www.phpweblog.net/linxiaobo/archive/2010/02/02/7075.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.phpweblog.net/linxiaobo/comments/commentRss/7075.html</wfw:commentRss><trackback:ping>http://www.phpweblog.net/linxiaobo/services/trackbacks/7075.html</trackback:ping><description><![CDATA[./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-config-file-path=/usr/local/lib --enable-track-vars --with-xml --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config<br><br>http://rental.zhupiter.com/postshow_305_1_1.html<br><br>http://p.imxy.net/187<br><br><br><img src ="http://www.phpweblog.net/linxiaobo/aggbug/7075.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.phpweblog.net/linxiaobo/" target="_blank">小博</a> 2010-02-02 18:04 <a href="http://www.phpweblog.net/linxiaobo/archive/2010/02/02/7075.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Installing Apache 2 httpd with ssl and PHP support </title><link>http://www.phpweblog.net/linxiaobo/archive/2010/02/02/7074.html</link><dc:creator>小博</dc:creator><author>小博</author><pubDate>Tue, 02 Feb 2010 09:02:00 GMT</pubDate><guid>http://www.phpweblog.net/linxiaobo/archive/2010/02/02/7074.html</guid><wfw:comment>http://www.phpweblog.net/linxiaobo/comments/7074.html</wfw:comment><comments>http://www.phpweblog.net/linxiaobo/archive/2010/02/02/7074.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.phpweblog.net/linxiaobo/comments/commentRss/7074.html</wfw:commentRss><trackback:ping>http://www.phpweblog.net/linxiaobo/services/trackbacks/7074.html</trackback:ping><description><![CDATA[<h2>
Installing Apache 2 httpd with ssl and PHP support
</h2>
<p>
Compiling Apache used to be easy. Over the years it has gotten more and more
complex, and the latest versions can be a nightmare even for experienced
administrators to compile. Each version of Apache also puts its config files
and log files in a different place. Many people have trouble configuring the
"prefork" version that is installed by SuSE, because instead of one config
file, the prefork version (at least the one supplied by SuSE) has 13 of them.
Since apache needs to be updated and reinstalled frequently, most users are
better off compiling apache from source from the very beginning. This also
helps your users by ensuring that their html files (and your config files)
are always in the same place.
</p>
<p>
PHP5 is recommended over PHP4 because it is much easier to install.
It is recommended to compile php as a shared library instead of
hard-coding it into apache. The old ".o" and "mod_php4.c" files
will be replaced by a single php library. This page will also
concentrate exclusively on apache 2.x.
</p>
<h3>STEP 1: Install SSL </h3>
<p>
Install new openssl from www.openssl.org (openssl-0.9.6g.tar.gz)
</p>
<p>
Openssl installs everything in /usr/local/ssl/lib, while SuSE installs
it in /usr/lib/. Be sure to copy the new version to /usr/lib or
specify "--prefix=/usr/lib" during the config step.
<table width="80%">
    <tbody>
        <tr>
            <td bgcolor="#eeeeee">
            <pre>    ./config<br>    make<br>    make test<br>    make install<br>    ./config shared<br>    make <br>    make install<br>    cd /usr/local/ssl/lib<br>    cp * /usr/lib<br>    lcdonfig<br></pre>
            </td>
        </tr>
    </tbody>
</table>
If it gives the following error:
<table width="80%">
    <tbody>
        <tr>
            <td bgcolor="#eeeeee">
            <pre>    BEGIN failed--compilation aborted at /usr/lib/perl5/5.00503\<br>    /Pod/Usage.pm line 412.<br></pre>
            </td>
        </tr>
    </tbody>
</table>
copy the files manually
<table width="80%">
    <tbody>
        <tr>
            <td bgcolor="#eeeeee">
            <pre>    cp libcry* /usr/lib/ <br>    cp libssl* /usr/lib/<br>    cp libcry* /usr/local/ssl/lib<br>    cp libssl* /usr/local/ssl/lib<br></pre>
            </td>
        </tr>
    </tbody>
</table>
Restart Samba and Apache, otherwise Samba, apache, and
possibly other applications will crash silently.
</p>
<p>
</p>
<h3>STEP 2: Unpack Apache </h3>
<p>
PHP places files in the Apache source tree that are necessary to create
a version of Apache that supports PHP. Untar Apache and type './configure'.
<strong> Do not skip this step. </strong> Then install PHP before continuing.
</p>
<p>
</p>
<h3>STEP 3: Install PHP </h3>
<p>
Use the latest versions of Apache and PHP to avoid incompatibilities,
compilation problems, and potential security problems. If you use
modules in apache, it may be necessary to reinstall them as well.
</p>
<p>
PHP can be configured with apxs or using command-line options.
In this document we will use apxs.
If you use apxs, make sure the correct apxs (/usr/sbin/apxs,
/usr/sbin/apxs2, /usr/local/apache/bin/apxs, or /usr/local/apache2/bin/apxs)
is being used by specifying something like "--with-apxs=/usr/sbin/apxs".
If you specify the wrong apxs, it will say something like:
<table width="80%">
    <tbody>
        <tr>
            <td bgcolor="#eeeeee">
            <pre>  configure: error: You have enabled Apache 2 support <br>  while your server is Apache 1.3.  <br>  Please use the appropiate switch --with-apxs (without the 2)<br></pre>
            </td>
        </tr>
    </tbody>
</table>
Since apxs is part of Apache, if apxs is not present, you must compile and
install apache twice--once to create apxs, and once to create a version
of apache that works with php. For Apache 2.x you need to use apxs2. Apache
creates a version of apxs2, but unfortunately calls it apxs. This is the
version needed by php. It's necessary to make it executable and then copy
it somewhere in your path (such as /usr/sbin/).
See also "./configure --help" and "sapi/apache2filter/README".
</p>
<ol>
    <li>Install python and python-devel from original linux CD if python is
    not present.
    </li>
    <li>Obtain the libxml2 tar file from
    <table width="80%">
        <tbody>
            <tr>
                <td bgcolor="#eeeeee">
                <pre>  ftp://ftp.gnome.org/mirror/gnome.org/sources/libxml2/2.6/</pre>
                </td>
            </tr>
        </tbody>
    </table>
    </li>
    <li> Compile and install libxml2
    <table width="80%">
        <tbody>
            <tr>
                <td bgcolor="#eeeeee">
                <pre>  ./configure --enable-ipv6=no<br>   make<br>   make install</pre>
                </td>
            </tr>
        </tbody>
    </table>
    </li>
    <li> According to the documentation, libxml2-devel is also needed.
    However, this turned out not to be true.
    <br>
    </li>
    <li> If you don't have an apxs already, go back to the apache directory
    and install apxs by compiling and installing a minimal apache with no
    arguments as described below in Step 4.
    Then return to the php directory and type:
    <table width="80%">
        <tbody>
            <tr>
                <td bgcolor="#eeeeee">
                <pre> ./configure --with-apxs2=/usr/local/apache2/bin/apxs \<br>  --with-apache2=/home/tjnelson/apache/httpd-2.0.50 \<br>  --enable-shared  --with-mysql=/usr/bin/mysql<br></pre>
                </td>
            </tr>
        </tbody>
    </table>
    Substitute the actual location of your apxs. In our situation, we had
    to use a different command for each of our computers that use php with
    apache (This section is only of local interest. Please skip to the next
    section if you are not me.):
    <table width="80%">
        <tbody>
            <tr>
                <td bgcolor="#eeeeee">
                <pre>entropy<br><br>  cd /usr/local/lib/perl5/site_perl<br>  cp /usr/lib/perl5/5.8.1/strict.pm .<br>  cd -<br>  ./configure --with-apxs2=/usr/local/apache2/bin/apxs \<br>      --with-apache2=/home/tjnelson/apache/httpd-2.0.50 <br>  make<br>  edit Makefile to remove install-pear from install_targets<br>  su<br>  make install<br>  libtool --finish /home/tjnelson/php/php-5.2.1/libs<br>  cd /etc/rc.d<br>  ./apache2 restart<br>  test web server to make sure it actually started<br><br>protein<br><br>  install libxml2 and libxml2-sources from ftp://xmlsoft.org/<br> ./configure  --with-apache=/home/tjnelson/apache/httpd-2.0.50<br>  <br>engram  <br><br>  ./configure --with-apxs2=/usr/local/apache2/bin/apxs \<br>    --with-apache2=/home/tjnelson/apache/httpd-2.0.50 \<br>    --enable-shared --enable-mbstring<br>  make<br>  edit Makefile to remove install-pear from install_targets<br>  su<br>  make install<br>  libtool --finish /home/tjnelson/php/php-5.2.1/libs<br>  cd /etc/rc.d<br>  ./apache2 restart<br>  test web server to make sure it actually started<br></pre>
                </td>
            </tr>
        </tbody>
    </table>
    The mysql option is only needed if you have mysql installed.
    <br>
    Be sure to specify building shared libraries or you'll end up with
    useless static libraries.
    <p>
    </p>
    </li>
    <li>
    Next build php, and install it as root. Make sure you have a working
    httpd.conf before installing php, because it will modify your
    httpd.conf file.
    <table width="80%">
        <tbody>
            <tr>
                <td bgcolor="#eeeeee">
                <pre>  make clean<br>  make <br>  su<br>  make install      <br>  make install-modules   (optional)<br>  libtool --finish /home/tjnelson/php/php-5.2.1/libs<br></pre>
                </td>
            </tr>
        </tbody>
    </table>
    The 'make install' command should say something about libphp5.so,
    and not libphp5.a. Shared (.so) libraries are needed to interface
    with apache.
    </li>
</ol>
<p>
On some computers, php installation hangs during the "make install"
command during PEAR installation. If you don't need pear, this problem
can be solved by editing the php makefile and removing "install-pear"
from the line that starts with "install_targets".
</p>
<p>
By default it installs php in /usr/local/bin. You need to find
and get rid of any old versions of php (e.g., in /usr/bin).
If you make a mistake and start compiling with the wrong options,
be sure to type "make clean" before running make a second time.
Also, don't add too many options to php or it will prevent apache from
compiling. (It may even prevent 'configure' from working.)
</p>
<p>
Next copy php.ini-dist to the appropriate place (normally
/etc/php.ini or /usr/local/lib/php.ini) and edit it as necessary to
set PHP options. The most common option is to allow uploads. This is
essential for applications like squirrelmail. If uploads are not
allowed, or the maximum filesize is too small, squirrelmail will
allow incoming mail but silently drop outgoing mail with no warning
and no messages to any logfile. It can be a royal pain to find
this problem.
<table width="80%">
    <tbody>
        <tr>
            <td bgcolor="#eeeeee">
            <pre>  ln -s /etc/php.ini /usr/local/lib/php.ini<br></pre>
            </td>
        </tr>
    </tbody>
</table>
<table width="80%">
    <tbody>
        <tr>
            <td bgcolor="#eeeeee">
            <pre>  file_uploads = On<br>  ;upload_tmp_dir =<br>  upload_max_filesize = 200M<br></pre>
            </td>
        </tr>
    </tbody>
</table>
</p>
<p>
</p>
<p>
</p>
<h3>STEP 4: Install Apache </h3>
<p>
Un-mangle the documentation filenames so you can read the
documentation:
<table width="80%">
    <tbody>
        <tr>
            <td bgcolor="#eeeeee">
            <pre>   cd htdocs/manual<br>   mmv -r "*.html.en" "#1.html"<br>   mmv -r "*.html.html" "#1.html"<br></pre>
            </td>
        </tr>
    </tbody>
</table>
</p>
<p>
</p>
<ol>
    <li><strong> Enabling Proxy in Apache: </strong>
    If your server is well protected from the Internet, you can activate
    the http proxy feature in Apache by adding
    <table width="80%">
        <tbody>
            <tr>
                <td bgcolor="#eeeeee">
                <pre>--enable-proxy </pre>
                </td>
            </tr>
        </tbody>
    </table>
    to the configure command.
    (note: it used to be called "--enable-module=proxy", but this seems
    not to work anymore. If in doubt whether the option is enabled,
    look at config.log).
    If you use modules, there needs to be a "LoadModule" line in your
    httpd.conf file. (This is done automatically by the make install
    script <em> unless </em> it finds a pre-existing httpd.conf file).
    <br><br>
    Then make the appropriate changes to your /etc/httpd/httpd.conf file
    as shown below.
    If the server is exposed to the Internet, you will eventually
    get hit with spammers and people trying to access porn. The documentation
    states that adding the following to your httpd.conf will prevent these
    attacks:
    <table width="80%">
        <tbody>
            <tr>
                <td bgcolor="#eeeeee">
                <pre>&lt;Directory proxy:*&gt;<br>Order Deny,Allow<br>Deny from all<br>Allow from yournetwork.example.com<br>&lt;/Directory&gt;<br></pre>
                </td>
            </tr>
        </tbody>
    </table>
    However, in my experience, this doesn't always work. If you want secure
    proxying, you're better off with a full-featured proxy like squid.
    <p>
    </p>
    </li>
    <li><strong> Compile apache </strong><br>
    Run 'configure' and 'make'.
    <table width="80%">
        <tbody>
            <tr>
                <td bgcolor="#eeeeee">
                <pre>   cd /home/tjnelson/apache/httpd-2.0.50<br>  ./configure --enable-module=so \<br>        --with-apxs2=/usr/local/apache2/bin/apxs \<br>        --enable-ssl --enable-includes --sysconfdir=/etc/httpd \<br>        --enable-proxy  (optional)<br>   make<br></pre>
                </td>
            </tr>
        </tbody>
    </table>
    Many other options are available. Unfortunately, they are poorly documented.
    You can find a few by typing configure --help. The only way I know of to find
    the rest of them is by reading the <code> configure </code> file.
    </li>
    <li> <strong> Check httpd before installing it. </strong>
    This will ensure that the desired modules are included and that
    it can find its libraries:
    <table width="80%">
        <tbody>
            <tr>
                <td bgcolor="#eeeeee">
                <pre>   make<br>   ldd ./src/httpd   <br></pre>
                </td>
            </tr>
        </tbody>
    </table>
    It should say something like
    <table width="80%">
        <tbody>
            <tr>
                <td bgcolor="#eeeeee">
                <pre>   libpam.so.0 =&gt; /lib/libpam.so.0 (0x40028000)<br>   libcrypt.so.1 =&gt; /lib/libcrypt.so.1 (0x40031000)<br>   libresolv.so.2 =&gt; /lib/libresolv.so.2 (0x40064000)<br>   libm.so.6 =&gt; /lib/libm.so.6 (0x40075000)<br>   libdl.so.2 =&gt; /lib/libdl.so.2 (0x40099000)<br>   libnsl.so.1 =&gt; /lib/libnsl.so.1 (0x4009d000)<br>   libexpat.so.0 =&gt; /usr/lib/libexpat.so.0 (0x400b3000)<br>   libc.so.6 =&gt; /lib/libc.so.6 (0x400d5000)<br>   /lib/ld-linux.so.2 =&gt; /lib/ld-linux.so.2 (0x40000000)<br></pre>
                </td>
            </tr>
        </tbody>
    </table>
    In Apache 2, the httpd in the top directory is just a script, but the
    commands are similar to Apache 1.x:
    <table width="80%">
        <tbody>
            <tr>
                <td bgcolor="#eeeeee">
                <pre>   ldd ./.libs/httpd<br>        libssl.so.0.9.6 =&gt; /usr/lib/libssl.so.0.9.6 (0x40029000)<br>        libcrypto.so.0.9.6 =&gt; /usr/lib/libcrypto.so.0.9.6 (0x40057000)<br>        libaprutil-0.so.0 =&gt; /usr/local/apache2/lib/libaprutil-0.so.0 (0x40115000)<br>        libgdbm.so.2 =&gt; /usr/lib/libgdbm.so.2 (0x4012b000)<br>        libdb-4.0.so =&gt; /usr/lib/libdb-4.0.so (0x40133000)<br>        libexpat.so.0 =&gt; /usr/lib/libexpat.so.0 (0x401cb000)<br>        libapr-0.so.0 =&gt; /usr/local/apache2/lib/libapr-0.so.0 (0x401ed000)<br>        librt.so.1 =&gt; /lib/librt.so.1 (0x4020d000)<br>        libm.so.6 =&gt; /lib/libm.so.6 (0x4021f000)<br>        libcrypt.so.1 =&gt; /lib/libcrypt.so.1 (0x40242000)<br>        libnsl.so.1 =&gt; /lib/libnsl.so.1 (0x40276000)<br>        libdl.so.2 =&gt; /lib/libdl.so.2 (0x4028c000)<br>        libpthread.so.0 =&gt; /lib/libpthread.so.0 (0x40290000)<br>        libc.so.6 =&gt; /lib/libc.so.6 (0x402a6000)<br>        /lib/ld-linux.so.2 =&gt; /lib/ld-linux.so.2 (0x40000000)<br>  ./httpd -l<br>        Compiled in modules:<br>        core.c<br>        mod_access.c<br>        mod_auth.c<br>        mod_include.c<br>        mod_log_config.c<br>        mod_env.c<br>        mod_setenvif.c<br>        mod_proxy.c<br>        proxy_connect.c<br>        proxy_ftp.c<br>        proxy_http.c<br>        mod_ssl.c<br>        prefork.c<br>        http_core.c<br>        mod_mime.c<br>        mod_status.c<br>        mod_autoindex.c<br>        mod_asis.c<br>        mod_cgi.c<br>        mod_negotiation.c<br>        mod_dir.c<br>        mod_imap.c<br>        mod_actions.c<br>        mod_userdir.c<br>        mod_alias.c<br>        mod_so.c</pre>
                </td>
            </tr>
        </tbody>
    </table>
    Notice that mod_php is not listed because it's not compiled into apache.
    <p>
    </p>
    </li>
    <li><strong>Install apache and set up configuration file  </strong>
    <p>
    Remove /usr/local/apache/conf/, /usr/local/apache2/conf/, and /etc/httpd/ if they
    exist so Apache creates a new one. It is much easier to edit a working
    httpd.conf than to modify a non-working one. Note that "--sysconfdir=/etc/httpd"
    will prevent it from creating a conf file if one already exists in the
    /etc/httpd directory.
    <table width="80%">
        <tbody>
            <tr>
                <td bgcolor="#eeeeee">
                <pre>   su<br>   mv /etc/httpd /etc/httpd.bak<br>   mv /usr/local/apache/conf /usr/local/apache/conf.bak<br>   mv /usr/local/apache2/conf /usr/local/apache2/conf.bak<br>   make install <br></pre>
                </td>
            </tr>
        </tbody>
    </table>
    Apache 2.0 installs in /usr/local/apache2/bin, /usr/local/apache2/lib, etc.
    </p>
    <p>
    Edit httpd.conf:
    </p>
    <ul>
        <li> Change the default port from 8080 to 80.
        </li>
        <li> Set the correct document root so it points to your Web pages
        <table width="80%">
            <tbody>
                <tr>
                    <td bgcolor="#eeeeee">
                    <pre>  DocumentRoot "/usr/local/httpd/htdocs"<br></pre>
                    </td>
                </tr>
            </tbody>
        </table>
        (This must be done in two places)
        </li>
        <li> Change the user from nobody to wwwrun
        </li>
        <li> Enable proxy if desired
        <table width="80%">
            <tbody>
                <tr>
                    <td bgcolor="#eeeeee">
                    <pre>    ProxyRequests On<br>    &lt;Directory proxy:*&gt;<br>        Order deny,allow<br>        Deny from all<br>        Allow from .brneurosci.org<br>    &lt;/Directory&gt;<br>    ProxyVia On<br></pre>
                    </td>
                </tr>
            </tbody>
        </table>
        </li>
        <li> Add access controls if desired
        </li>
        <li> Remove any lines that refer to php3 or php4. These often cause
        problems.
        </li>
        <li>
        Enable FollowSymlinks in /etc/httpd/httpd.conf or /usr/local/apache/conf/httpd.conf
        if there are links in the path of any html files. Make sure apache has
        execute permission in user's home directories if files are located there
        (i.e., permissions in /home should be 711), or you will get "Forbidden
        You don't have permission to access x on this server" when a browser tries
        to follow a symlink.
        </li>
        <li> Add the following at the end, if the php installation script didn't
        already add them:
        <table width="80%">
            <tbody>
                <tr>
                    <td bgcolor="#eeeeee">
                    <pre>  LoadModule php5_module        modules/libphp5.so<br>  # or, for some systems:<br>  # LoadModule php5_module        /usr/local/apache/libexec/libphp5.so<br><br>  # This line is necessary to allow inline php statements in your<br>  # html pages.<br>  AddType application/x-httpd-php .php .htm .html   <br>  #AddType application/x-httpd-php .php4<br>  AddType application/x-httpd-php-source .phps<br>  AddHandler php5-script php <br>  DirectoryIndex index.html index.php<br>  AddType text/html       php<br>  AddType application/x-httpd-php-source phps<br></pre>
                    </td>
                </tr>
            </tbody>
        </table>
        The installation script for php5 should add the appropriate php5 lines
        automatically. However, it doesn't remove the php4 lines if they're present.
        These should be removed manually, because loading two different versions of
        php simultaneously is a frequent source of problems and php crashes.
        </li>
    </ul>
    </li>
    <li>
    <strong> Start apache </strong>
    <p>
    Make a link at /usr/local/apache2/conf/, if it exists, so there's no doubt
    as to which httpd.conf it will use.
    <table width="80%">
        <tbody>
            <tr>
                <td bgcolor="#eeeeee">
                <pre> ln -s /etc/httpd/httpd.conf /usr/local/apache2/conf/httpd.conf<br></pre>
                </td>
            </tr>
        </tbody>
    </table>
    Stop the currently-running httpd (by typing "/etc/rc.d/apache stop") and start
    the new one:
    <table width="80%">
        <tbody>
            <tr>
                <td bgcolor="#eeeeee">
                <pre> cd /etc/rc.d<br> ./apache stop<br> /usr/local/apache/bin/apachectl start<br></pre>
                </td>
            </tr>
        </tbody>
    </table>
    Make sure it's running on port 80 and not 8080:
    <table width="80%">
        <tbody>
            <tr>
                <td bgcolor="#eeeeee">
                <pre> netstat -na | grep 80 <br> tcp        0      0 0.0.0.0:80            0.0.0.0:*               LISTEN      <br></pre>
                </td>
            </tr>
        </tbody>
    </table>
    Make sure the correct version is running:
    <table width="80%">
        <tbody>
            <tr>
                <td bgcolor="#eeeeee">
                <pre> ps -aux | grep http<br> root   21194  0.0  0.3 3988 1868 ? S Sep18 0:00 /usr/local/apache/bin/httpd<br> wwwrun 21197  0.0  0.3 4068 2016 ? S Sep18 0:00 /usr/local/apache/bin/httpd<br></pre>
                </td>
            </tr>
        </tbody>
    </table>
    Copy the new startup script to /etc/rc.d (or edit the old script)
    <table width="80%">
        <tbody>
            <tr>
                <td bgcolor="#eeeeee">
                <pre> cd /etc/rc.d<br> mv apache apache.bak<br> cp /usr/local/apache2/bin/apachectl /etc/rc.d/apache2<br></pre>
                </td>
            </tr>
        </tbody>
    </table>
    </p>
    </li>
    <li>
    <strong> Test apache and php </strong>
    <ol>
        <li>
        Test with a browser to see if you can reach "http://localhost"
        and "http://localhost/manual".
        Create a file called "test.php" in the htdocs directory containing the line:
        <table width="80%">
            <tbody>
                <tr>
                    <td bgcolor="#eeeeee">
                    <pre> &lt;? phpinfo(); ?&gt;<br></pre>
                    </td>
                </tr>
            </tbody>
        </table>
        It should be:
        <table width="80%">
            <tbody>
                <tr>
                    <td bgcolor="#eeeeee">
                    <pre> -rw-r--r--    1 root     root           17 Sep 18 21:29 test.php<br></pre>
                    </td>
                </tr>
            </tbody>
        </table>
        </li>
        <li>
        Copy your html files into the htdocs directory and see if you can reach
        "http://yoursite.com/test.php".
        It should print a purple PHP page showing the current version of php
        and current setup, showing today as the build date.
        This may take a couple of tries -- for example, it
        may work with "myhost.somewhere.org" but not with "localhost/test.php".
        <br>
        Now copy your html files to /usr/local/apache/htdocs.
        </li>
        <li>Install the new startup script:
        <table width="80%">
            <tbody>
                <tr>
                    <td bgcolor="#eeeeee">
                    <pre> mv /etc/rc.d/apache /etc/rc.d/apache.bak<br> cp /usr/local/apache/bin/apachectl /etc/rc.d/apache<br></pre>
                    </td>
                </tr>
            </tbody>
        </table>
        One annoyance with apache is that if there's a problem in your httpd.conf
        file, quite often it will simply say
        <table width="80%">
            <tbody>
                <tr>
                    <td bgcolor="#eeeeee">
                    <pre> ./apachectl start: httpd could not be started<br></pre>
                    </td>
                </tr>
            </tbody>
        </table>
        giving you no clue what the problem is.
        </li>
        <li> If you have other servers: lather, rinse, repeat.
        </li>
    </ol>
    </li>
</ol>
<p>
</p>
<h3>Problems </h3>
<p>
</p>
<ol>
    <li> <strong>Blank screen</strong>
    <p> Users see a blank screen or unprocessed
    php directives when viewing any php page, including test.php.
    <br>
    <strong> Solution: </strong>
    Check the apache logs (error_log). One possibility is that php
    is crashing. The first line in the log below shows that PHP is
    configured correctly. The second line shows that it's crashing.
    <table width="80%">
        <tbody>
            <tr>
                <td bgcolor="#eeeeee">
                <pre> Apache/2.0.48 (Unix) mod_ssl/2.0.48 OpenSSL/0.9.7c PHP/4.3.1 <br>         PHP/5.0.3 configured -- resuming normal operations<br> [notice] child pid 2257 exit signal Segmentation fault (11)<br></pre>
                </td>
            </tr>
        </tbody>
    </table>
    One solution is to recompile and reinstall php.
    Another reason php may crash is that your httpd.conf file contains
    references to both php4 and php5. If you try to load both versions,
    it will crash.
    It's also important to remove any pre-existing versions of php
    that may be on your system, e.g.:
    <table width="80%">
        <tbody>
            <tr>
                <td bgcolor="#eeeeee">
                <pre> mv /usr/bin/php /usr/bin/php.bak<br> ln -s /usr/local/bin/php /usr/bin/php </pre>
                </td>
            </tr>
        </tbody>
    </table>
    to make sure the system is using the correct one.
    <br><br>
    <strong>
    Additional troubleshooting steps
    </strong>
    <br><br>
    To troubleshoot php, it is necessary to trick it into printing
    error messages.
    </p>
    <ul>
        <li> The easiest way to know whether apache has loaded the php
        module is to include the "LoadModule" line twice. It should
        say:
        <table width="80%">
            <tbody>
                <tr>
                    <td bgcolor="#eeeeee">
                    <pre>      [warn] module php5_module is already loaded, skipping</pre>
                    </td>
                </tr>
            </tbody>
        </table>
        </li>
        <li> Click "View page source" to find out whether Apache is
        interpreting the php. If the php source code is visible,
        it means Apache is not translating the php. If you get
        an empty HTML file (&lt;HTML&gt;&lt;body&gt;&lt;/body&gt;&lt;/html&gt;)
        it is bad news.  The php website does not acknowledge this
        problem, even though it seems to be very widespread. Typically there
        are no error messages regardless of the settings in php.ini,
        and all php pages produce a white blank page and nothing else.
        The problem is that no error messages are produced,
        making it quite difficult to diagnose. The blank page problem
        will sometimes occur on one computer but not another.
        </li>
        <li> From the command line, go to the htdocs directory and type
        <table width="80%">
            <tbody>
                <tr>
                    <td bgcolor="#eeeeee">
                    <pre>php test.php</pre>
                    </td>
                </tr>
            </tbody>
        </table>
        <br>
        On a computer in which php is properly set up, this should
        print several pages of text. On a computer that has the blank
        screen problem, you will get something like this:
        <table width="80%">
            <tbody>
                <tr>
                    <td bgcolor="#eeeeee">
                    <pre>Fatal error: Call to undefined function phpinfo() in <br>/usr/local/apache2/htdocs/test.php on line 1</pre>
                    </td>
                </tr>
            </tbody>
        </table>
        Finally, a real error message. This message means that
        either the wrong php is being executed, or that php
        is using an old library somewhere that doesn't have the
        phpinfo function. You have to find this library and
        eliminate it.
        </li>
        <li> Well, this is as far as I have gotten so far with this bug.
        </li>
    </ul>
    </li>
    <li> <strong> Pages not being rendered in Unicode. </strong> <br>
    Be sure to comment out the default charset in httpd.conf; otherwise,
    pages will appear in 8859-1 (Western) characters even when the user's
    browser is set to Auto-Detect.
    <table width="80%">
        <tbody>
            <tr>
                <td bgcolor="#eeeeee">
                <pre>#AddDefaultCharset ISO-8859-1</pre>
                </td>
            </tr>
        </tbody>
    </table>
    </li>
    <li> <strong> Compilation error in apache. </strong> <br>
    <table width="80%">
        <tbody>
            <tr>
                <td bgcolor="#eeeeee">
                <pre>ssl_engine_pphrase.c: In function 'ssl_pphrase_Handle_CB':<br>ssl_engine_pphrase.c:683: error: 'PEM_F_DEF_CALLBACK' undeclared \<br> (first use in this function)<br></pre>
                </td>
            </tr>
        </tbody>
    </table>
    Edit ./modules/ssl/ssl_engine_pphrase.c and change all occurrences of
    PEM_F_DEF_CALLBACK to PEM_F_PEM_DEF_CALLBACK.
    </li>
    <li> <strong> Apache does not start up. </strong> <br>
    <table width="80%">
        <tbody>
            <tr>
                <td bgcolor="#eeeeee">
                <pre>API module structure `php5_module' in file /usr/lib64/apache2/libphp5.so \<br>   is garbled - perhaps this is not an Apache module DSO?<br></pre>
                </td>
            </tr>
        </tbody>
    </table>
    This means you have to compile php and apache2 again, using a different apxs2 script.
    This script might be called apxs or apxs2. In this case, it happened to be called
    apxs, but was actually apxs2.
    <table width="80%">
        <tbody>
            <tr>
                <td bgcolor="#eeeeee">
                <pre>cd; cd apache/httpd-2.0.50<br>find . | grep apxs<br>su<br>cp ./support/apxs /usr/sbin/apxs<br>chmod a+x /usr/sbin/apxs<br>exit<br>cd; cd php/php-5.2.1<br>./configure --with-apxs2=/usr/sbin/apxs \<br>  --with-apache2=/home/tjnelson/apache/httpd-2.0.50 \<br>  --enable-shared<br>make clean<br>make<br>su<br>make install<br>libtool --finish /home/tjnelson/php/php-5.2.1/libs<br>make install  (It gives a more informative message the second time.)<br>exit<br><br>cd; cd apache/httpd-2.0.50<br>./configure --enable-module=so --with-apxs2=/usr/sbin/apxs \ <br>   --enable-ssl --enable-includes --sysconfdir=/etc/httpd<br>make clean<br>make<br>su<br>make install<br>exit<br><br>cd;  cd php/php-5.2.1<br>find . | grep libphp5.so<br>cp /usr/lib64/apache2/libphp5.so  /usr/lib64/apache2/libphp5.so.bak<br>cp ./libs/libphp5.so   /usr/lib64/apache2/libphp5.so<br>exit<br></pre>
                </td>
            </tr>
        </tbody>
    </table>
    </li>
</ol><img src ="http://www.phpweblog.net/linxiaobo/aggbug/7074.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.phpweblog.net/linxiaobo/" target="_blank">小博</a> 2010-02-02 17:02 <a href="http://www.phpweblog.net/linxiaobo/archive/2010/02/02/7074.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>linux学习小步走(3)</title><link>http://www.phpweblog.net/linxiaobo/archive/2010/02/02/7073.html</link><dc:creator>小博</dc:creator><author>小博</author><pubDate>Tue, 02 Feb 2010 08:03:00 GMT</pubDate><guid>http://www.phpweblog.net/linxiaobo/archive/2010/02/02/7073.html</guid><wfw:comment>http://www.phpweblog.net/linxiaobo/comments/7073.html</wfw:comment><comments>http://www.phpweblog.net/linxiaobo/archive/2010/02/02/7073.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.phpweblog.net/linxiaobo/comments/commentRss/7073.html</wfw:commentRss><trackback:ping>http://www.phpweblog.net/linxiaobo/services/trackbacks/7073.html</trackback:ping><description><![CDATA[<div id="threadtitle">
<h1>linux卸载apache php mysql</h1>
<div class="threadtags">
<a  href="http://bbs.phphubei.com/tag-apache.html" target="_blank">apache</a>, <a  href="http://bbs.phphubei.com/tag-linux.html" target="_blank">linux</a>, <a  href="http://bbs.phphubei.com/tag-mysql.html" target="_blank">mysql</a>, <a  href="http://bbs.phphubei.com/tag-php.html" target="_blank">php</a>, <a  href="http://bbs.phphubei.com/tag-%E5%8D%B8%E8%BD%BD.html" target="_blank">卸载</a></div>
</div>
<div class="t_msgfontfix">
<table cellpadding="0" cellspacing="0">
    <tbody>
        <tr>
            <td class="t_msgfont" id="postmessage_9015">卸载步骤如下： <br>
            卸载<span href="http://bbs.phphubei.com/tag.php?name=Mysql" onclick="tagshow(event)" class="t_tag">Mysql</span><br>
            [root@localhost ~]# rpm -qa|grep my<span href="http://bbs.phphubei.com/tag.php?name=sql" onclick="tagshow(event)" class="t_tag">sql</span><br>
            mod_auth_mysql-2.6.1-2.2<br>
            <span href="http://bbs.phphubei.com/tag.php?name=php" onclick="tagshow(event)" class="t_tag">php</span>-mysql-4.3.9-3.15<br>
            <br>
            mysql-devel-4.1.20-1.RHEL4.1<br>
            mysql-4.1.20-1.RHEL4.1<br>
            mysqlclient10-3.23.58-4.RHEL4.1<br>
            libdbi-dbd-mysql-0.6.5-10.RHEL4.1<br>
            <br>
            说明：rpm &#8211;qa | grep mysql <span href="http://bbs.phphubei.com/tag.php?name=%E5%91%BD%E4%BB%A4" onclick="tagshow(event)" class="t_tag">命令</span>是为了把mysql相关的包都列出来，我上面的例子是<span href="http://bbs.phphubei.com/tag.php?name=Linux" onclick="tagshow(event)" class="t_tag">Linux</span> AS4默认安装mysql的rpm<span href="http://bbs.phphubei.com/tag.php?name=%E8%BD%AF%E4%BB%B6" onclick="tagshow(event)" class="t_tag">软件</span>包列表，如果是别的Linux版本列出来的列表有可能会不一样，不过不用担心，不管是什么，卸载都从最下面的一个包开始，直到卸载掉第一个为止。<br>
            <br>
            比如：在这个例子中，我们应该先卸载libdbi-dbd-mysql-0.6.5-10.RHEL4.1 方法如下：rpm &#8211;e -dbd-mysql-0.6.5-10.RHEL4.1<br>
            <br>
            说明：rpm &#8211;e 是卸载rpm包的命令，后面是包名称，最后的版本号是不用打的，比如我们下一步卸载mysqlclient10-3.23.58-4.RHEL4.1包，方法如下：<br>
            <br>
            rpm &#8211;e mysqlclient<br>
            <br>
            卸载<span href="http://bbs.phphubei.com/tag.php?name=Apache" onclick="tagshow(event)" class="t_tag">Apache</span><br>
            [root@localhost ~]# rpm -qa|grep httpd<br>
            httpd-manual-2.0.52-25.ent<br>
            system-config-httpd-1.3.1-1<br>
            httpd-2.0.52-25.ent<br>
            httpd-suexec-2.0.52-25.ent<br>
            <br>
            说明：方法跟卸载Mysql一样，不用说了吧<br>
            <br>
            卸载PHP<br>
            [root@localhost ~]# rpm -qa|grep php<br>
            php-odbc-4.3.9-3.15<br>
            php-4.3.9-3.15<br>
            php-mysql-4.3.9-3.15<br>
            php-pear-4.3.9-3.15<br>
            php-ldap-4.3.9-3.15<br>
            php-pgsql-4.3.9-3.15<br>
            <br>
            说明：方法跟卸载Mysql一样，不用说了吧<br>
            <br>
            注意：卸载的时候如果卸载不掉，<span href="http://bbs.phphubei.com/tag.php?name=%E7%B3%BB%E7%BB%9F" onclick="tagshow(event)" class="t_tag">系统</span>一般会提示包的依赖关系，并且列出依赖的包的名称，先卸载提示依赖的包就可以了。<br>
            <br>
            如果实在实在有卸载不掉的包，可以加—nodeps这个<span href="http://bbs.phphubei.com/tag.php?name=%E5%8F%82%E6%95%B0" onclick="tagshow(event)" class="t_tag">参数</span>来卸载，比如我们卸载php-4.3.9-3.15，实在卸不掉了。<br>
            <br>
            就用：<br>
            [root@localhost ~]# rpm -e php-4.3.9-3.15 &#8211;nodeps</td>
        </tr>
    </tbody>
</table>
</div><img src ="http://www.phpweblog.net/linxiaobo/aggbug/7073.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.phpweblog.net/linxiaobo/" target="_blank">小博</a> 2010-02-02 16:03 <a href="http://www.phpweblog.net/linxiaobo/archive/2010/02/02/7073.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>linux学习小步走(2)</title><link>http://www.phpweblog.net/linxiaobo/archive/2010/02/02/7072.html</link><dc:creator>小博</dc:creator><author>小博</author><pubDate>Tue, 02 Feb 2010 07:04:00 GMT</pubDate><guid>http://www.phpweblog.net/linxiaobo/archive/2010/02/02/7072.html</guid><wfw:comment>http://www.phpweblog.net/linxiaobo/comments/7072.html</wfw:comment><comments>http://www.phpweblog.net/linxiaobo/archive/2010/02/02/7072.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.phpweblog.net/linxiaobo/comments/commentRss/7072.html</wfw:commentRss><trackback:ping>http://www.phpweblog.net/linxiaobo/services/trackbacks/7072.html</trackback:ping><description><![CDATA[安装mysql的时候遇到一点麻烦，刚开始的时候使用的是rpm的安装文件，因为没有下载到server，只是client，所以只好换了源代码的安装包，参照的教程是http://www.bitscn.com/server/app/200607/51537.html&nbsp; <br>另外也参照了：<br><span style="background-color: #ffe0e6;">&nbsp; shell&gt; &nbsp; groupadd &nbsp; mysql（不要变这个名字） &nbsp; <br> &nbsp; shell&gt; &nbsp; useradd &nbsp; -g &nbsp; mysql &nbsp; mysql（不要变这个名字） &nbsp; <br> &nbsp; shell&gt; &nbsp; tar &nbsp; zxvf &nbsp; mysql-VERSION.tar.gz &nbsp; <br> &nbsp; shell&gt; &nbsp; cd &nbsp; mysql-VERSION &nbsp; <br> &nbsp; shell&gt; &nbsp; ./configure &nbsp; --prefix=/usr/local/mysql &nbsp; --with-charset=gb2312 &nbsp; <br> &nbsp; shell&gt; &nbsp; make &nbsp; <br> &nbsp; shell&gt; &nbsp; make &nbsp; install &nbsp; <br> &nbsp; shell&gt; &nbsp; scripts/mysql_install_db &nbsp; <br> &nbsp; shell&gt; &nbsp; chown &nbsp; -R &nbsp; root &nbsp;  &nbsp; /usr/local/mysql &nbsp; <br> &nbsp; shell&gt; &nbsp; chown &nbsp; -R &nbsp; mysql &nbsp; /usr/local/mysql/var &nbsp; <br> &nbsp; shell&gt; &nbsp; chgrp &nbsp; -R &nbsp; mysql &nbsp; /usr/local/mysql &nbsp; <br> &nbsp; shell&gt; &nbsp; cp &nbsp; support-files/my-medium.cnf &nbsp; /etc/my.cnf &nbsp; <br> &nbsp; shell&gt; &nbsp; /usr/local/mysql/bin/mysqld_safe &nbsp; --user=mysql &nbsp; &amp; &nbsp; <br> &nbsp;  &nbsp; <br> &nbsp; 这样进入： &nbsp; <br> &nbsp; shell&gt; &nbsp; cd &nbsp; /use/local/mysql/bin &nbsp; <br> &nbsp; shell&gt; &nbsp; ./mysql &nbsp; -u &nbsp; root &nbsp; -p（我也不知道问什么要加个./） &nbsp; <br> &nbsp; enter &nbsp; password:回车就OK了 &nbsp; <br> &nbsp;  &nbsp; <br> &nbsp; 开机自动加载MySQL &nbsp; <br> &nbsp;  &nbsp; <br> &nbsp; /usr/local/mysql/share/mysql/mysql.server复制到/etc/init.d &nbsp; <br> &nbsp; shell&gt;chkconfig &nbsp; &#8211;add &nbsp; mysql.server使MySQL在开机时自动运行&nbsp; <br><br></span>中间怎么装mysql都装不上，原来是出了这个错误：<span style="background-color: #ffe0e6;"><br></span><strong> No curses/termcap library found</strong><br><br>最后使用这个命令排除：<br><span style="background-color: #d8fff8;">yum install libcurses-devel<br>yum install ncurses5-devel</span><br>(这两个其中之一)<br>最后安装：<br><span style="background-color: #d8fff8;">./configure --prefix=/usr/local/mysq;make;make install</span><br><img src ="http://www.phpweblog.net/linxiaobo/aggbug/7072.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.phpweblog.net/linxiaobo/" target="_blank">小博</a> 2010-02-02 15:04 <a href="http://www.phpweblog.net/linxiaobo/archive/2010/02/02/7072.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>linux学习小步走(1)</title><link>http://www.phpweblog.net/linxiaobo/archive/2010/02/02/7071.html</link><dc:creator>小博</dc:creator><author>小博</author><pubDate>Tue, 02 Feb 2010 02:49:00 GMT</pubDate><guid>http://www.phpweblog.net/linxiaobo/archive/2010/02/02/7071.html</guid><wfw:comment>http://www.phpweblog.net/linxiaobo/comments/7071.html</wfw:comment><comments>http://www.phpweblog.net/linxiaobo/archive/2010/02/02/7071.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.phpweblog.net/linxiaobo/comments/commentRss/7071.html</wfw:commentRss><trackback:ping>http://www.phpweblog.net/linxiaobo/services/trackbacks/7071.html</trackback:ping><description><![CDATA[终于受不了一直当个低等菜鸟了，所以决定系统的学下知识，至少把自己的代码库建起来~<br>首先第一步是学linux，今天开始装centOs，用虚拟机来的~步骤都比较简单，一路默认就行啦<br>装上之后，开始装apache~<br>这时候我找到一个教程http://os.51cto.com/art/200912/168162.htm。<br><br>1. 到这里下载apache在Linux/unix下的源码(*.tar.bz2)：http://httpd.apache.org/download.cgi<br><br>我在自己的用户【lin】下载了apache的2.2.14版。<br><br>2. 使用用户root登录系统，打开shell窗口。<br><br>这里我出现了两个盲区：<br><br>第一，怎么在图形界面打开shell窗口（我是白痴），后来找到答案是：右键在桌面上选择&#8220;<span style="background-color: #ffe0f2;">打开终端</span>&#8221;即可。<br>第二，为什么必须要root用户才能安装呢？搜索到的答案是：<br><span style="background-color: #ffe0f2;">1. apache 一般要 listen 80 port, 這個運作需要特權, 所以得使用 root 身分. 不過後續服務運作 apache daemon 都會切換成為一般身分提供服務運作.<br>
<br>
2. </span><span style="background-color: #ffe0f2;">普通用户无法打开1024以下的端口。</span><br><br>3.<span style="background-color: #ffe0f2;">那为什么使用3306端口的mysql也是root身份？</span><span style="background-color: #ffe0f2;">因為只是啟動 mysqld_safe script 是使用 root 身分執行, 所以執行身分當然是 root. 不過一般都配置 mysql daemon 用 mysql 這個一般身分運作, 所以最後服務運作都還是以一般帳號提供服務來運作.</span><br><br>我没有尝试在【lin】用户下安装，不清楚具体的表现为何，我估计再使用上，端口会出现错误吧。<br><br><br>3. 进入源码文件所在的目录,执行 # tar -jxvf apache*.tar.bz2。<br>这部分我安装正常<br><br>4. 进入解压后的目录，执行 # ./configure、# make、# make install 、# make clean、# make distclean 即可完成安装。<br>【make clean是清除之前编译的可执行文件及配置文件。make distclean要清除所有生成的文件】<br>安装正常<br><br>5. 软件安装的位置是 /usr/local/apache*，配置环境时需要到这里去找相关配置文件。<br>跑到目录下找，果然看到了。<br><br><br><img src ="http://www.phpweblog.net/linxiaobo/aggbug/7071.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.phpweblog.net/linxiaobo/" target="_blank">小博</a> 2010-02-02 10:49 <a href="http://www.phpweblog.net/linxiaobo/archive/2010/02/02/7071.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>ORA-12170 TNS 连接超时</title><link>http://www.phpweblog.net/linxiaobo/archive/2010/01/08/7028.html</link><dc:creator>小博</dc:creator><author>小博</author><pubDate>Fri, 08 Jan 2010 01:54:00 GMT</pubDate><guid>http://www.phpweblog.net/linxiaobo/archive/2010/01/08/7028.html</guid><wfw:comment>http://www.phpweblog.net/linxiaobo/comments/7028.html</wfw:comment><comments>http://www.phpweblog.net/linxiaobo/archive/2010/01/08/7028.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.phpweblog.net/linxiaobo/comments/commentRss/7028.html</wfw:commentRss><trackback:ping>http://www.phpweblog.net/linxiaobo/services/trackbacks/7028.html</trackback:ping><description><![CDATA[<p>1.开始----程序-----oracle------配置和移植工具-----Net Manager----本地----服务命名---ora11(这个是我的专用服务器) 把右边下面的主机名改成192.168.1.102</p>
<p>2.开始----程序-----oracle------配置和移植工具-----Net Manager----本地----监听程序---同样把右边下面的主机名改成192.168.1.102</p>
<p>重新连接又报了另一个错误</p>
<p>ora-12541:TNS:没有监听器<br>1.cmd---services.msc----以Oracle开头TNListener结尾的服务启动它<br>2.如果还没有启动，修改注册表cmd--regedit<br>找到HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleTnsListener<br>添加一个字符串imagepath值为TNSLSNR.exe的路径<br>我的是D:\Oracle\Administrator\product\11.1.0\db_1\BIN\TNSLSNR<br>终于可以连接上了，高兴！</p>
<p><br>如果在本机可以正常使用，可是到局域网中的其他机器就出现&#8220;ORA-12170:TNS:连接超时<br>解决方法：</p>
<p>1.cmd-----ping ip地址 查看网络问题，看能否ping通</p>
<p>2.cmd-----tnsping&nbsp;&nbsp; ip地址（或者是服务器的实例名SID）如果报&#8220;TNS-12535:操作超时&#8221;，可能是服务器端防火墙&nbsp;&nbsp;&nbsp; 没有关闭</p>
<p>3.cmd----netstat -na 查看1521端口是否关闭，如果关闭Windows XP中的防火墙设置中将1521端口设为例外</p>
<p>4.cmd----lsnrctl status&nbsp;&nbsp; lsnrctl是listener-control 监听器的缩写，查看监听的状态</p><img src ="http://www.phpweblog.net/linxiaobo/aggbug/7028.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.phpweblog.net/linxiaobo/" target="_blank">小博</a> 2010-01-08 09:54 <a href="http://www.phpweblog.net/linxiaobo/archive/2010/01/08/7028.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title> jquery+ie6的诡异问题 关于submit()</title><link>http://www.phpweblog.net/linxiaobo/archive/2009/09/17/6881.html</link><dc:creator>小博</dc:creator><author>小博</author><pubDate>Thu, 17 Sep 2009 07:10:00 GMT</pubDate><guid>http://www.phpweblog.net/linxiaobo/archive/2009/09/17/6881.html</guid><wfw:comment>http://www.phpweblog.net/linxiaobo/comments/6881.html</wfw:comment><comments>http://www.phpweblog.net/linxiaobo/archive/2009/09/17/6881.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.phpweblog.net/linxiaobo/comments/commentRss/6881.html</wfw:commentRss><trackback:ping>http://www.phpweblog.net/linxiaobo/services/trackbacks/6881.html</trackback:ping><description><![CDATA[在IE6下submit()没有作用了，其实解决办法很简单，只是不知道最后根源如何：<br><br><span style="background-color: #fefbce;">在ie6下<br>&lt;a href="javascript:;" id="aid"&gt; href&lt;/a&gt;<br><br>同时jquery bind 了 其click事件 <br>$("#aid").bind('click',function(){<br>&nbsp; &nbsp; .....<br>&nbsp; &nbsp; form.submit(); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp; &nbsp; //no return; &nbsp;&nbsp; <br>});<br><br>在这种情况下，点击 href会执行 click绑定的方法，但是 form.submit()，不会有任何反应。<br><br>后来在 添加 return false 后能正常运行......;</span><br><br><br>以上为这个诡异问题的解决文章，感谢作者。<a  href="http://blog.csdn.net/qking93415981/archive/2008/12/18/3551397.aspx">原文</a><br><br><img src ="http://www.phpweblog.net/linxiaobo/aggbug/6881.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.phpweblog.net/linxiaobo/" target="_blank">小博</a> 2009-09-17 15:10 <a href="http://www.phpweblog.net/linxiaobo/archive/2009/09/17/6881.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>在一家生活资讯网站的PHP笔试受到打击，讲一下题目吧</title><link>http://www.phpweblog.net/linxiaobo/archive/2009/07/25/6789.html</link><dc:creator>小博</dc:creator><author>小博</author><pubDate>Fri, 24 Jul 2009 18:47:00 GMT</pubDate><guid>http://www.phpweblog.net/linxiaobo/archive/2009/07/25/6789.html</guid><wfw:comment>http://www.phpweblog.net/linxiaobo/comments/6789.html</wfw:comment><comments>http://www.phpweblog.net/linxiaobo/archive/2009/07/25/6789.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.phpweblog.net/linxiaobo/comments/commentRss/6789.html</wfw:commentRss><trackback:ping>http://www.phpweblog.net/linxiaobo/services/trackbacks/6789.html</trackback:ping><description><![CDATA[以往见到过多装B的面试官，都不如今天的这位有派——笔试完了直接托前台告知请回，这算是我经历过的最丢人的一次面试吧。<br>虽然心里五味杂陈，总算是服气这次笔试的题目，确实是自己功力有限。当即在大雨里跺脚指天，想要抓一把素质，那么先把代表性的题目在这里记录一下：<br><br>1.你是网站的负责人，有一天发现网站突然出现了很多不良的访问来源，这将会对网站有不利的影响，这时，需要你设计一套拦截、屏蔽系统来处理这个问题。请设计出此套系统的基本结构图、流程图。<br><br>2.用PHP或者python，或者其他你熟悉的语言，写一个定时任务，要求每5分钟抓取一次某网站（例如：<a href="http://www.baidu.com,http://www.kuxun.com">http://www.baidu.com,http://www.kuxun.com</a>），要求当获取内容中url不同时，生成新的文件。<br><br>3.有一天突然你接到一个朋友的短信，说网站中订票功能用不了了，你会怎么解决，请详细写出解决办法。<br><br>4.请推理出现在域名为.cn的每天访问量为10人次/天的网站数量。<br><br>5.例如：（这是我上京东复制的）<br>
<tr class="">
    <td class=netInfoParamName>Host www.360buy.com<br></td>
</tr>
<tr class="">
    <td class=netInfoParamName>User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11<br></td>
</tr>
<tr class="">
    <td class=netInfoParamName>Accept */*<br></td>
</tr>
<tr class="">
    <td class=netInfoParamName>Accept-Language zh-cn,zh;q=0.5<br></td>
</tr>
<tr class="">
    <td class=netInfoParamName>Accept-Encoding gzip,deflate<br></td>
</tr>
<tr class="">
    <td class=netInfoParamName>Accept-Charset gb2312,utf-8;q=0.7,*;q=0.7<br></td>
</tr>
<tr class="">
    <td class=netInfoParamName>Keep-Alive 300<br></td>
</tr>
<tr class="">
    <td class=netInfoParamName>Connection keep-alive<br></td>
</tr>
<tr class="">
    <td class=netInfoParamName>X-Requested-With XMLHttpRequest<br></td>
</tr>
<tr class="">
    <td class=netInfoParamName>Referer http://www.360buy.com/<br></td>
</tr>
<tr class="">
    <td class=netInfoParamName>Cookie __utma=97936925.1908988227742847700.1248432869.1248432869.1248432869.1; __utmz=97936925.1248432869.1<br>.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); 360buy.com_prodlook=162988<br><br>a：如果没有host，网站能正常访问吗？<br>b：Accept-Encoding gzip,deflate代表什么，什么时候可以使用？<br></td>
</tr>
<br>大概写对了，请教同事后再来写答案。<br><br>有同仁会给我回复吗？ 
<img src ="http://www.phpweblog.net/linxiaobo/aggbug/6789.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.phpweblog.net/linxiaobo/" target="_blank">小博</a> 2009-07-25 02:47 <a href="http://www.phpweblog.net/linxiaobo/archive/2009/07/25/6789.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>