<?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>Admin Reports &#187; php</title>
	<atom:link href="http://adminreports.com/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://adminreports.com</link>
	<description>Resources for Server and Forum Admins that run Windows Servers and IIS.</description>
	<lastBuildDate>Sun, 18 Jul 2010 14:00:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Quick Tip: Adding mySQL and PHP to Your Windows Path</title>
		<link>http://adminreports.com/quick-tip-adding-mysql-and-php-to-your-windows-path/</link>
		<comments>http://adminreports.com/quick-tip-adding-mysql-and-php-to-your-windows-path/#comments</comments>
		<pubDate>Fri, 25 Jan 2008 16:20:06 +0000</pubDate>
		<dc:creator>BSchwarz</dc:creator>
				<category><![CDATA[Quick Tips]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Windows Path]]></category>

		<guid isPermaLink="false">http://adminreports.com/quick-tip-adding-mysql-and-php-to-your-windows-path/</guid>
		<description><![CDATA[Here is a quick tip showing you how to add mySQL and PHP to your Windows Server path. Many people ask how to do this and while it is included in the Installing mySQL and Installing PHP tutorials I thought I would make it easier for everyone to get the information.]]></description>
			<content:encoded><![CDATA[<p>Here is a quick tip showing you how to add mySQL and PHP to your Windows Server path. Many people ask how to do this and while it is included in the <a href="http://adminreports.com/installing-mysql/">Installing mySQL</a> and <a href="http://adminreports.com/installing-php/">Installing PHP</a> tutorials I thought I would make it easier for everyone to get the information.</p>
<p>Lets get to it.<br />
<span id="more-42"></span><br />
First thing to do is right click My Computer and select Properties:</p>
<p><a href="http://adminreports.com/wp-content/uploads/2008/01/start.GIF" rel="lightbox[42]" rel="lightbox" title="Start"><img src="http://adminreports.com/wp-content/uploads/2008/01/start.thumbnail.GIF" alt="Start" /></a>   <a href="http://adminreports.com/wp-content/uploads/2008/01/advanced-tab.GIF" rel="lightbox" title="advanced-tab.GIF" rel="lightbox[42]"><img src="http://adminreports.com/wp-content/uploads/2008/01/advanced-tab.thumbnail.GIF" alt="advanced-tab.GIF" /></a></p>
<p>Select Advanced tab and you&#8217;ll see what is shown in figure 2 above. Now click Environment variables button.</p>
<p><a href="http://adminreports.com/wp-content/uploads/2008/01/environment-variables.GIF" rel="lightbox" title="environment-variables.GIF" rel="lightbox[42]"><img src="http://adminreports.com/wp-content/uploads/2008/01/environment-variables.thumbnail.GIF" alt="environment-variables.GIF" /></a>   <a href="http://adminreports.com/wp-content/uploads/2008/01/add-to-path.GIF" rel="lightbox" title="add-to-path.GIF" rel="lightbox[42]"><img src="http://adminreports.com/wp-content/uploads/2008/01/add-to-path.thumbnail.GIF" alt="add-to-path.GIF" /></a></p>
<p>In the bottom box select Path as shown in figure 1 above. Click edit.  You&#8217;ll get a box like figure 2 above with path highlighted. Click into the box at the end of the path and add:</p>
<blockquote><p>;C:\path\to\mysql\bin   for mySQL</p>
<p>;C:\path\to\php for PHP</p></blockquote>
<p>Don&#8217;t forget the leading &#8221; ; &#8221; when adding the paths. Those are the path seperators.</p>
<p>That&#8217;s all there is to it. If you have any question post a comment. If you need one on one help visit the <a href="http://adminreports.com/forum">forum</a>.</p>
<p><br />
<script type="text/javascript"><!--
google_ad_client = "pub-2292466120976221";
/* Admin Reports Posts */
google_ad_slot = "2391864490";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://adminreports.com/quick-tip-adding-mysql-and-php-to-your-windows-path/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Upgrading PHP and MYSQL on Windows</title>
		<link>http://adminreports.com/upgrading-php-and-mysql-on-windows/</link>
		<comments>http://adminreports.com/upgrading-php-and-mysql-on-windows/#comments</comments>
		<pubDate>Sat, 04 Feb 2006 21:15:51 +0000</pubDate>
		<dc:creator>BSchwarz</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://adminreports.com/archives/2006/02/04/upgrading-php-and-mysql-on-windows.html</guid>
		<description><![CDATA[This article will explain the easy way to upgrade PHP and MYSQL on Windows Servers. Easy if you followed my <a href="http://adminreports.com/installing-php/">installing PHP</a> and <a href="http://adminreports.com/installing-mysql/">instaling MYSQL</a> tutorials. If you follow this procedure you can have PHP and MYSQL upgraded in less than an hour.]]></description>
			<content:encoded><![CDATA[<p>This article will explain the easy way to upgrade PHP and MYSQL on Windows Servers. Easy if you followed my <a href="http://adminreports.com/installing-php/">installing PHP</a> and <a href="http://adminreports.com/installing-mysql/">instaling MYSQL</a> tutorials. </p>
<p>If you follow this procedure you can have PHP and MYSQL upgraded in less than an hour. </p>
<p>Of course that doesn&#8217;t include the time it takes to download PHP and MYSQL. I will assume you have them downloaded. Lets get started. We&#8217;ll upgrade MYSQL first.</p>
<p><span id="more-11"></span></p>
<p><strong>Upgrading MYSQL</strong><br />
As I said I assume you have the MYSQL zip already download. Use the zip nenver the installer. Extract the zip. You will have a directory called mysql-noinstall-4.1.16-win32 or something similar. The 4.1.16 will change depending on the version you downloaded. Inside that there will be mysql-4.1.6-win32 directory. Again the version number might be different. Rename mysql-4.1.6-win32 to mysql-4.1.16 and copy it to where ever you installed the version you want to upgrade. If your old version is at c:\mysql then copy the dir to C:\mysql-4.1.16.<br />
Now copy my.ini from the old version of MYSQL to the new version. Open my.ini with Notepad and change </p>
<blockquote><p>
basedir=<br />
datadir=<br />
socket =
</p></blockquote>
<p>to reflect the new path to MYSQL. Example:</p>
<blockquote><p>
basedir=C:/mysql-4.1.6<br />
datadir=C:/mysql-4.1.6/data<br />
socket = C:/mysql-4.1.6/mysql.sock
</p></blockquote>
<p>Now we want to shutdown mysql. Open a command prompt and give this command.</p>
<blockquote><p>
C:\mysql\bin\mysqladmin -u root shutdown
</p></blockquote>
<p>Now all we have to do is uninstall the old service and install the service for the new version. First stop the MYSQL service.</p>
<blockquote><p>
net stop mysql
</p></blockquote>
<p>This will stop the MYSQL service. It might be a good idea to shutoff IIS first or you&#8217;ll get MYSQL errors on your site.<br />
After the service is stopped then we want to uninstall the old service. At the command prompt use this command.</p>
<blockquote><p>
C:\mysql\bin\mysqld-max-nt.exe â€“remove
</p></blockquote>
<p>Now this assumes you installed mysqld-max-nt binary as the service. If you installed mysqld then adjust the command above to reflect the binary you used.<br />
Once the old service is removed we can install the new service. First we want to make sure the new version of mysql runs without any problems. Give this command.</p>
<blockquote><p>
C:\mysql-4.1.16\bin\mysqld â€“console
</p></blockquote>
<p>After a short time you should see mysqld: ready for connections. If you see that then shutdown MYSQL so that we can move your databases and install the new service to finish up.<br />
Once you know the new version of MYSQL works and have shutdown the new version it is time to move your database. Move into the old version of MYSQL and right click the data dir and select copy. Move into the new version of mysql and paste it overwriting  the current data dir. That&#8217;s it. Once you have MYSQL upgraded and running you might want to optimize each database.<br />
The last step. Install the new service and change the MYSQL path. To install the new service give this command.</p>
<blockquote><p>
C:\mysql-4.1.16\bin\mysqld-max-nt.exe â€“install
</p></blockquote>
<p>Yuor websites will now use the new version of MYSQL. Last thing you want to do is change the path variable to the new version. If you followed the tutorial to <a href="http://adminreports.com/installing-mysql/">install MYSQL</a> you&#8217;ll already have a path variable set to the old version. Just follow the procedure in <a href="http://adminreports.com/installing-mysql/">instaling MYSQL</a> to change the variable. If you don&#8217;t have the path variable follow the <a href="http://adminreports.com/installing-mysql/">instaling MYSQL</a> to set it.<br />
MYSQL is now upgraded. Restart IIS, if you shut it down, and open a browser and navigate to your site. Everything should be running normally.<br />
Next step is upgrading PHP. Lets get started.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminreports.com/upgrading-php-and-mysql-on-windows/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Windows: Installing PHP</title>
		<link>http://adminreports.com/installing-php/</link>
		<comments>http://adminreports.com/installing-php/#comments</comments>
		<pubDate>Tue, 24 Jan 2006 00:14:56 +0000</pubDate>
		<dc:creator>BSchwarz</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Install]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://adminreports.com/archives/2006/01/23/installing-php.html</guid>
		<description><![CDATA[While many admins choose Linux with Apache as their server software of choice there is an alternative. Windows and IIS. This tutorial will show you how to install PHP on a Windows server. First lets download PHP from php.net. Select one of the zip versions preferably in the 5.x branch. Do not install PHP with [...]]]></description>
			<content:encoded><![CDATA[<p>While many admins choose Linux with Apache as their server software of choice there is an alternative. Windows and IIS. This tutorial will show you how to install PHP on a Windows server.</p>
<p><span id="more-4"></span><br />
First lets download <a href="http://www.php.net/downloads.php">PHP</a> from php.net. Select one of the zip versions preferably in the 5.x branch. Do not install PHP with the installer. Once you have PHP downloaded open a connection to your server using remote desktop. Make sure when you connect you select options. When you see all the options at the top click local resources. Check the box that says bring local disks to server. Now type in your admin login and password and connect. A box will popup asking if you want to bring your disks to the server. Click OK.Now you&#8217;re connected to your server. Open My Computer and you&#8217;ll see the server disks as well as your disks. Browse to the servers C:\Inetpub directory. If you have Inetpub on a different drive than C then browse to it. Now minimize the RDP connection. On your own computer browse to where you downloaded the php zip. You did download the zip didn&#8217;t you? Again don&#8217;t use the installer. Extract the zip. You should now have a folder called php-5.x.x.</p>
<p>Now we&#8217;ll move the php folder to your server. Right click the folder and select copy. Maximize you RDP connection. Make sure that C:\Inetpub is open. Right click and select paste. It might take some time for the menu to popup after you right click. It will. Select paste you&#8217;ll see a transfer box come up and it will transfer the php-5.x.x folder to C:\Inetpub. Another option and maybe a faster option is to start remote desktop and download PHP on the server.</p>
<p>Now that you have PHP downloaded and in place in C:\Inetpub it&#8217;s time to set IIS to use it to parse .php  pages.</p>
<p>First thing to do is rename php.ini.recommended to php.ini. We won&#8217;t edit it at this time. The defaults of the recommended ini is good to get PHP running.</p>
<p>First thing to do is set up the path to php in Environment Variables.</p>
<ol>
<li>Click start and right click My Computer.</li>
<li>Select the Advanced tab.</li>
<li>Click Environment Variables</li>
</ol>
<p>In the bottom box select Path and then Edit button. At the end of the Path variable add ;C:\Inetpub\php-5.x.x.<br />
Substitute the folder path to what folder you actually have PHP in. There is one thing we need to do while you have the variables box open. Click the New button. In the Variable Name field put PHPRC. In the Variable Value field put C:\Inetpub\php-5.x.x. All done close that out and click apply for the changes to take affect.</p>
<p>Note: You might have to reboot the server so the new path and new variable take effect. To test it open a command window and type php. If you get an error then you&#8217;ll have to reboot. Don&#8217;t yet we still have work to do.</p>
<p>Now lets configure IIS to use PHP.</p>
<p>Open up IIS Manager. Start > Administrative Tools > Internet Information Services (IIS) Manger.</p>
<p>First thing we&#8217;ll do is add a new web service extension and enable it. In the left pane click on Web Service Extensions. in the left you&#8217;ll now see some options. Click add new web service extension. A box will popup. For the Extension name add PHP-IASPI. Click Add to add the required file. Browse to C:\Inetpub\php-5.x.x or whatever folder you put php in and select php php5isapi.dll. Check the Set extension status to allow box. Click ok to apply. IIS is now setup  to use PHP, but, we aren&#8217;t quit done yet.</p>
<p>While still in IIS Manager expand My Websites. If you only have Default Website it&#8217;s a breeze getting PHP running.</p>
<p>Right click Default Website and select properties.  Once the properties window comes up select Home Diretory tab. In Excutive settings in the dropdown select scripts only and click create. If you already have ASP or other scripts running on the server the Application will already be enabled for scripts. If you see an application name then skip the above step.</p>
<p>Click on the Configuration button. Click Add. When the box comes up you&#8217;ll see the Executable box with a browse button next to it. Click browse and navigate to the php5isapi.dll the same as you did when you added the web services extension. In the extension box add php. Uncheck Verify if exists. Click OK and apply. If you need to have php parse different extensions use the same procedure to add more extensions.</p>
<p>All done. Now it&#8217;s time to test it out. Open Note pad and put < ?php phpinfo(); ?> in it. Save it as test.php in your websites root. Make sure it doesn&#8217;t save as test.php.txt. If it did rename it to test.php. Open up your browser and browse to http://yoursite.tld/test.php. If you see the PHP information page then you have done everything correctly.</p>
<p>If you got an error when you tried to run php at the command prompt then reboot your server.</p>
<p>If you don&#8217;t see that page then retrace your steps to find your error.<br />
If you have more than one website and if you want PHP to work in each you have to configure each site like you did the Default Website. In the next installment we&#8217;ll add some extensions and set up PEAR.</p>
<p><br />
<script type="text/javascript"><!--
google_ad_client = "pub-2292466120976221";
/* Admin Reports Posts */
google_ad_slot = "2391864490";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://adminreports.com/installing-php/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
