<?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>Code in my Bug! &#187; mysql</title>
	<atom:link href="http://projectbee.org/blog/archive/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://projectbee.org/blog</link>
	<description>Bipin&#039;s experiments with life, society, programming, hacking, &#38; other stuff</description>
	<lastBuildDate>Mon, 23 Jan 2012 18:49:15 +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>Apache Headache: &#8220;no listening sockets available&#8221;</title>
		<link>http://projectbee.org/blog/archive/apache-headache-no-listening-sockets-available/</link>
		<comments>http://projectbee.org/blog/archive/apache-headache-no-listening-sockets-available/#comments</comments>
		<pubDate>Wed, 08 Aug 2007 10:46:28 +0000</pubDate>
		<dc:creator>Bipin 3 Upadhyay</dc:creator>
				<category><![CDATA[apache]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[education]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[humour]]></category>
		<category><![CDATA[life]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[lamp]]></category>

		<guid isPermaLink="false">http://codeinmybug.wordpress.com/2007/08/08/apache-headache-no-listening-sockets-available/</guid>
		<description><![CDATA[Update 1: I was unable to configure MySQL. Reason: It was installed in C:\(blah-blah) and , probably, do not have write rights in the directory. Installing it to D:\(bigBlah) solved the issue. Duh! Update 2: I see a fairly good traffic coming here searching for the same problem. So, in case you are in a hurry, [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Update 1: </strong>I was unable to configure MySQL. Reason: It was installed in C:\(blah-blah) and , probably, do not have write rights in the directory. Installing it to D:\(bigBlah) solved the issue. Duh!</p>
<p><strong>Update 2</strong>: I see a fairly good traffic coming here searching for the same problem. So, in case you are in a hurry, this is mostly a summary to inform you that in all probability, <strong>YOU HAVE SOME SERVICE RUNNING ON PORT 80</strong>. Check out using TCPView (if you are on windows). Hope that helps. <img src='http://projectbee.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I am currently working on an official XSS (Cross Site Scripting) presentation. I needed some screenshots of alert boxes and defaced site. So I installed Apache, configured it to work with PHP. (If you need help in <a href="http://codeinmybug.wordpress.com/2006/02/25/apache-mysqlphp-installation-configuration-tutorial-for-beginners/">installing and configuring MySQL, Apache and PHP, look here</a>).</p>
<p>But this was day before yesterday. Yesterday, I needed to make a quick manipulation to the script, but&#8230; Apache won&#8217;t start. The error I was getting (using eventvwr) was:</p>
<blockquote><p>&gt;&gt;&gt; (OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted. : make_sock: could not bind to address 0.0.0.0:80 .</p></blockquote>
<p>It&#8217;s pretty apparent that some other jerk was sitting and listening at port 80. Yesterday, however, was too hectic to discover the rat. Today, I ran <a href="http://www.microsoft.com/technet/sysinternals/Networking/TcpView.mspx">TCPView</a> (thanks to <a href="http://shruthisethi.wordpress.com/">Shruthi</a> for suggesting) to discover that inetinfo.exe was the ra**al. TCPView is one of the nicest tools created by the guys at SysInternals, which was later acquired by Microsoft. Rats!</p>
<p>Anyways, the fun part was stopping the service. I couldn&#8217;t kill it. Neither using TCPView, nor Task Manager. It would again span back to life <img src='http://projectbee.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So, finally I opened services.msc to stop the IIS server and change the automatic start mode to manual mode. Heck! I should have disabled&#8230; or even better, deleted the scoundrel. <img src='http://projectbee.org/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>So, if you have the same problem, you are in all probability in office right now and hence may not be aware what services are running. Use TCPView to discover all those unnecessary network services. It&#8217;s a great tool. Further, you might also want to switch some stupid services from automatic start mode to manual (or disable <img src='http://projectbee.org/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> ). Use Services.msc.</p>
Similar Posts:<ul><li><a href="http://projectbee.org/blog/archive/apache-mysqlphp-installation-configuration-tutorial-for-beginners/" rel="bookmark" title="February 25, 2006">Apache-MySQLPHP Installation &#38; Configuration Tutorial for Beginners :)</a></li>

<li><a href="http://projectbee.org/blog/archive/m-windowsxp-just-got-a-newer-version-of-update-with-new-components/" rel="bookmark" title="August 21, 2007">M$ WindowsXP just got a newer version of Update with new Components!</a></li>

<li><a href="http://projectbee.org/blog/archive/adsense-exploited-by-malware-trojanqhostwu/" rel="bookmark" title="December 22, 2007">AdSense exploited by malware (Trojan.Qhost.WU)</a></li>

<li><a href="http://projectbee.org/blog/archive/yahoo-gone-insane/" rel="bookmark" title="August 11, 2007">Yahoo! gone Insane!</a></li>

<li><a href="http://projectbee.org/blog/archive/download-php-tidy-extension-for-mac-os-x/" rel="bookmark" title="January 24, 2012">Download PHP tidy extension for Mac OS X</a></li>
</ul><!-- Similar Posts took 5.437 ms -->]]></content:encoded>
			<wfw:commentRss>http://projectbee.org/blog/archive/apache-headache-no-listening-sockets-available/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Apache-MySQLPHP Installation &amp; Configuration Tutorial for Beginners :)</title>
		<link>http://projectbee.org/blog/archive/apache-mysqlphp-installation-configuration-tutorial-for-beginners/</link>
		<comments>http://projectbee.org/blog/archive/apache-mysqlphp-installation-configuration-tutorial-for-beginners/#comments</comments>
		<pubDate>Sat, 25 Feb 2006 16:25:00 +0000</pubDate>
		<dc:creator>Bipin 3 Upadhyay</dc:creator>
				<category><![CDATA[apache]]></category>
		<category><![CDATA[education]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[configure]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[lamp]]></category>

		<guid isPermaLink="false">http://codeinmybug.wordpress.com/2006/02/25/apache-mysqlphp-installation-configuration-tutorial-for-beginners/</guid>
		<description><![CDATA[Hi, This article is a very “narrow” tutorial aimed for complete beginners and dummies, who want to start off coding with AMP (Apache-MySQL-PHP) but do not want to read manual for installing and configuring them. This write up is very specifically targeted and applies for Windows platform. Note: To get the real and complete understanding, [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-family:Verdana;">Hi,</span><br />
<span style="font-family:Verdana;">This article is a very “narrow” tutorial aimed for complete beginners and dummies, who want to start off coding with AMP (Apache-MySQL-PHP) but do not want to read manual for installing and configuring them.</span><br />
<span style="font-family:Verdana;">This write up is very specifically targeted and applies for Windows platform.</span><br />
<span style="font-family:Verdana;"></span><br />
<span style="font-family:Verdana;">Note: To get the real and complete understanding, spend some time with the manuals. They are the best source of information.</span><br />
<span style="font-family:Verdana;"></span><br />
<b><u><span style="font-family:Verdana;">Installing and Configuring PHP5 with Apache</span></u></b></p>
<ol>
<li><span style="font-family:Verdana;">Select the most appropriate mirror for you from the following: </span><a href="http://www.apache.org/dyn/closer.cgi/httpd/binaries/win32/">http://www.apache.org/dyn/closer.cgi/httpd/binaries/win32/</a><span style="font-family:Verdana;"> (for Apache), and </span><a href="http://www.php.net/downloads.php">http://www.php.net/downloads.php</a><span style="font-family:Verdana;"> for PHP.</span></li>
<li><span style="font-family:Verdana;">Download </span><i><span style="font-family:Verdana;">apache_1.3.x-win32-x86-no_src.exe </span></i><span style="font-family:Verdana;">and PHP 5.1.2 zip package (names </span><i><span style="font-family:Verdana;">PHP-5.x-win32</span></i><span style="font-family:Verdana;">).</span>
<ul>
<li>DO NOT use Apache 2.x with PHP.</li>
<p><span style="font-family:Verdana;"></span></p>
<li>If you use PHP 4.x, make proper changes in the some of the steps given below.</li>
</ul>
</li>
<p><span style="font-family:Verdana;">Note:</span></p>
<li><span style="font-family:Verdana;">Install Apache by simply clicking on the exe file. The default path is C:\Program Files\Apache Group\Apache.</span></li>
<li><span style="font-family:Verdana;">Unzip the PHP file to </span><b><span style="font-family:Verdana;">C:\PHP</span></b><span style="font-family:Verdana;">.</span></li>
<li><span style="font-family:Verdana;">Add </span><b><span style="font-family:Verdana;">C:\PHP </span></b><span style="font-family:Verdana;">to system path.</span></li>
<li><span style="font-family:Verdana;">Backup and rename php.ini.dist to php.ini.</span></li>
<li><span style="font-family:Verdana;">Copy </span><b><span style="font-family:Verdana;">php5ts.dll </span></b><span style="font-family:Verdana;">and </span><b><span style="font-family:Verdana;">php.ini </span></b><span style="font-family:Verdana;">to %systemroot%.</span></li>
<li><span style="font-family:Verdana;">Copy </span><b><span style="font-family:Verdana;">php5apache.dll </span></b><span style="font-family:Verdana;">to </span><b><span style="font-family:Verdana;">C:\Program Files\Apache Group\Apache</span></b><span style="font-family:Verdana;">.</span></li>
<li><span style="font-family:Verdana;">Open cmd (command prompt) and run net stop apache (to obviously stop the server).</span></li>
<li><span style="font-family:Verdana;">Backup </span><b><span style="font-family:Verdana;">httpd.conf</span></b><span style="font-family:Verdana;">, located in </span><b><span style="font-family:Verdana;">C:\Program Files\Apache Group\Apache\conf</span></b><span style="font-family:Verdana;">, and then open it in an editor to add the following lines:</span>
<ul>
<li><i><span style="font-family:Verdana;">LoadModule php5_module php5apache.dll</span></i></li>
<li><i><span style="font-family:Verdana;">AddType application/x-httpd-php .php</span></i></li>
<li><i><span style="font-family:Verdana;">AddModule mod_php5.c </span></i><span style="font-family:Verdana;"></span><span style="font-family:Verdana;">[</span><span style="font-family:Verdana;">If</span><span style="font-family:Verdana;"> you face any problems, remove this line and check again]<br />
</span></li>
</ul>
</li>
<li><span style="font-family:Verdana;">Net start Apache.</span></li>
<li><span style="font-family:Verdana;">To check if all everything is in place, write the following code in a notepad and save it as “phpinfo.php” (with inverted quotes).</span></li>
</ol>
<blockquote><p><b><span style="font-family:Verdana;">&lt;?php</span><br />
phpinfo();<br />
?&gt;</b></p></blockquote>
<ol>
<li><span style="font-family:Verdana;">Place the file in your DocumentRoot directory. The default path is </span><b><span style="font-family:Verdana;">C:/Program Files/Apache Group/Apache/htdocs.</span></b></li>
<li><span style="font-family:Verdana;">Start your Mozilla Firefox browser (it’s not mandatory, just a recommendation <img src='http://projectbee.org/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> ), and type </span><b><i><span style="font-family:Verdana;">http://localhost/phpinfo.php</span></i></b><span style="font-family:Verdana;">. </span></li>
<li><span style="font-family:Verdana;">If everything’s fine, we’ll see something like this:</span></li>
</ol>
<p><span style="font-family:Verdana;"></span><span style="font-family:Verdana;"></span></p>
<div style="text-align:center;"><img src="http://projectbee.org/blog/wp-content/uploads/2008/02/phpinfo.jpg" alt="phpinfo.jpg" /></div>
<p><b><u><span style="font-family:Verdana;">Installing MySQL</span></u><span style="font-family:Verdana;">:</span></b></p>
<ol>
<li><span style="font-family:Verdana;">We can find it in three shapes and sizes <img src='http://projectbee.org/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> , </span><i><span style="font-family:Verdana;">The Complete Package, The Essentials Package and The Noinstall Archive. </span></i><span style="font-family:Verdana;">We’d go for the complete package named </span><b><span style="font-family:Verdana;">mysql-[version]-win32.</span></b></li>
<li><span style="font-family:Verdana;">The installation part is </span><i><span style="font-family:Verdana;">click next type.</span></i></li>
<li><span style="font-family:Verdana;">At the end of the installation, click to configure and choose the options as per your choice or as given below:</span>
<ul>
<li><i><span style="font-family:Verdana;">Detailed Configuration&gt;Next</span></i></li>
<li><i><span style="font-family:Verdana;">Developer Machine&gt;Next</span></i></li>
<li><i><span style="font-family:Verdana;">Multifunctional Database&gt;Next</span></i></li>
<li><i><span style="font-family:Verdana;">&gt;Next</span></i></li>
<li><i><span style="font-family:Verdana;">Manual Settings (choose 5)&gt;Next</span></i></li>
<li><i><span style="font-family:Verdana;">Enable TCP/IP (leave default port as 3306)&gt;Next</span></i></li>
<li><i><span style="font-family:Verdana;">Add to both, windows services and ssytem path&gt;Next</span></i></li>
<li><i><span style="font-family:Verdana;">Choose root password&gt;Next</span></i></li>
<li><i><span style="font-family:Verdana;">Execute.</span></i></li>
</ul>
</li>
</ol>
<p><i><span style="font-family:Verdana;"></span></i><br />
<b><u><span style="font-family:Verdana;">Configuring MySQL &amp; PHP</span></u><span style="font-family:Verdana;">:</span></b></p>
<ol>
<li><span style="font-family:Verdana;">Open </span><i><span style="font-family:Verdana;">php.ini, </span></i><span style="font-family:Verdana;">located in %systemroot%, in and editor and uncomment the following line by removing the semicolon at the beginning of the line:</span>
<ul><span style="font-family:Verdana;"></p>
<li><i><span style="font-family:Verdana;">extension=php_mysql.dll</span></i></li>
<p></span></ul>
</li>
<li><span style="font-family:Verdana;">Copy </span><i><span style="font-family:Verdana;">php_mysql.dll </span></i><span style="font-family:Verdana;">and </span><i><span style="font-family:Verdana;">libmysql.dll </span></i><span style="font-family:Verdana;">from </span><b><span style="font-family:Verdana;">C:\PHP\ext </span></b><span style="font-family:Verdana;">to </span><b><span style="font-family:Verdana;">C:\PHP.</span></b></li>
<li><span style="font-family:Verdana;">To verify the configuration and administer MySQL, one may use </span><b><span style="font-family:Verdana;">phpmyadmin</span></b><span style="font-family:Verdana;">, found at </span><a href="http://www.phpmyadmin.net/home_page/index.php">http://www.phpmyadmin.net/home_page/index.php</a><span style="font-family:Verdana;">. However, do make sure not to publish it along with the site <img src='http://projectbee.org/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> .</span></li>
<li><span style="font-family:Verdana;">That’s it. Happy Coding (. For anymore queries, either leave your comments or refer to the manuals.</span></li>
</ol>
<p><a href="http://digg.com/submit?phase=2&amp;url=http://codeinmybug.wordpress.com/2006/02/25/apache-mysqlphp-installation-configuration-tutorial-for-beginners/"> <img src="http://www.digg.com/img/little-digg.gif" border="0" /></a></p>
Similar Posts:<ul><li><a href="http://projectbee.org/blog/archive/apache-headache-no-listening-sockets-available/" rel="bookmark" title="August 8, 2007">Apache Headache: &#8220;no listening sockets available&#8221;</a></li>

<li><a href="http://projectbee.org/blog/archive/adsense-exploited-by-malware-trojanqhostwu/" rel="bookmark" title="December 22, 2007">AdSense exploited by malware (Trojan.Qhost.WU)</a></li>

<li><a href="http://projectbee.org/blog/archive/download-php-tidy-extension-for-mac-os-x/" rel="bookmark" title="January 24, 2012">Download PHP tidy extension for Mac OS X</a></li>

<li><a href="http://projectbee.org/blog/archive/an-insight-into-suns-crazy-strategy/" rel="bookmark" title="May 26, 2007">An insight into Sun&#8217;s *crazy* strategy.</a></li>

<li><a href="http://projectbee.org/blog/archive/grabbing-video-from-youtube/" rel="bookmark" title="January 6, 2007">Grabbing Video from Youtube.</a></li>
</ul><!-- Similar Posts took 9.202 ms -->]]></content:encoded>
			<wfw:commentRss>http://projectbee.org/blog/archive/apache-mysqlphp-installation-configuration-tutorial-for-beginners/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
