<?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>MAXidea的Blog佬世界 &#187; PHP</title>
	<atom:link href="http://www.maxidea.com/tag/php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.maxidea.com</link>
	<description>LAMP Expert (美国主机)</description>
	<lastBuildDate>Tue, 26 Jul 2011 15:53:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>PHP 5.2.9 for Windows Server 2003 (32bit) on IIS 6.0</title>
		<link>http://www.maxidea.com/2009/05/29/140</link>
		<comments>http://www.maxidea.com/2009/05/29/140#comments</comments>
		<pubDate>Fri, 29 May 2009 12:05:45 +0000</pubDate>
		<dc:creator>maxidea</dc:creator>
				<category><![CDATA[网络技术]]></category>
		<category><![CDATA[IIS 6.0]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Windows Server 2003 32bit]]></category>

		<guid isPermaLink="false">http://www.maxidea.com/?p=140</guid>
		<description><![CDATA[1) Run php-5.2.9-2-win32-installer.msi to install php to C:\PHP by auto
2) change the security for &#8220;c:\php&#8221; Properties:
Add &#8220;Everyon[......]<p class='read-more'><a href='http://www.maxidea.com/2009/05/29/140'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>1) Run php-5.2.9-2-win32-installer.msi to install php to C:\PHP by auto</p>
<p>2) change the security for &#8220;c:\php&#8221; Properties:<br />
Add &#8220;Everyone&#8221;, &#8220;IIS_WPG&#8221;, &#8220;Internet GUest Account(XXXserverName\IUSR_XXXserverName)&#8221; with permission &#8220;Full Control&#8221;</p>
<p>3) Unzip the &#8220;php-5.2.9-2-Win32.zip&#8221; and copy a php.ini-dist to C:\WINDOWS\php.ini and C:\PHP\php.ini, modify extension_dir = &#8220;C:\PHP\ext&#8221;; and then Add &#8220;Everyone&#8221;, &#8220;IIS_WPG&#8221;, </p>
<p>&#8220;Internet GUest Account(XXXserverName\IUSR_XXXserverName)&#8221; with permission &#8220;Full Control&#8221;</p>
<p>4) Copy &#8220;php5ts.dll&#8221; to &#8220;C:\WINDOWS\system32&#8243; and change the security for its Properties:<br />
Add &#8220;Everyone&#8221;, &#8220;IIS_WPG&#8221;, &#8220;Internet GUest Account(XXXserverName\IUSR_XXXserverName)&#8221; with permission &#8220;Full Control&#8221;</p>
<p>5) Change the Environment PATH for windows by &#8220;My computer&#8221;>&#8221;Properties&#8221;>&#8221;Advanced&#8221;>&#8221;Environment Variables&#8221;>&#8221;System Variables&#8221; to modify &#8220;PATH&#8221; add </p>
<p>&#8220;C:\PHP;C:\PHP\ext;&#8221;to the front of the PATH (!Important!)</p>
<p>6) Add a new web service extensions for PHP from &#8220;Internet Information Services (IIS) Manager&#8221;->&#8221;Web Service Extensions&#8221;->&#8221;Add a new web service </p>
<p>extensions&#8221;->Extension Name: PHP5 -> Require files: C:\php\php5isapi.dll and enable &#8220;Set extension status to Allowed&#8221;</p>
<p>7) Open &#8220;Internet Information Services (IIS) Manager&#8221;->&#8221;Web Sites&#8221;->&#8221;Default Web Site&#8221;->&#8221;Properties&#8221;->&#8221;ISAPI Filters&#8221; and add a PHP filter by name: php, </p>
<p>Executable: C:\php\php5isapi.dll (after reset IIS, the status should be turn to &#8220;Loaded&#8221;)</p>
<p> <img src='http://www.maxidea.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> Open &#8220;Internet Information Services (IIS) Manager&#8221;->&#8221;Web Sites&#8221;->&#8221;Default Web Site&#8221;->&#8221;Properties&#8221;->&#8221;Home Directory&#8221;->&#8221;Configuration…&#8221; to add a &#8220;.php&#8221; </p>
<p>extension by &#8220;Executable: C:\php\php5isapi.dll&#8221; and let other setting as default.</p>
<p>9) Restart IIS by iisreset</p>
<p>That&#8217;s all!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maxidea.com/2009/05/29/140/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Red Hat Enterprise Linux 4 升级Mysql\Apache\PHP的独门秘笈</title>
		<link>http://www.maxidea.com/2009/05/13/128</link>
		<comments>http://www.maxidea.com/2009/05/13/128#comments</comments>
		<pubDate>Wed, 13 May 2009 12:14:58 +0000</pubDate>
		<dc:creator>maxidea</dc:creator>
				<category><![CDATA[UNIX\Linux]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 4]]></category>
		<category><![CDATA[独门秘笈]]></category>

		<guid isPermaLink="false">http://www.maxidea.com/?p=128</guid>
		<description><![CDATA[此秘笈均为本人的经验总结，已经在多台Red Hat Enterprise Linux 4上实战成功，特和大家一起分享：
1）确认Red Hat Enterprise Linux 4内各旧软件包的版本
以“rpm -q 软件包名” 得到如下：
httpd-2.0.52-28.ent
mysql-4.1[......]<p class='read-more'><a href='http://www.maxidea.com/2009/05/13/128'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>此秘笈均为本人的经验总结，已经在多台Red Hat Enterprise Linux 4上实战成功，特和大家一起分享：</p>
<p>1）确认Red Hat Enterprise Linux 4内各旧软件包的版本<br />
以“rpm -q 软件包名” 得到如下：<br />
httpd-2.0.52-28.ent<br />
mysql-4.1.7-4.RHEL4.1<br />
php-4.3.9-3.1<br />
package libxml is not installed<br />
gd-2.0.28-4<br />
gd-2.0.28-4.4E.1<br />
perl-5.8.5-12</p>
<p>2）下载以下软件包（下不到的人可以找我要）：<br />
<a href="http://www.tf2009.com/download/linux/MySQL-server-standard-5.0.24-0.rhel4.x86_64.rpm" target="_blank">MySQL-server-standard-5.0.24-0.rhel4.x86_64.rpm</a><br />
<a href="http://www.tf2009.com/download/linux/MySQL-client-standard-5.0.24-0.rhel4.x86_64.rpm" target="_blank">MySQL-client-standard-5.0.24-0.rhel4.x86_64.rpm</a><br />
<a href="http://www.tf2009.com/download/linux/MySQL-devel-standard-5.0.24-0.rhel4.x86_64.rpm" target="_blank">MySQL-devel-standard-5.0.24-0.rhel4.x86_64.rpm</a><br />
<a href="http://www.tf2009.com/download/linux/MySQL-shared-standard-5.0.24-0.rhel4.x86_64.rpm" target="_blank">MySQL-shared-standard-5.0.24-0.rhel4.x86_64.rpm</a><br />
<a href="http://www.tf2009.com/download/linux/libxml2-2.6.23.tar.gz" target="_blank">libxml2-2.6.23.tar.gz</a><br />
<a href="http://www.tf2009.com/download/linux/httpd-2.0.59.tar.gz" target="_blank">httpd-2.0.59.tar.gz</a><br />
<a href="http://www.tf2009.com/download/linux/gd-2.0.33.tar.gz" target="_blank">gd-2.0.33.tar.gz</a><br />
<a href="http://www.tf2009.com/download/linux/php-5.1.4.tar.gz" target="_blank">php-5.1.4.tar.gz</a><br />
并放到服务器/tmp下面</p>
<p>3）开始安装，基本按下面指令逐行输入即可：<br />
cd /tmp<br />
rpm -e mysql-4.1.7-4.RHEL4.1.i386 &#8211;nodeps<br />
rpm -e mysql-server<br />
rpm -e mysql-devel<br />
rpm -Uvh MySQL-server-standard-5.0.24-0.rhel4.x86_64.rpm &#8211;nodeps<br />
rpm -ivh MySQL-client-standard-5.0.24-0.rhel4.x86_64.rpm<br />
rpm -ivh MySQL-devel-standard-5.0.24-0.rhel4.x86_64.rpm<br />
rpm -ivh MySQL-shared-standard-5.0.24-0.rhel4.x86_64.rpm<br />
vi /etc/my.conf<br />
关闭#basedir=/var/lib<br />
mkdir /var/run/mysqld<br />
chown mysql.mysql /var/run/mysqld<br />
/sbin/service mysql start</p>
<p>tar -zxvf libxml2-2.6.23.tar.gz<br />
cd libxml2-2.6.23<br />
./configure<br />
make<br />
make tests<br />
make install</p>
<p>tar -zxvf httpd-2.0.59.tar.gz<br />
cd httpd-2.0.59<br />
./configure<br />
make<br />
make install<br />
vi /usr/local/apache2/conf/httpd.conf<br />
增加：<br />
AddType application/x-httpd-php .php<br />
DocumentRoot &#8220;/usr/local/apache2/htdocs&#8221;<br />
DirectoryIndex index.html index.html.var index.php</p>
<p>vi /etc/rc.d/rc.local<br />
增加：<br />
/usr/local/apache2/bin/apachectl start<br />
(因为旧的Apache在安装Mysql 5后会无法使用）</p>
<p>PHP需要重新编译：<br />
tar -zxvf gd-2.0.33.tar.gz<br />
cd gd-2.0.33<br />
./configure<br />
make install</p>
<p>cd /usr/lib64<br />
cp -p libpng12.a ../lib<br />
cp -p libpng.a ../lib<br />
cp -p libpng.so ../lib</p>
<p>tar -zxvf php-5.1.4.tar.gz<br />
cd php-5.1.4<br />
./configure &#8211;prefix=/usr/local/php5 &#8211;with-apxs2=/usr/local/apache2/bin/apxs &#8211;with-config-filepath=/usr/local/php5 &#8211;disable-debug &#8211;enable-ftp &#8211;enable-inline-optimization &#8211;enable-magic-quotes &#8211;enable-mbstring &#8211;enable-mm=shared &#8211;enable-safe-mode &#8211;enable-track-vars &#8211;enable-trans-sid &#8211;enable-wddx=shared &#8211;enable-xml &#8211;with-dom &#8211;with-gd &#8211;with-gettext &#8211;with-mysql=/usr/lib64/mysql &#8211;with-regex=system &#8211;with-xml &#8211;with-zlib &#8211;with-mysqli=/usr/bin/mysql_config<br />
make<br />
make install</p>
<p>cp php.ini-dist /usr/local/php5/lib/php.ini</p>
<p>vi /usr/local/php5/lib/php.ini<br />
include_path = &#8220;.:/usr/local/php5/lib/php&#8221;</p>
<p>/etc/init.d/mysql restart<br />
/usr/local/apache2/bin/apachectl restart</p>
<p>好了，到此就完成所有工作了。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maxidea.com/2009/05/13/128/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP 4.4.9 for Windows Server 2003 (64bit) on IIS 6.0</title>
		<link>http://www.maxidea.com/2009/05/12/125</link>
		<comments>http://www.maxidea.com/2009/05/12/125#comments</comments>
		<pubDate>Tue, 12 May 2009 09:25:32 +0000</pubDate>
		<dc:creator>maxidea</dc:creator>
				<category><![CDATA[网络技术]]></category>
		<category><![CDATA[IIS 6.0]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Windows Server 2003 64bit]]></category>

		<guid isPermaLink="false">http://www.maxidea.com/?p=125</guid>
		<description><![CDATA[PHP 4.4.9 for Windows Server 2003 (64bit) on IIS 6.0
Last update 2009-05-12 by SimonXu
Step 1: install PHP (Reference: http://blog.templatehome.cn/pos[......]<p class='read-more'><a href='http://www.maxidea.com/2009/05/12/125'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>PHP 4.4.9 for Windows Server 2003 (64bit) on IIS 6.0<br />
Last update 2009-05-12 by SimonXu</p>
<p>Step 1: install PHP (Reference: http://blog.templatehome.cn/post/214):</p>
<p>1) unzip php-4.4.9-Win32 to E:\php</p>
<p>2) change the security for &#8220;E:\php&#8221; Properties:<br />
Add &#8220;Everyone&#8221;, &#8220;IIS_WPG&#8221;, &#8220;Internet GUest Account(XXXserverName\IUSR_XXXserverName)&#8221; with permission &#8220;Full Control&#8221;</p>
<p>3) Copy a E:\PHP\php.ini-dist to C:\WINDOWS\php.ini and modify<br />
extension_dir = &#8220;./&#8221; to extension_dir = &#8220;D:\php\extensions&#8221;</p>
<p>4) Copy &#8220;php4ts.dll&#8221; to &#8220;C:\WINDOWS\system32&#8243; and change the security for its Properties:<br />
Add &#8220;Everyone&#8221;, &#8220;IIS_WPG&#8221;, &#8220;Internet GUest Account(XXXserverName\IUSR_XXXserverName)&#8221; with permission &#8220;Full Control&#8221;</p>
<p>5) Copy &#8220;php4isapi.dll&#8221; to &#8220;C:\WINDOWS&#8221; and change the security for its Properties:<br />
Add &#8220;Everyone&#8221;, &#8220;IIS_WPG&#8221;, &#8220;Internet GUest Account(XXXserverName\IUSR_XXXserverName)&#8221; with permission &#8220;Full Control&#8221;</p>
<p>6) Change the Environment PATH for windows by &#8220;My computer&#8221;->&#8221;Properties&#8221;->&#8221;Advanced&#8221;->&#8221;Environment Variables&#8221;->&#8221;System Variables&#8221; to modify &#8220;PATH&#8221;: add &#8220;E:\php;E:\php\dlls;E:\php\extensions;E:\php\sapi;&#8221; to the front of the PATH (!Important!)</p>
<p>Setp 2: Change IIS 6 from 64bit to 32bit support ASP.NET 2.0 to support ASP/HTML/PHP in a same time(Reference: http://support.microsoft.com/?id=894435)</p>
<p>1) change to 32 bit run this cmd:<br />
cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1</p>
<p>2) Open &#8220;Administrative Tools&#8221; -> &#8220;Internet Information Services (IIS) Manager&#8221;->&#8221;Web Sites&#8221;->&#8221;Properties&#8221;->&#8221;ISAPI Filters&#8221; change the 64bit filter to 32bit version:<br />
Remote: ASP.NET_2.0.50727.0 (path: C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\aspnet_filter.dll)<br />
Add: ASP.NET_2.0.50727.0(32) (path: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_filter.dll)</p>
<p>3) Add a new web service extensions for &#8220;ASP.NET_2.0.50727(32)&#8221; from &#8220;Internet Information Services (IIS) Manager&#8221;->&#8221;Web Service Extensions&#8221;->&#8221;Add a new web service extensions&#8221;->Extension Name: ASP.NET_2.0.50727(32) -> Require files: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll and enable &#8220;Set extension status to Allowed&#8221;</p>
<p>4) Restart IIS by cmd:<br />
net stop w3svc<br />
net stop iisadmin /yes<br />
net start iisadmin<br />
net start w3svc</p>
<p>Step 3: Change IIS to support PHP:</p>
<p>1) Add a new web service extensions for PHP from &#8220;Internet Information Services (IIS) Manager&#8221;->&#8221;Web Service Extensions&#8221;->&#8221;Add a new web service extensions&#8221;->Extension Name: PHP4 -> Require files: C:\WINDOWS\php4isapi.dll and enable &#8220;Set extension status to Allowed&#8221;</p>
<p>2) Open &#8220;Internet Information Services (IIS) Manager&#8221;->&#8221;Web Sites&#8221;->&#8221;Default Web Site&#8221;->&#8221;Properties&#8221;->&#8221;ISAPI Filters&#8221; and add a PHP filter by name: php, Executable: C:\WINDOWS\php4isapi.dll (after reset IIS, the status should be turn to &#8220;Loaded&#8221;)</p>
<p>3) Open &#8220;Internet Information Services (IIS) Manager&#8221;->&#8221;Web Sites&#8221;->&#8221;Default Web Site&#8221;->&#8221;Properties&#8221;->&#8221;Home Directory&#8221;->&#8221;Configuration&#8230;&#8221; to add a &#8220;.php&#8221; extension by &#8220;Executable: C:\WINDOWS\php4isapi.dll&#8221; and let other setting as default.</p>
<p>4) Reset IIS by cmd : iisreset</p>
<p>That&#8217;s all, enjoy~</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maxidea.com/2009/05/12/125/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

