<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://jackxiang.com/post//</link>
<title><![CDATA[[mb_string]linux 安装 PHP APACHE mb_string]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Wed, 04 Apr 2007 00:11:07 +0000</pubDate> 
<guid>http://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	linux 安装 PHP APACHE<br/>由于perl在WINDOWS下的资料实在太少了，所以想切换到LINUX下去玩，结果发现根据麻烦和讨厌。<br/><br/>首先想锻炼一下自己，试一试用终端模式进行 www.shengfang.org<br/><br/>lynx http://apache.freelamp.com/httpd/httpd-2.0.54.tar.gz<br/> mv httpd-2.0.54.tar.gz ./tmp/httpd-2.0.54.tar.gz<br/><br/>结果TAR ZXVF 总是报错： www.shengfang.org<br/> tar: This does not look like a tar archive<br/>tar: Skipping to next header<br/>tar: Archive contains obsolescent base-64 headers<br/>tar: Error exit delayed from previous errors<br/><br/>到WINDOWS下也下载一个试验，结果<br/>! &nbsp; F:&#92;Documents and Settings&#92;shengfang&#92;桌面&#92;httpd-2.0.54.tar.bz2: 压缩文件损坏<br/><br/>又换了一个<br/>lynx http://mirror.vmmatrix.net/apache/dist/httpd/httpd-2.0.54.tar.gz<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Download Options (Lynx Version 2.8.5dev.7)<br/><br/>Downloaded link: http://mirror.vmmatrix.net/apache/dist/httpd/httpd-2.0.54.tar.gz<br/>Suggested file name: httpd-2.0.54.tar.gz<br/><br/>Standard download options: www.shengfang.org<br/> &nbsp; Save to disk<br/>Local additions:<br/> &nbsp; View with less<br/><br/>总算下载好了，可是找了半天资料，也不知道怎么按照REDHAT9的安装进行覆盖。想想只好算了。本来想卸载原来的HTTPD的。 www.shengfang.org<br/><br/>然后下载了一个PHPMYADMIN<br/>您配置文件中的设定与 MySQL 默认权限账户对应(没有密码的 root)。您的 MySQL 服务器使用默认值运行当然没有问题，不过这样的话，被入侵的可能性会很大，您真的应该先补上这个安全漏洞。<br/>没有发现 PHP 的扩展设置mbstring， 而当前系统好像在使用宽字符集。没有 mbstring 扩展的 phpMyAdmin 不能正确识别字符串，可能产生不可意料的结果.<br/><br/>OK，增加密码 www.shengfang.org<br/>MySQL默认没有密码，安装完毕增加密码的重要性是不言而喻的。<br/>　　1、命令<br/>　　usr/bin/mysqladmin -u root password 'new-password'<br/>　　格式：mysqladmin -u用户名 -p旧密码 password 新密码<br/>　　2、例子<br/>　　例1：给root加个密码123456。<br/>　　键入以下命令 ：<br/>　　[root at test1 local]# /usr/bin/mysqladmin -u root password 123456<br/>　　注：因为开始时root没有密码，所以-p旧密码一项就可以省略了。<br/>　　3、测试是否修改成功<br/>　　 1）不用密码登录<br/>　　[root@test1 local]# mysql<br/>　　ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)<br/>　　显示错误，说明密码已经修改。<br/>　　2）用修改后的密码登录<br/>　　[root@test1 local]# mysql -u root -p<br/>　　Enter password: (输入修改后的密码123456)<br/>　　Welcome to the MySQL monitor dot 　Commands end with ; or &#92;g.<br/>　　Your MySQL connection id is 4 to server version: 4.0.16-standard<br/>　　Type 'help;' or '&#92;h' for help. Type '&#92;c' to clear the buffer.<br/>　　mysql> www.shengfang.org<br/>　　成功！<br/>　　这是通过mysqladmin命令修改口令，也可通过修改库来更改口令。<br/><br/>但是MBSTRING就是不行，所有的资料都是说很简单<br/>win系统:<br/>打开c:&#92;windows&#92;php.ini<br/>把 ;extension=php_mbstring.dll 改成 extension=php_mbstring.dll<br/>*nix:<br/>打开/etc/php.ini<br/>把 ;extension=php_mbstring.so 改成 extension=php_mbstring.so<br/><br/>结果我的PHP.INI只有 www.shengfang.org<br/>;;;;;;;;;;;;;;;;;;;;;;<br/>; Dynamic Extensions ;<br/>;;;;;;;;;;;;;;;;;;;;;; www.shengfang.org<br/>;<br/>; If you wish to have an extension loaded automatically, use the following<br/>; syntax:<br/>;<br/>; &nbsp; extension=modulename.extension<br/>;<br/>; For example:<br/>;<br/>; &nbsp; extension=msql.so<br/>;<br/>; Note that it should be the name of the module only; no directory information<br/>; needs to go here. &nbsp;Specify the location of the extension with the<br/>; extension_dir directive above.<br/><br/>;;;; www.shengfang.org<br/>; Note: For Red Hat Linux, packaged extension modules are now loaded via<br/>; the ini files in the directory /etc/php.d.<br/>;;;;<br/>但是里面只有SNMP.INI PQSQL.INI ODBC.INI MYSQL.INI LDAP.INI IMAP.INI<br/>对应于/usr/lib/php4/也只有<br/>imap.so &nbsp;ldap.so &nbsp;mysql.so &nbsp;odbc.so &nbsp;pgsql.so &nbsp;snmp.so<br/><br/>到网上找mb_string.so也找不到下载～～～～～～～<br/><br/>最终解决：<br/>自行编译 PHP 源码 <div class="quote hidebox"><div class="quote-title">隐藏内容</div><div class="quote-content">这部分内容只能在登入之后看到。请先  <a href="http://jackxiang.com/login.php?job=register">注册</a> 或 <a href="http://jackxiang.com/login.php">登入</a> </div></div><br/><br/>增加 MBSTRING支持<br/><br/>LINUX下查找文件 www.shengfang.org<br/>透过文件名查法︰<br/>　　这个方法说起来就和在WINDOWS下查 文件一样容易理解了。如果你把这个文件放在单个的活页夹里面，只要使用常见的“ls"命令就能方便的查出来，那么使用“find”命令来查它就不能给你留下深刻的印象，毕竟“find”命令的强大功能不止这个。如果知道了某个文件的文件名，而不知道这个文件放到哪个活页夹，甚至是层层套嵌的活页夹里。举例说明，假设你忘记了httpd.conf这个文件在系统的哪个目录下，甚至在系统的某个地方也不知道，则这是可以使用如下命令︰<br/>　　find / -name httpd.conf 
]]>
</description>
</item><item>
<link>http://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] [mb_string]linux 安装 PHP APACHE mb_string]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>