<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Willin Wang &#187; php</title>
	<atom:link href="http://www.willin.org/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.willin.org</link>
	<description>长岛冰泪的前端开发原创博客</description>
	<lastBuildDate>Sun, 05 Sep 2010 03:02:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	
<!-- Start Of Script Generated By WP-PostViews Plus -->
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js'></script>
<script type="text/javascript">
/* <![CDATA[ */
/* ]]> */
</script>
<!-- End Of Script Generated By WP-PostViews Plus -->
	<item>
		<title>Additional Learning on website1论文</title>
		<link>http://www.willin.org/develop/niit/add-onweb1/</link>
		<comments>http://www.willin.org/develop/niit/add-onweb1/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 03:07:48 +0000</pubDate>
		<dc:creator>长岛冰泪</dc:creator>
				<category><![CDATA[NIIT]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[大学]]></category>
		<category><![CDATA[学习]]></category>

		<guid isPermaLink="false">http://willin.org/?p=221</guid>
		<description><![CDATA[Revise PHP Configuration From Remote Linux Server
&#8212; A Simple Useful Tutorial for Webhosting
（节选）
Definition
       Linux: a free Unix-type operating system originally created by Linus Torvalds with the assistance of developers around the world.【<a href='http://www.willin.org/develop/niit/add-onweb1/' class='read-more'>继续阅读</a>】]]></description>
			<content:encoded><![CDATA[<h2 style="text-align: center;">Revise PHP Configuration From Remote Linux Server</h2>
<h4 style="text-align: right;">&#8212; A Simple Useful Tutorial for Webhosting</h4>
<p style="text-align: center;">（节选）</p>
<h3>Definition</h3>
<p>       Linux: a free Unix-type operating system originally created by Linus Torvalds with the assistance of developers around the world.</p>
<p>SSH: Secure Shell</p>
<p>PHP: Hypertext Preprocessor</p>
<h4>Q&amp;A</h4>
<ol>
<li>Is Linux Interface Graphical User Interface?<br />
No, Linux is like MS-DOS. You need to type in commands to complete operation.</li>
<li>Then, why so many people choose Linux?<br />
Linux is open-source. Besides, it runs fast, stable and saves hard device resources.</li>
<li>How can a computer with Linux OS be a webhosting server?<br />
The common environment is LAMP: Linux + Apache + MySQL + PHP.</li>
<li>What is the hosting service in this tutorial?<br />
<span class='wp_keywordlink'><a href="http://www.dreamhost.com/r.cgi?597308" title="DreamHost美国著名网络服务商" rel="nofollow" target="_blank">DreamHost</a></span>, or “DH” for short. (Visit my blog willin.org for detail)</li>
<li>Where can I get a LAMP web hosting server?<br />
<a href="http://www.Wiwill.com">www.Wiwill.com</a> (for Chinese).</li>
<li>What does “<span class='wp_keywordlink_affiliate'><a href="http://www.willin.org/tag/php/" title="查看 php 的全部文章" target="_blank">php</a></span>.ini” do?<br />
This file controls many aspects of PHP&#8217;s behavior.</li>
</ol>
<h3>Overview</h3>
<p>This term I’ve got a brief understanding of Linux from <a href="http://www.niit.com.cn/students">www.niit.com.cn/students</a>. Coincidently, I have great interests in web developing and my website hosting server is Linux Operating System. So, I have further learned Linux especially remote server technology on webhosting.</p>
<p>DreamHost default setting of maximum allowed size for uploaded files is only 7MB, and I can’t even upload a short video. After learned about Linux, I have tried to revise my PHP configuration. And I made it after trying a lot.</p>
<p>In this tutorial, I use my DH web server as an example. Of course, for almost every Linux web server, it won’t be no use if you follow my instructions step by step.</p>
<h4>Notice:</h4>
<p>Don’t make change if you don’t know how it behaves.</p>
<p>If your website server is under safe mode, do not make any change and it won’t perform well. If not, don’t run your it in safe mode unless unexpected occasions.</p>
<h3>Warning:</h3>
<p>       If your hosting is in DH, you must know that: DH sharing servers do not accept Debug Mode. In season and out of season, once you make it to Debug Mode, your website will be shut down immediately and your file will be deleted for good.</p>
<h2 style="text-align: left;">Topic</h2>
<ol>
<li>To adapt your own <span class='wp_keywordlink_affiliate'><a href="http://www.willin.org/tag/php/" title="查看 php 的全部文章" target="_blank">php</a></span> configuration, we need a SSH account first. If you already have one, skip this step.<br />
Login in DreamHost Web Panel (<a href="http://panel.dramhost.com">http://panel.dramhost.com</a>).<br />
Choose “Users – Manage Users”, choose one to edit.<br />
Find “User Account Type” and tick “Shell account – allows SFTP/FTP plus ssh access”.<br />
Save changes.</li>
<li>Download PuTTY (a SSH client software), run PuTTYPortable.exe<br />
(You can find it easily from Google.com)<br />
<a rel="lightbox[1]" href="http://willin.org/wp-content/uploads/2010/01/1.jpg" class="highslide-image" onclick="return hs.expand(this);"><img class="alignnone size-full wp-image-222" title="1- PuTTY" src="http://willin.org/wp-content/uploads/2010/01/1.jpg" alt="" width="466" height="448" /></a><br />
Type FTP address in “Host <span style="text-decoration: underline;">N</span>ame(or IP address)”<br />
Port use “22” if failure, change it for “21”.<br />
Type in a name or click “Save” directly.</li>
<li>Click “<span style="text-decoration: underline;">O</span>pen”. Type in your Username and Password.<br />
<strong>Notice:</strong><br />
No “*” when you typing in your password.<br />
If you login in successfully, you will see the interface showing “login as: ****” like this snapshot.<br />
Else you have to try it again.<br />
<a rel="lightbox[1]" href="http://willin.org/wp-content/uploads/2010/01/2.jpg" class="highslide-image" onclick="return hs.expand(this);"><img class="alignnone size-thumbnail wp-image-223" title="2-loginUI" src="http://willin.org/wp-content/uploads/2010/01/2-500x314.jpg" alt="" width="500" height="314" /></a></li>
<li>Type in the command: mkdir $HOME/example.com/cgi-bin↙<br />
(Make a new cgi-bin fold under your domain root.)<br />
<strong>Notice:<br />
</strong>i. Replace example.com of your domain name.<br />
ii. “↙” means Enter.<br />
Same in the below.</li>
<li>Type in: cp /etc/<span class='wp_keywordlink_affiliate'><a href="http://www.willin.org/tag/php/" title="查看 php 的全部文章" target="_blank">php</a></span>5/cgi/php.ini $HOME/example.com/cgi-bin/php.ini↙<br />
(Copy your old php.ini to your website category.)</li>
<li>Type in: cat &lt;&lt; EOF &gt; $HOME/example.com/cgi-bin/php-wrapper.cgi↙<br />
#!/bin/sh↙<br />
exec /dh/cgi-system/php5.cgi $*↙<br />
EOF↙</li>
<li>(Adapt CGI configuration. DreamHost uses FastCGI &amp; PHP.)</li>
<li>Set properties of categories and files (or skip this step and use FTP client such as FlashFTP or CuteFTP to complete it). Type in:<br />
chmod 755 $HOME/example.com/cgi-bin↙<br />
chmod 755 $HOME/example.com/cgi-bin/php-wrapper.cgi↙<br />
chmod 640 $HOME/example.com/cgi-bin/php.ini↙</li>
<li>Type in: exit↙ and then close the SSH client.</li>
<li>Create the .htaccess file:<br />
Create a text and save as “.htaccess” with notepad. And upload it to your website root fold. (EditPlus Editor recommended)<br />
<strong>The content of “.htaccess” file:<br />
</strong>Options +ExecCGI<br />
AddHandler php5-cgi .php<br />
Action php-cgi /cgi-bin/php-wrapper.cgi<br />
Action php5-cgi /cgi-bin/php-wrapper.cgi<br />
If there is already one existing, copy and paste it to the top.</li>
<li> Upload php.ini to your website cgi-bin fold and finish the configuration.</li>
</ol>
<div class="aligncenter">
<p><a href="http://studio.willin.org/siteup/brand-blog/" title="看看我能为你做些什么"><img src="http://www.willin.org/images/wen.jpg" alt="RSS订阅" style="margin:0;padding:0;border:0"/>也想要建立一个独立博客打造自我品牌吗？</a><br />
<a href="http://feed.willin.org/" title="订阅本站" rel="external nofollow"><img src="http://www.willin.org/images/rss.png" alt="RSS订阅" style="margin:0;padding:0;border:0"/></a>如果你喜欢本文或对我的Willin OR Guy感兴趣，请<a href="http://feed.willin.org/" title="订阅本站" rel="external nofollow" target="_blank">订阅本博客</a>。<a href="http://www.willin.org/how-to-rss/" title="如何订阅">如何订阅？</a></p>
</div>
<div>
<hr />
<h3>版权声明</h3>
<p>作者：<a href="http://www.willin.org/" title="Willin Wang">长岛冰泪</a>，网址：<a href="http://www.willin.org/" title="Willin Wang">http://www.willin.org/</a><br />
原文标题：<a href="http://www.willin.org/develop/niit/add-onweb1/" title="Additional Learning on website1论文">Additional Learning on website1论文</a><br />
原文链接：<a href="http://www.willin.org/develop/niit/add-onweb1/" title="Additional Learning on website1论文">http://www.willin.org/develop/niit/add-onweb1/</a><br />
(C) 长岛冰泪 版权所有，转载时必须以链接形式注明作者和原始出处及本声明。
</p>
</div>
<h3  class="related_post_title">相关日志</h3><ul class="related_post"><li><a href="http://www.willin.org/develop/niit/add-onweb2/" title="Additional Learning on website2论文">Additional Learning on website2论文</a> (7)</li><li><a href="http://www.willin.org/daily/life/working-for-life/" title="Working For Life">Working For Life</a> (15)</li><li><a href="http://www.willin.org/develop/program/csharp-monkey-king/" title="C#猴子选大王-单向循环链表算法">C#猴子选大王-单向循环链表算法</a> (0)</li><li><a href="http://www.willin.org/develop/program/csharp-contacts/" title="C#单链表通讯录1.1">C#单链表通讯录1.1</a> (4)</li><li><a href="http://www.willin.org/works/english/recall-monash/" title="Recall Monash">Recall Monash</a> (0)</li><li><a href="http://www.willin.org/daily/xsay/money-not-equal-development/" title="商机不是社会进步的契机">商机不是社会进步的契机</a> (3)</li><li><a href="http://www.willin.org/develop/asp/widy-tss/" title="Widy-TSS_教学支持系统">Widy-TSS_教学支持系统</a> (6)</li><li><a href="http://www.willin.org/featured/notmine/2010-6-7-pity/" title="重庆一父亲送子高考归来途中被天降钢管砸死">重庆一父亲送子高考归来途中被天降钢管砸死</a> (6)</li><li><a href="http://www.willin.org/develop/jquery/jq-willin-tab/" title="jQuery会自动切换的Tab选项卡Willin-Tab">jQuery会自动切换的Tab选项卡Willin-Tab</a> (3)</li><li><a href="http://www.willin.org/develop/jquery/jquery-sweet-title/" title="jQuery美妙的标题提示加强版">jQuery美妙的标题提示加强版</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.willin.org/develop/niit/add-onweb1/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>[转]DreamHost 自己编译PHP，支持采集(allow_url_fopen)</title>
		<link>http://www.willin.org/net/dreamhost/dh-yourown-php/</link>
		<comments>http://www.willin.org/net/dreamhost/dh-yourown-php/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 08:57:56 +0000</pubDate>
		<dc:creator>长岛冰泪</dc:creator>
				<category><![CDATA[Dreamhost]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[美国]]></category>

		<guid isPermaLink="false">http://willin.org/?p=203</guid>
		<description><![CDATA[第一种方法：
1. 下载 <span class='wp_keywordlink_affiliate'><a href="http://www.willin.org/tag/php/" title="查看 php 的全部文章" target="_blank">php</a></span>_update.sh 。如果是PHP5，下载 <a href="http://dupola.net/files/dhhelp/php5_update.sh">php5_update.sh</a>；如果是 PHP4，下载 <a href="http://dupola.net/files/dhhelp/php4_update.sh">php4_update</a>。下面以php5举例。同时下载 附件中的 <a href="http://dupola.net/files/dhhelp/.htaccess">.htaccess</a> 文件
更新一下：点<a href="http://dupola.net/files/dhhelp/htaccess.zip" target="_blank">这里下载</a>php5_update.sh和htaccess文件，我打包好了。
2. FTP上传文件 php5_update.sh 和 .htaccess 到相应域名的根目录
3. SSH登录到<span class='wp_keywordlink'><a href="http://www.dreamhost.com/r.cgi?597308" title="DreamHost美国著名网络服务商" rel="nofollow" target="_blank">DreamHost</a></span>，具体操作参见教程六：使用<span class='wp_keywordlink_affiliate'><a href="http://www.willin.org/tag/dh/" title="查看 Dreamhost 的全部文章" target="_blank">Dreamhost</a></span>的Shell
4【<a href='http://www.willin.org/net/dreamhost/dh-yourown-php/' class='read-more'>继续阅读</a>】]]></description>
			<content:encoded><![CDATA[<p>第一种方法：<br />
1. 下载 <span class='wp_keywordlink_affiliate'><a href="http://www.willin.org/tag/php/" title="查看 php 的全部文章" target="_blank">php</a></span>_update.sh 。如果是PHP5，下载 <a href="http://dupola.net/files/dhhelp/php5_update.sh">php5_update.sh</a>；如果是 PHP4，下载 <a href="http://dupola.net/files/dhhelp/php4_update.sh">php4_update</a>。下面以<span class='wp_keywordlink_affiliate'><a href="http://www.willin.org/tag/php/" title="查看 php 的全部文章" target="_blank">php</a></span>5举例。同时下载 附件中的 <a href="http://dupola.net/files/dhhelp/.htaccess">.htaccess</a> 文件<br />
更新一下：点<a href="http://dupola.net/files/dhhelp/htaccess.zip" target="_blank">这里下载</a>php5_update.sh和htaccess文件，我打包好了。<br />
2. FTP上传文件 php5_update.sh 和 .htaccess 到相应域名的根目录<br />
3. SSH登录到<span class='wp_keywordlink'><a href="http://www.dreamhost.com/r.cgi?597308" title="DreamHost美国著名网络服务商" rel="nofollow" target="_blank">DreamHost</a></span>，具体操作参见教程六：使用<span class='wp_keywordlink_affiliate'><a href="http://www.willin.org/tag/dh/" title="查看 Dreamhost 的全部文章" target="_blank">Dreamhost</a></span>的Shell<br />
4. 修改文件属性为可执行，并执行<br />
[coolcode]chmod +x php5_update.sh<br />
./php5_update.sh[/coolcode]<br />
5. 增加定时项，每周执行一次 php5_update.sh<br />
[coolcode]crontab -e[/coolcode]<br />
然后输入内容<br />
[coolcode]@weekly /home/your-user-name/your-domain-name/php5-update.sh[/coolcode]<br />
按Ctrl + O保存后，按Ctrl + X退出</p>
<p><span id="more-108"> </span></p>
<p>众所周知，DH默认是不支持大部分的采集器，因为DH默认PHP的 allow_url_fopen 选项没有打开，这是DH的一个大缺陷。好在DH可以让用户自己编译PHP，打开这些选项。<br />
编译方法：<br />
1. 下载附件中的文件 <a href="http://dupola.net/files/dhhelp/installscript.sh">installscript.sh</a>，将其中的“your.domain.com”替换为你的真实域名，然后上传到你的域名目录中<br />
2. 用shell登陆系统<br />
3. 修改 installscript.sh 的属性为可执行：执行命令 “chmod +x installscript.sh”<br />
4. 执行installscript.sh： ./installscript<br />
5. 编译成功后，修改 .htaccess，使用刚才编译出的php程序来解析php文件；在 .htaccess 中添加如下内容：<br />
[coolcode]AddHandler phpFive .php<br />
Action phpFive /cgi-bin/php.cgi[/coolcode]<br />
6. 修改 php.ini，该文件在 ~/your_domain_name/etc/php5/ 目录下，打开 allow_url_fileopen 选项<br />
installscript.sh源码：<br />
[coolcode]#!/bin/sh<br />
# Script updated 2006-12-25 by Carl McDade (hiveminds.co.uk) to allow memory limit and freetype<br />
# Save the code to a file as *.sh<br />
# Abort on any errors<br />
set -e</p>
<p># The domain in which to install the PHP CGI script.<br />
export DOMAIN=”your.domain.com”</p>
<p># Where do you want all this stuff built? I’d recommend picking a local<br />
# filesystem.<br />
# ***Don’t pick a directory that already exists!*** We clean up after<br />
# ourselves at the end!<br />
SRCDIR=${HOME}/source</p>
<p># And where should it be installed?<br />
INSTALLDIR=${HOME}/php5</p>
<p># Set DISTDIR to somewhere persistent, if you plan to muck around with this<br />
# script and run it several times!<br />
DISTDIR=${HOME}/dist</p>
<p># Pre-download clean up!!!!<br />
rm -fr $SRCDIR $DISTDIR</p>
<p># Update version information here.<br />
PHP5=”php-5.2.0″<br />
LIBICONV=”libiconv-1.11″<br />
LIBMCRYPT=”libmcrypt-2.5.7″<br />
LIBXML2=”libxml2-2.6.27″<br />
LIBXSLT=”libxslt-1.1.18″<br />
MHASH=”mhash-0.9.7.1″<br />
ZLIB=”zlib-1.2.3″<br />
CURL=”curl-7.14.0″<br />
LIBIDN=”libidn-0.6.8″<br />
CCLIENT=”imap-2004g”<br />
CCLIENT_DIR=”imap-2004g” # Another pest!<br />
FREETYPE=”freetype-2.2.1″</p>
<p># What PHP features do you want enabled?<br />
PHPFEATURES=”–prefix=${INSTALLDIR} \<br />
–with-config-file-path=${INSTALLDIR}/etc/php5/${DOMAIN} \<br />
–enable-force-cgi-redirect \<br />
–with-xml \<br />
–with-libxml-dir=${INSTALLDIR} \<br />
–with-freetype-dir=${INSTALLDIR} \<br />
–enable-soap \<br />
–with-openssl=/usr \<br />
–with-mhash=${INSTALLDIR} \<br />
–with-mcrypt=${INSTALLDIR} \<br />
–with-zlib-dir=${INSTALLDIR} \<br />
–with-jpeg-dir=/usr \<br />
–with-png-dir=/usr \<br />
–with-gd \<br />
–enable-gd-native-ttf \<br />
–enable-memory-limit<br />
–enable-ftp \<br />
–with-exif \<br />
–enable-sockets \<br />
–enable-wddx \<br />
–with-iconv=${INSTALLDIR} \<br />
–enable-sqlite-utf8 \<br />
–enable-calendar \<br />
–with-curl=${INSTALLDIR} \<br />
–enable-mbstring \<br />
–enable-mbregex \<br />
–with-mysql=/usr \<br />
–with-mysqli \<br />
–without-pear \<br />
–with-gettext \<br />
–with-imap=${INSTALLDIR} \<br />
–with-imap-ssl=/usr”</p>
<p># —- end of user-editable bits. Hopefully! —-</p>
<p># Push the install dir’s bin directory into the path<br />
export PATH=${INSTALLDIR}/bin:$PATH</p>
<p>#setup directories<br />
mkdir -p ${SRCDIR}<br />
mkdir -p ${INSTALLDIR}<br />
mkdir -p ${DISTDIR}<br />
cd ${DISTDIR}</p>
<p># Get all the required packages<br />
wget -c http://us3.php.net/distributions/${PHP5}.tar.gz<br />
wget -c http://mirrors.usc.edu/pub/gnu/libiconv/${LIBICONV}.tar.gz<br />
wget -c http://easynews.dl.sourceforge.net/sourceforge/mcrypt/libmcrypt-2.5.7.tar.gz<br />
wget -c ftp://xmlsoft.org/libxml2/${LIBXML2}.tar.gz<br />
wget -c ftp://xmlsoft.org/libxml2/${LIBXSLT}.tar.gz<br />
wget -c http://superb-west.dl.sourceforge.net/sourceforge/mhash/${MHASH}.tar.gz<br />
wget -c http://www.zlib.net/${ZLIB}.tar.gz<br />
wget -c http://curl.haxx.se/download/${CURL}.tar.gz<br />
wget -c http://kent.dl.sourceforge.net/sourceforge/freetype/${FREETYPE}.tar.gz<br />
wget -c ftp://alpha.gnu.org/pub/gnu/libidn/${LIBIDN}.tar.gz<br />
wget -c ftp://ftp.cac.washington.edu/imap/old/${CCLIENT}.tar.Z</p>
<p>echo ———- Unpacking downloaded archives. This process may take several minutes! ———-</p>
<p>cd ${SRCDIR}<br />
# Unpack them all<br />
echo Extracting ${PHP5}…<br />
tar xzf ${DISTDIR}/${PHP5}.tar.gz<br />
echo Done.<br />
echo Extracting ${LIBICONV}…<br />
tar xzf ${DISTDIR}/${LIBICONV}.tar.gz<br />
echo Done.<br />
echo Extracting ${LIBMCRYPT}…<br />
tar xzf ${DISTDIR}/${LIBMCRYPT}.tar.gz<br />
echo Done.<br />
echo Extracting ${LIBXML2}…<br />
tar xzf ${DISTDIR}/${LIBXML2}.tar.gz<br />
echo Done.<br />
echo Extracting ${LIBXSLT}…<br />
tar xzf ${DISTDIR}/${LIBXSLT}.tar.gz<br />
echo Done.<br />
echo Extracting ${MHASH}…<br />
tar xzf ${DISTDIR}/${MHASH}.tar.gz<br />
echo Done.<br />
echo Extracting ${ZLIB}…<br />
tar xzf ${DISTDIR}/${ZLIB}.tar.gz<br />
echo Done.<br />
echo Extracting ${CURL}…<br />
tar xzf ${DISTDIR}/${CURL}.tar.gz<br />
echo Done.<br />
echo Extracting ${LIBIDN}…<br />
tar xzf ${DISTDIR}/${LIBIDN}.tar.gz<br />
echo Done.<br />
echo Extracting ${CCLIENT}…<br />
uncompress -cd ${DISTDIR}/${CCLIENT}.tar.Z |tar x<br />
echo Done.<br />
echo Extracting ${FREETYPE}…<br />
tar xzf ${DISTDIR}/${FREETYPE}.tar.gz<br />
echo Done.</p>
<p># Build them in the required order to satisfy dependencies.</p>
<p>#libiconv<br />
cd ${SRCDIR}/${LIBICONV}<br />
./configure –enable-extra-encodings –prefix=${INSTALLDIR}<br />
# make clean<br />
make<br />
make install</p>
<p>#libxml2<br />
cd ${SRCDIR}/${LIBXML2}<br />
./configure –with-iconv=${INSTALLDIR} –prefix=${INSTALLDIR}<br />
# make clean<br />
make<br />
make install</p>
<p>#libxslt<br />
cd ${SRCDIR}/${LIBXSLT}<br />
./configure –prefix=${INSTALLDIR} \<br />
–with-libxml-prefix=${INSTALLDIR} \<br />
–with-libxml-include-prefix=${INSTALLDIR}/include/ \<br />
–with-libxml-libs-prefix=${INSTALLDIR}/lib/<br />
# make clean<br />
make<br />
make install</p>
<p>#zlib<br />
cd ${SRCDIR}/${ZLIB}<br />
./configure –shared –prefix=${INSTALLDIR}<br />
# make clean<br />
make<br />
make install</p>
<p>#libmcrypt<br />
cd ${SRCDIR}/${LIBMCRYPT}<br />
./configure –disable-posix-threads –prefix=${INSTALLDIR}<br />
# make clean<br />
make<br />
make install</p>
<p>#libmcrypt lltdl issue!!<br />
cd ${SRCDIR}/${LIBMCRYPT}/libltdl<br />
./configure –prefix=${INSTALLDIR} –enable-ltdl-install<br />
# make clean<br />
make<br />
make install</p>
<p>#mhash<br />
cd ${SRCDIR}/${MHASH}<br />
./configure –prefix=${INSTALLDIR}<br />
# make clean<br />
make<br />
make install</p>
<p>#freetype<br />
cd ${SRCDIR}/${FREETYPE}<br />
./configure –prefix=${INSTALLDIR}<br />
# make clean<br />
make<br />
make install</p>
<p>#libidn<br />
cd ${SRCDIR}/${LIBIDN}<br />
./configure –with-iconv-prefix=${INSTALLDIR} –prefix=${INSTALLDIR}<br />
# make clean<br />
make<br />
make install</p>
<p>#cURL<br />
cd ${SRCDIR}/${CURL}<br />
./configure –with-ssl=${INSTALLDIR} –with-zlib=${INSTALLDIR} \<br />
–with-libidn=${INSTALLDIR} –enable-ipv6 –enable-cookies \<br />
–enable-crypto-auth –prefix=${INSTALLDIR}<br />
# make clean<br />
make<br />
make install</p>
<p># c-client<br />
cd ${SRCDIR}/${CCLIENT_DIR}<br />
make ldb<br />
# Install targets are for wusses!<br />
cp c-client/c-client.a ${INSTALLDIR}/lib/libc-client.a<br />
cp c-client/*.h ${INSTALLDIR}/include</p>
<p>#PHP 5<br />
cd ${SRCDIR}/${PHP5}<br />
./configure ${PHPFEATURES}<br />
# make clean<br />
make<br />
make install</p>
<p>#copy config file<br />
mkdir -p ${INSTALLDIR}/etc/php5/${DOMAIN}<br />
cp ${SRCDIR}/${PHP5}/php.ini-dist ${INSTALLDIR}/etc/php5/${DOMAIN}/php.ini</p>
<p>#copy PHP CGI<br />
mkdir -p ${HOME}/${DOMAIN}/cgi-bin<br />
chmod 0755 ${HOME}/${DOMAIN}/cgi-bin<br />
cp ${INSTALLDIR}/bin/php ${HOME}/${DOMAIN}/cgi-bin/php.cgi<br />
rm -fr $SRCDIR $DISTDIR<br />
echo ———- INSTALL COMPLETE! ———-[/coolcode]</p>
<p>参考文档：<a href="http://wiki.dreamhost.com/index.php/Installing_PHP5">http://wiki.dreamhost.com/index.php/Installing_PHP5</a></p>
<p><strong>注：此文转自网络。</strong>
<div class="aligncenter">
<p><a href="http://studio.willin.org/siteup/brand-blog/" title="看看我能为你做些什么"><img src="http://www.willin.org/images/wen.jpg" alt="RSS订阅" style="margin:0;padding:0;border:0"/>也想要建立一个独立博客打造自我品牌吗？</a><br />
<a href="http://feed.willin.org/" title="订阅本站" rel="external nofollow"><img src="http://www.willin.org/images/rss.png" alt="RSS订阅" style="margin:0;padding:0;border:0"/></a>如果你喜欢本文或对我的Willin OR Guy感兴趣，请<a href="http://feed.willin.org/" title="订阅本站" rel="external nofollow" target="_blank">订阅本博客</a>。<a href="http://www.willin.org/how-to-rss/" title="如何订阅">如何订阅？</a></p>
</div>
<div>
<hr />
<h3>版权声明</h3>
<p>作者：<a href="http://www.willin.org/" title="Willin Wang">长岛冰泪</a>，网址：<a href="http://www.willin.org/" title="Willin Wang">http://www.willin.org/</a><br />
原文标题：<a href="http://www.willin.org/net/dreamhost/dh-yourown-php/" title="[转]DreamHost 自己编译PHP，支持采集(allow_url_fopen)">[转]DreamHost 自己编译PHP，支持采集(allow_url_fopen)</a><br />
原文链接：<a href="http://www.willin.org/net/dreamhost/dh-yourown-php/" title="[转]DreamHost 自己编译PHP，支持采集(allow_url_fopen)">http://www.willin.org/net/dreamhost/dh-yourown-php/</a><br />
(C) 长岛冰泪 版权所有，转载时必须以链接形式注明作者和原始出处及本声明。
</p>
</div>
<h3  class="related_post_title">相关日志</h3><ul class="related_post"><li><a href="http://www.willin.org/net/dreamhost/dreamhost-reg/" title="DreamHost注册详解">DreamHost注册详解</a> (2)</li><li><a href="http://www.willin.org/net/dreamhost/dh-ssh/" title="DreamHost的SSH命令教程">DreamHost的SSH命令教程</a> (0)</li><li><a href="http://www.willin.org/net/dreamhost/dh-remote-mysql/" title="[转]Dreamhost主机的Mysql远程管理">[转]Dreamhost主机的Mysql远程管理</a> (0)</li><li><a href="http://www.willin.org/net/dreamhost/dreamhost-code/" title="Dreamhost优惠码">Dreamhost优惠码</a> (6)</li><li><a href="http://www.willin.org/net/webgains/gagabux-silver/" title="Gagabux轻松日赚1美元">Gagabux轻松日赚1美元</a> (18)</li><li><a href="http://www.willin.org/net/webgains/wp-text-link-ads/" title="WordPress插件 Text-Link-Ads 汉化版">WordPress插件 Text-Link-Ads 汉化版</a> (3)</li><li><a href="http://www.willin.org/net/webgains/text-link-ads-reg/" title="卖文字链赚美元详细攻略">卖文字链赚美元详细攻略</a> (0)</li><li><a href="http://www.willin.org/develop/niit/add-onweb1/" title="Additional Learning on website1论文">Additional Learning on website1论文</a> (4)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.willin.org/net/dreamhost/dh-yourown-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
