<?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>Web design blog &#187; MySQL</title>
	<atom:link href="http://www.webdesignblog.biz/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webdesignblog.biz</link>
	<description>WebdesignBlog.biz</description>
	<lastBuildDate>Sun, 29 Aug 2010 12:36:43 +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>Apache PHP MySQL that is installation of a server in windows</title>
		<link>http://www.webdesignblog.biz/2009/09/apache-php-mysql-that-is-installation-of-a-server-in-windows/</link>
		<comments>http://www.webdesignblog.biz/2009/09/apache-php-mysql-that-is-installation-of-a-server-in-windows/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 22:57:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hyde Park]]></category>
		<category><![CDATA[Webdesign]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Windows XP]]></category>

		<guid isPermaLink="false">http://www.webdesignblog.biz/?p=10</guid>
		<description><![CDATA[Thinking about novice webmasters I will show you today how to start a www server of www with PHP language and MySQL datas. Such platform is necessary both to testing or modifying well-known CMS systems (Content Management System &#8211; the System of content management) or also to work on personal PHP promissory notes it can [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;; color: black;" lang="EN-GB">Thinking about novice webmasters I will show you today how to start a www server of www with PHP language and MySQL datas. Such platform is necessary both to testing or modifying well-known CMS systems <em>(Content Management System &#8211; the System of content management) </em>or also to work on personal PHP promissory notes it can be of use as a fully functional www server connected to the net (I however would recommend larger sinking in the subject for safety reasons &#8211; here however we will stick to the basics). There are ready-made packets under the windows system of &#8216;dwarf&#8217; type, but as time goes by it can come out that they will bring us more problems than benefits, for example MySQL built-in in the well-known packet WebServ has great problems when we want to administer it from under the windows console, while the console itself in a standard configuration<span> </span>does not connect with the remote hostem. These are the reasons why I recommend applying original packets, what is more they are free and one can download them without any problems from the manufacturer&#8217;s site.</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;; color: black;" lang="EN-GB"><span id="more-10"></span></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;; color: black;" lang="EN-GB"><img class="alignleft size-full wp-image-27" title="apache-http-server-logo" src="http://www.webdesignblog.biz/wp-content/uploads/2009/09/apache-http-server-logo1.jpg" alt="apache-http-server-logo" width="200" height="150" />The installation of the Apache server will be the first step, this is the most popular www server and its installation in Windows is probably even simpler than the installation of a popular communication programme which is gadu-gadu. One can download the packets from the manufacturer&#8217;s site </span><em><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;; color: #000081;" lang="EN-GB"><a href="http://httpd.apache.org/" target="_blank">httpd.apache.org</a> </span></em><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;; color: black;" lang="EN-GB">we</span><em><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;; color: #000081;" lang="EN-GB"> </span></em><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;; color: black;" lang="EN-GB">choose the package for Windows according to the requirements for novice, I recommend choosing the package with msi extension <em>(no mod_ssl) </em>and we begin the installation as in the case of every other programme in Windows, during the installation the programme will ask us about some details, so we fill in:</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;; color: black;" lang="EN-GB"><img class="aligncenter size-full wp-image-28" title="apache" src="http://www.webdesignblog.biz/wp-content/uploads/2009/09/apache.jpg" alt="apache" width="504" height="388" /></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;; color: black;" lang="EN-GB">the programme will ask us also about assumed locations, so <em>C:\ the Programme Files \ Apache Software</em></span><em><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;; color: black;" lang="EN-GB">Foundation </span></em><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;; color: black;" lang="EN-GB"><span> </span>in order to make our life easier I recommend personally to choose <em>C:\</em> <em>apache</em> After finishing the installation we can manage our Apache as every other programme in windows choosing <em>Start -&gt; all programmes -&gt; Apache HTTP Server </em>from the menu <em>Control Apache</em></span><em><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;; color: black;" lang="EN-GB"> Server</span></em><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;; color: black;" lang="EN-GB"> we can run our server, if the server starts an additional icon in tray should show up. We should check now if everything works, in order to do it in our browser we call out the address </span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;; color: #000081;" lang="EN-GB"><a href="http://localhost/">http://localhost/</a> </span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;; color: black;" lang="EN-GB">if the text &#8220;<strong>It works</strong>!&#8221; appears in your eyesight it means that everything works <img src='http://www.webdesignblog.biz/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Now when we checked the working we can enter the catalogue in which the file <em>index.html </em>that<em> </em>is <em>htdocs </em>(if you have installed it just like me it will be</span><em><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;; color: black;" lang="EN-GB"> C:\apache\htdocs) </span></em><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;; color: black;" lang="EN-GB"><span> </span>is situated and remove it, in this catalogue we also publish our files. As one can easily notice it possesses a lot of options, however I will not describe it here.</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;; color: black;" lang="EN-GB">I will add as a curiosity that I use Apache to make my life easier: when you send something to friends, for example pictures and movies from yesterdays party, which often have 500 Mb and sending it via e-mail is out of the question from known reasons, sending such files on services like rapidshare is connected with the necessity of dividing it on parts and from the downloader&#8217;s side with problems resulting from the necessity of awaiting. The solution is simple,<em> </em>we<em> </em>create next catalogue in the <em>htdocs</em> catalogu e.g. <em>files </em>and we place in it the package which we want to make accessible for others, for example this will be the package called <em>img.zip </em>the target<em> </em>address to this package will be <em>http://localhost/the files/img.zip </em>but as that localhost as the name itself tells is a local host we have to give the address of our computer to our recepients the address of our computer in the net, which is our IP. In case when you do not know your IP you can simply check it on <em>ip-adress.com </em>then we put this address in the local host place that is <em>http://your_IP/files/img.zip. </em>Now you have to send this link to all you want to send a file to and do not switch the computer off. Obviously &#8220;sensitive&#8221; in this place claim that such practices are dangerous as the file is accesible to all in the net and one should really not publish important data this way, but let&#8217;s think logically: who will be smart enough to write this address in the browser? If someone strange will even see our files then what will happen as we place these pictures on sides, blogs, social portals, everything depends on what we want to send via such method. You should also pay attention to the fact that with standard apache configuration giving the address of a concrete catalogue e.g. <em>http://your_IP/the files/</em><span> </span>will<em> </em>cause enlisting the catalogue <em>files </em>. To prevent it from happening one should put empty file <em>index.html </em>or turn off the catalogue enlisting option in Apache options.</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><strong><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;; color: black;" lang="EN-GB">WARNING</span></strong><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;; color: black;" lang="EN-GB">: to make our server visible in the internet the possession of a public IP address is necessary, otherwise only an alternative which is a NO- <em>IP type server remains.</em></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;; color: black;" lang="EN-GB"><em><img class="alignleft size-full wp-image-31" title="mysql" src="http://www.webdesignblog.biz/wp-content/uploads/2009/09/mysql.png" alt="mysql" width="190" height="99" /></em></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;; color: black;" lang="EN-GB">The installation of a MySQL server similarly to the instalation of an Apache server should not cause any problems, because one only has to download the programe statement [Windows (x86]</span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;; color: #000081;" lang="EN-GB"> </span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;; color: black;" lang="EN-GB">from the site </span><a href="http://dev.mysql.com/downloads/" target="_blank"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;; color: #000081;" lang="EN-GB">http://dev.mysql.com/downloads/</span></a><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;; color: black;" lang="EN-GB"><br />
I recommand using stable packets, because beta versions are published for advanced users and unexpected problems can happen. The installation process can practically boil to clicking <em>next, </em>however I recommend exact reading of the options of the programme statement, I for example install MySQL in the catalogue <em>C:\ mysql</em> to maintain an order in my files. MySQL system should be added to autostart and run everytime while starting Windows. There is a few versions of mysql as well as the ways of managing the datas, however in order not to prolong I will not be plunged into the subject. For me personally the console for creating new bases and management is enough, but if someone wants, he or she can always install the newest phpMyAdmin <img src='http://www.webdesignblog.biz/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;; color: black;" lang="EN-GB"><img class="alignleft size-full wp-image-33" title="php_logo" src="http://www.webdesignblog.biz/wp-content/uploads/2009/09/php_logo.png" alt="php_logo" width="150" height="80" /></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;; color: black;" lang="EN-GB">Our next step which we will make is to install the PHP language. There are 2 ways to do it: the first is with the help of an instaler (I do not recommend) and the second way is so called manual <img src='http://www.webdesignblog.biz/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  all necessary files and practically ready zip package we can download from the manufacturer&#8217;s site </span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;; color: #000081;" lang="EN-GB"><a href="http://www.php.net/downloads.php" target="_blank">http://www.php.net/downloads.php</a>.</span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;; color: black;" lang="EN-GB">We unpack the files to any catalogue e.g. we create on the disc <em>C </em>the php<em> </em>catalogue, so now we unpack the content of the package to <em>C:\php</em>. We find the file <em>php5st.dll </em>in our catalogue<em></em> (I will mark that in the moment of writing this post the stable version is 5.2.x-x) and we load it to the system catalogue <em>system32 </em>(for Windows XP this will be <em>C:\WINDOWS\system32</em>),we similarly find the file <em>php.ini-dist </em>and copy it to the catalogue <em>C:\WINDOWS </em>and we change its name to <em>php.ini. </em>The next step that we will have to execute is the edition of this file. I do not recommend the system notebook because editing in it often finishes with problems, (I recommend <strong>Notepad++</strong> to editing all files). We define the path to the catalogue of extensions, we find the option <em>extension_dir </em>and attribute the path to the </span><em><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;; color: black;" lang="EN-GB">ext </span></em><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;; color: black;" lang="EN-GB">catalogue that<em> </em>is <em>extension_dir = &#8220;C:\php\ext&#8221; . </em></span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;; color: black;" lang="EN-GB">If we have installed MySQL we have to define the additional extension so that this language could communicate with the PHP language and namely the matter is simple &#8211; we have to find the lines which define additional extensions<span> </span>that is <em>;extension = </em>and exactly this will be <em>;extension = php_mysql.dll </em><span> </span>to start the extension we remove the semicolon sign from the front &#8220;;&#8221; and ready <img src='http://www.webdesignblog.biz/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  We could also attribute the path to a temporary catalogue TEMP : we find <em>session.save_patch </em>and attribute , for Windows XP this will be something like <em>session.save_patch = C:\WINDOWS\Temp</em>, I will not write here about additional options, because it had eventually to be about basic installation so now we save the edited file. The last condition so that the php language worked on our server is adding it to Apache through the edition of the configurational file httpd.conf, we can do this from menu start, but probably it is easier to visit a suitable catalogue that is <em>C:\apache\conf </em>on the end of the file we write:</span></p>
<p><em>LoadModule php5_module c:/php/php5apache2.dll<br />
AddType application/x-httpd-php .php<br />
AddType application/x-httpd-php-source .phps</em></p>
<p><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;; color: black;" lang="EN-GB"><span></span>Find the <em>DirectoryIndex </em>line which informs our server about the perspicacious names of the files which have to be treated as the main site in the given catalogue, this looks significantly like this: <em>DirectoryIndex</em></span><em><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;; color: black;" lang="EN-GB"> index.html</span></em><span style="font-size: 12pt; line-height: 115%; font-family: &quot;Times New Roman&quot;; color: black;" lang="EN-GB"> here add <em>index.php</em>, save it, close and ready <img src='http://www.webdesignblog.biz/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  now reboot your Apache server.</span></p>
<p><span style="font-size: 12pt; line-height: 115%; font-family: &quot;Times New Roman&quot;; color: black;" lang="EN-GB">We can now write our own promissory notes or modify different (depends on what who likes) on our local &#8216;workshop&#8217; without the need of sending after every modification of files with the ftp client, and even without the need of connection with the net. I am waiting for comments if you like my work <img src='http://www.webdesignblog.biz/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;">
]]></content:encoded>
			<wfw:commentRss>http://www.webdesignblog.biz/2009/09/apache-php-mysql-that-is-installation-of-a-server-in-windows/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
	</channel>
</rss>
