<?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>Schwarz Network &#187; Tutorials</title>
	<atom:link href="http://bobschwarz.com/category/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://bobschwarz.com</link>
	<description></description>
	<lastBuildDate>Sun, 29 Jan 2012 16:41:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Adding A, IP, MX Records to a Windows DNS zone</title>
		<link>http://bobschwarz.com/adding-a-ip-mx-records-to-a-windows-dns-zone/</link>
		<comments>http://bobschwarz.com/adding-a-ip-mx-records-to-a-windows-dns-zone/#comments</comments>
		<pubDate>Wed, 23 Jan 2008 21:01:55 +0000</pubDate>
		<dc:creator>Admin Reports</dc:creator>
				<category><![CDATA[Server Resources]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[DNS Zones]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://adminreports.com/adding-a-ip-mx-records-to-a-windows-dns-zone/</guid>
		<description><![CDATA[If you have to first set up your DNS server on Windows check out Setting Up Windows Server 2003 DNS Server. If you already have your Windows DNS server setup and just want to add a few records this tutorial will explain how to add those DNS records. <a class="more-link" href="http://bobschwarz.com/adding-a-ip-mx-records-to-a-windows-dns-zone/">More<span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you have to first set up your DNS server on Windows check out  <a href="http://adminreports.com/setting-up-windows-server-2003-dns-server/" rel="bookmark" title="Permanent Link to Setting Up Windows Server 2003 DNS Server">Setting Up Windows Server 2003 DNS Server</a>. If you already have your Windows DNS server setup and just want to add a few records this tutorial will explain how to add those DNS records.</p>
<p><span id="more-264"></span></p>
<p>First thing you need to do is open Windows DNS Manager if it already isn&#8217;t open.</p>
<blockquote><p>Start &gt; Administrative Tools &gt; DNS</p></blockquote>
<p>In the left window of the DNS manager expand the forward zones folder and right click the zone you want add records to.</p>
<p>Select Properties.  Now the first thing we want to do configure the Start of Authority(SOA). When you setup the zone it set defaults that are not rfc compliant. Lets get that done first.</p>
<p>The first section is the serial number. You should set each section as follows:</p>
<ul>
<li>Serial number should be in yyyymmdd01 format. Set the year, then month, then day and finally an 2 digit number that will increment every update. Start with 01</li>
<li>Primary server should be ns.yourmain.tld or whatever you called the name server. Default was the domain name. You can use the default if the root domain is actually registered as a name server for you domain</li>
<li>Responsible party would be the DNS admin email, Normally hostmaster.yourdomain.tld.</li>
<li>Refresh interval set to 20 minutes.</li>
<li>Retry interval set to 15 minutes.</li>
<li>Expires after set to 14 days.</li>
<li>Minimum time to live(TTL) set to 1 hour.</li>
<li>TTL for this record should be default so you shouldn&#8217;t have to change it. It should be 0   :1  :0  :0.</li>
</ul>
<p>Those are minimum values and can be changed if you feel the need. With those values if you use a site like <a href="http://dnsreport.com" target="_blank">DNS Reports</a> you won&#8217;t get any errors.</p>
<p>Lets add some other records now.</p>
<p><!--adsense--></p>
]]></content:encoded>
			<wfw:commentRss>http://bobschwarz.com/adding-a-ip-mx-records-to-a-windows-dns-zone/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Batch File to Backup Your Windows Server Database</title>
		<link>http://bobschwarz.com/batch-file-to-backup-your-windows-server-database/</link>
		<comments>http://bobschwarz.com/batch-file-to-backup-your-windows-server-database/#comments</comments>
		<pubDate>Tue, 22 Jan 2008 18:15:27 +0000</pubDate>
		<dc:creator>Admin Reports</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[batch file]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[windows server]]></category>

		<guid isPermaLink="false">http://adminreports.com/batch-file-to-backup-your-windows-server-database/</guid>
		<description><![CDATA[If you read <a href="http://adminreports.com/backing-up-your-data/">Backing up Your Data with cwRsync and snyc2nas</a> you learned how to send your data to an off site server. Now I'll show you a couple ways to make incremental zipped backups that you can store on your server to transfer with sync2nas or FTP the backup to your home box. <a class="more-link" href="http://bobschwarz.com/batch-file-to-backup-your-windows-server-database/">More<span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you read <a href="http://adminreports.com/backing-up-your-data/">Backing up Your Data with cwRsync and snyc2nas</a> you learned how to send your data to an off site server. Now I&#8217;ll show you a couple ways to make incremental and dated zipped backups that you can store on your server to transfer with sync2nas or FTP the backup to your home box.</p>
<p>I&#8217;ll attach the batch files at the end of the post for those that don&#8217;t want to copy and paste the code. Now lets get started.</p>
<p><span id="more-261"></span></p>
<p>For the first method you&#8217;ll need the batch file and a text file with you FTP login information and you&#8217;ll need a command line zip program. You can use <a href="http://www.winzip.com/prodpagecl.htm">Winzip Command Line Tools</a> if you have Winzip installed on the sever or<a href="http://www.7-zip.org/">7zip</a> if you have it installed. I use GNU Gzip, you download it at the projects <a href="http://gnuwin32.sourceforge.net/packages/gzip.htm">Sourceforge</a> page, so this tutorial will be specific to it.</p>
<p>First the batch file to create the backup.</p>
<p>Copy and paste this into your text editor and save as mysql-ftp.bat:</p>
<blockquote><p>@ECHO OFF</p>
<p>@REM Set directory variables.<br />
SET basedir=C:\Backup<br />
SET workdir=C:\Temp<br />
SET mysqldir=C:\path\to\mysql\bin<br />
SET gzipdir=C:\PROGRA~1\GnuWin32\bin<br />
SET mysqlpassword=mysqlpassword<br />
SET mysqluser=mysqluser</p>
<p>@REM Change to mySQL directory<br />
CD %mysqldir%</p>
<p>@REM dump all databases.<br />
mysqldump -u %mysqluser% -p%mysqlpassword% &#8211;all-databases &gt;%workdir%\backup.sql</p>
<p>@REM Change to working directory<br />
CD %workdir%</p>
<p>@REM Zip up databases<br />
%gzipdir%\gzip.exe backup.sql</p>
<p>@REM Chage the file name to a random name<br />
MOVE backup.sql.gz backup.%random%.gz</p>
<p>@REM FTP file offsite<br />
FTP -n -s:%basedir%\ftp.txt</p>
<p>@REM Remove old backup files<br />
del backup.sql<br />
del backup.*.gz</p>
<p>@REM Change back to base dir<br />
CD %basedir%</p></blockquote>
<p>Some notes on the above.</p>
<ul>
<li>basedir is the directory you are launching the batch file from.</li>
<li>workdir is the temp directory where the files are stored until the job is done.</li>
<li>mysqldir is where your mysql binaries are.</li>
<li>gzipdir is where you installed GNU gzip and this is default for the installer so no need to change it.</li>
<li>mysqlpassword is the password to connect to mysql.</li>
<li>mysqluser is mysql usr tht can connect to mysql.</li>
</ul>
<p>Once the backup is made and FTP was sent the script will delete the backup file. If you want to keep the backups it created remove these lines.<br />
<code><br />
@REM Remove old backup files<br />
del backup.sql<br />
del backup.*.gz<br />
</code></p>
<p>If you want to backup only one database instead of all of them change this line:<br />
<code><br />
mysqldump -u %mysqluser% -p%mysqlpassword% --all-databases &gt;%workdir%\backup.sql<br />
</code><br />
To This:<br />
<code><br />
mysqldump -u %mysqluser% -p%mysqlpassword% databasename &gt;%workdir%\backup.sql<br />
</code><br />
If you noticed this line,<br />
<code><br />
FTP -n -s:%basedir%\ftp-commands.txt<br />
</code><br />
You&#8217;ll now need the contents of the FTP script which you will place in the basedir where the batch file is. Here it is.<br />
<code><br />
open<br />
<a href="ftp://ftp.yourftpserver.com" style="color: #006620; background-color: #fff9ab" class="linkification-ext" title="Linkification: ftp://ftp.yourftpserver.com">ftp.yourftpserver.com</a><br />
user<br />
username<br />
password<br />
bin<br />
put backup.*.gz<br />
quit<br />
</code></p>
<p>That&#8217;s it. Copy the batch file code, make any of the changes outlined above and call it backuptoftp.bat and copy the FTP script and name it ftp.txt.</p>
<p>Read on and I&#8217;ll give you another example that will make a date based backup and store it on your server for later transfer.</p>
<p>&nbsp;</p>
<p><!--adsense--></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://bobschwarz.com/batch-file-to-backup-your-windows-server-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting Up Windows Server 2003 DNS Server</title>
		<link>http://bobschwarz.com/setting-up-windows-server-2003-dns-server/</link>
		<comments>http://bobschwarz.com/setting-up-windows-server-2003-dns-server/#comments</comments>
		<pubDate>Fri, 10 Feb 2006 20:17:29 +0000</pubDate>
		<dc:creator>Admin Reports</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[windows server]]></category>

		<guid isPermaLink="false">http://adminreports.com/archives/2006/02/10/setting-up-windows-server-2003-dns-server/</guid>
		<description><![CDATA[Setting up DNS on Windows 2003 is an easy task. In this article will explain the steps to set up DNS on Windows 2003 in an easy to understand way. The first thing you need to &#8230; <a class="more-link" href="http://bobschwarz.com/setting-up-windows-server-2003-dns-server/">More<span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Setting up DNS on Windows 2003 is an easy task. In this article will explain the steps to set up DNS on Windows 2003 in an easy to understand way. The first thing you need to do is to install the DNS module. To install the DNS snapin on Windows 2003 Standard or Enterprise Server click Start and select Manage You Server. Once the Wizard opens select Add or Remove a Roll. When the wizard is done checking your hardware it will popup a box that will list all rolls you can enable. Select DNS and follow along with the prompts. It&#8217;s pretty straight forward and easy to follow. Once installed you&#8217;ll see an option to configure a DNS server. This will open the DNS Manager and start the wizard to configure your DNS server. Once the DNS manager opens you can start to set up the zones for your websites. Lets get started.</p>
<p><span id="more-244"></span><br />
Right click YouServerName in the left pane of the manager and select Configure a DNS server. The wizard will open. There will be a DNS checklist that you can click to make sure you have all the information you need to set up DNS for your domain.<br />
Once you are sure you have all the information needed click next.<br />
The first option, create a forward lookup zone, will be checked bydefault. Leave like that and click next.<br />
This step is to set your server as the maintainer of the zone. The correct option that you want is checked by default so go ahead and click next.<br />
The next step is to give this server a name. The name should be your domain. If you&#8217;re domain is mydomain.com then enter mydomain.com as the name. Once you enter the name click next.<br />
Next thing is the creation of the zone file. The zone file holds all the data for this domain. It is similar to the zone files on Linux servers. No need to change this. Leave it as default. The default will be mydomain.dns. Click next to go to the next step.<br />
In this step you&#8217;ll choose if you want to allow dynamic updates for this zone. It is not a good idea to enable this unless you plan on running a dynamic DNS server. One that can be updated by a script if the IP to your site changes. Leave this at default which is Do not allow dynamic updates. Click next to go to the next step.<br />
This step is for forwarders. This should be set to yes, the first option and defaut option, if you have a master DNS server and what to forward lookup request to that server. I wll assume this will be your default DNS server for your domain so uncheck the first option and check the option to not forward queries.<br />
That&#8217;s it. A DNS server for your domain is now set up.<br />
In DNS manager in the left window expand forward zones and you&#8217;ll see a new folder called mydomain.com. Now you can set up your host (IP) records, mx records and nameservers so that your domain resolves to your server. In the next article I write about how to set up the domains.</p>
<p><!--adsense--></p>
]]></content:encoded>
			<wfw:commentRss>http://bobschwarz.com/setting-up-windows-server-2003-dns-server/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Upgrading PHP and MYSQL on Windows</title>
		<link>http://bobschwarz.com/upgrading-php-and-mysql-on-windows/</link>
		<comments>http://bobschwarz.com/upgrading-php-and-mysql-on-windows/#comments</comments>
		<pubDate>Sat, 04 Feb 2006 21:15:51 +0000</pubDate>
		<dc:creator>Admin Reports</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. <a class="more-link" href="http://bobschwarz.com/upgrading-php-and-mysql-on-windows/">More<span class="meta-nav">&#8594;</span></a>]]></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-242"></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://bobschwarz.com/upgrading-php-and-mysql-on-windows/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Windows: Installing MYSQL</title>
		<link>http://bobschwarz.com/installing-mysql/</link>
		<comments>http://bobschwarz.com/installing-mysql/#comments</comments>
		<pubDate>Tue, 24 Jan 2006 17:52:02 +0000</pubDate>
		<dc:creator>Admin Reports</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Install mysql]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://adminreports.com/archives/2006/01/24/installing-mysql.html</guid>
		<description><![CDATA[Now that you have PHP installed it&#8217;s time to install mysql. Mysql is the database server of choice for just about all forum software packages that run on PHP enabled servers. Installing mysql and getting it &#8230; <a class="more-link" href="http://bobschwarz.com/installing-mysql/">More<span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Now that you have PHP installed it&#8217;s time to install mysql. Mysql is the database server of choice for just about all forum software packages that run on PHP enabled servers. Installing mysql and getting it ready for use on your Windows Server is very easy. At the most it shouldn&#8217;t take more than an hour or less. Lets get started.</p>
<p><span id="more-235"></span></p>
<p>First thing you want to do is head over to mysql and download the latest 4.1.x version. Just like you did when you downloaded PHP you want to download the zip. Do not download the installer package. <a href="http://dev.mysql.com/downloads/mysql/4.1.html">Download mysql here</a>.<br />
Open a remote desktop connection to your server or use an ftp client to upload the mysql zip. You can use the same procedure I outlined in <a href="http://adminreports.com/installing-php/"> Windows: Installing PHP</a> to transfer the zip. In any case you need to be connected to the server with RDP.</p>
<p>Unzip the package and you should be left with a directory named mysql-noinstall-4.1.16-win32 or something similar. Inside that folder you&#8217;ll have mysql-4.1.6-win32 dir. Rename that to mysql-4.1.16. When we installed PHP, I am assuming you read the PHP install tutorial and followed it to install PHP, you noticed I named the PHP folder in a similar way. There is a reason for this. It is much easier to upgrade to new versions. No need to overwrite any files. Windows can be quirky at time when files are overwritten. You could wind up with problems. Doing it this way you&#8217;ll never have to worry about the install not working. Doing it this way also allows you to run 2 different versions of mysql is you choose.</p>
<p>Once you renamed the folder you can move it to your C drive or whatever drive is your root drive. You should have C:\mysql-4.1.6 and inside all the mysql folders such as bin, data, and docs.<br />
Enter the mysql dir and rename my-medium.ini to my.ini.</p>
<p>Open my.ini with Notepad. You should see this:</p>
<blockquote><p>
[client]<br />
#password	= your_password<br />
port		= 3306<br />
socket		= /tmp/mysql.sock</p>
<p># Here follows entries for some specific programs</p>
<p># The MySQL server<br />
[mysqld]<br />
port		= 3306<br />
socket		= /tmp/mysql.sock<br />
skip-locking<br />
key_buffer = 16M<br />
max_allowed_packet = 1M<br />
table_cache = 64<br />
sort_buffer_size = 512K<br />
net_buffer_length = 8K<br />
read_buffer_size = 256K<br />
read_rnd_buffer_size = 512K<br />
myisam_sort_buffer_size = 8M</p>
<p>#skip-networking</p>
<p># Replication Master Server (default)<br />
# binary logging is required for replication<br />
log-bin</p>
<p># required unique id between 1 and 2^32 &#8211; 1<br />
# defaults to 1 if master-host is not set<br />
# but will not function as a master if omitted<br />
server-id	= 1</p>
<p>[mysqldump]<br />
quick<br />
max_allowed_packet = 16M</p>
<p>[mysql]<br />
no-auto-rehash<br />
# Remove the next comment character if you are not familiar with SQL<br />
#safe-updates</p>
<p>[isamchk]<br />
key_buffer = 20M<br />
sort_buffer_size = 20M<br />
read_buffer = 2M<br />
write_buffer = 2M</p>
<p>[myisamchk]<br />
key_buffer = 20M<br />
sort_buffer_size = 20M<br />
read_buffer = 2M<br />
write_buffer = 2M</p>
<p>[mysqlhotcopy]<br />
interactive-timeout
</p></blockquote>
<p>Now we need to add a couple lines to the file.<br />
At the top of the file just under<br />
[mysqld]<br />
Add these 2 lines.</p>
<p>basedir=C:/mysql-4.1.6<br />
datadir=C:/mysql-4.1.6/data</p>
<p>Now we have to change mysql.sock path to the correct path. There are 2 places to change this. Both are at the top of the file. One in the [client] section and one just below the paths you added.<br />
Change</p>
<p>socket	= /tmp/mysql.sock<br />
to<br />
socket	= C:/mysql-4.1.6/mysql.sock</p>
<p>That&#8217;s all the editing you need to do. Once your site is getting a large amount of traffic you can tweak my.ini to optimize performance. Save the changes and close Notpad.<br />
Open a command prompt, Start > Run > cmd.exe.<br />
First start mysql to make sure everything works. To do that run this command.</p>
<p>C:\mysql-4.1.16\bin\mysqld &#8211;console</p>
<p>After it runs you should see some lines of text with the last being.</p>
<p>mysqld: ready for connections</p>
<p>If there is no errors then your ready to install mysql as a service. To do that first shutdown mysql with this command</p>
<p>C:\mysql-4.1.16\bin\mysqladmin -u root shutdown.</p>
<p>To install the service invoke this command.</p>
<p>C:\mysql\bin\mysqld-max-nt.exe  &#8211;install</p>
<p>Mysql is now set to start whenever you reboot the server. Now lets start the service. To do that invoke this command</p>
<p>net start mysql</p>
<p>You should see some text that says mysql is now ready for connections. If it doesn&#8217;t start open Services manager and scroll down to the mysql service and see if the path to the binary is correct. The only time I ever had problems was when I invoked the install command without using the full path to the binary. If you did as stated above there should be no errors.<br />
Now there is one last thing to do. Add the mysql bin directory to your path so that you can work at the command line without having to be in the mysql bin dir or using the full path to the dir.</p>
<p>To add mysql to your path right click My Computer. Select Advanced tab. Click Environment Variables. In the second box highlight PATH and select edit. Add</p>
<p>;C\mysql-4.1.16\bin</p>
<p>to the end of the path. Make sure you add it exactly as above including the ;.</p>
<p>Now open another command window and type mysql. You should see mysql > ready for connections.<br />
Close the box. Congrats you now have mysql installed. You&#8217;ll want to head over to http://mysql.com and read the documentation to set root passwords and add new users.</p>
<p><!--adsense--></p>
]]></content:encoded>
			<wfw:commentRss>http://bobschwarz.com/installing-mysql/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Windows: Installing PHP</title>
		<link>http://bobschwarz.com/installing-php/</link>
		<comments>http://bobschwarz.com/installing-php/#comments</comments>
		<pubDate>Tue, 24 Jan 2006 00:14:56 +0000</pubDate>
		<dc:creator>Admin Reports</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 &#8230; <a class="more-link" href="http://bobschwarz.com/installing-php/">More<span class="meta-nav">&#8594;</span></a>]]></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-234"></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><!--adsense--></p>
]]></content:encoded>
			<wfw:commentRss>http://bobschwarz.com/installing-php/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

