<?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>Proxyutza blog &#187; Debian</title>
	<atom:link href="http://www.proxyutza.com/category/debian/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.proxyutza.com</link>
	<description>About all sorth of things: PHP, Hacks, Scripts, Servers, Linux, Technology, News, Trends</description>
	<lastBuildDate>Wed, 26 May 2010 10:37:11 +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>Reset MySQL root password</title>
		<link>http://www.proxyutza.com/reset-mysql-root-password/</link>
		<comments>http://www.proxyutza.com/reset-mysql-root-password/#comments</comments>
		<pubDate>Thu, 13 Mar 2008 17:39:46 +0000</pubDate>
		<dc:creator>ProXy</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[root]]></category>

		<guid isPermaLink="false">http://www.proxyutza.com/2008/03/13/reset-mysql-root-password/</guid>
		<description><![CDATA[Today i had the bad luck to run into this problem. On one of my servers i have debian installed on it, nothing fancy , apache, mysql, phpmyadmin and cacti. I never use this server for hard work or anything that goes public, just personal stuff and different projects for testing purpose. Today i wanted [...]]]></description>
			<content:encoded><![CDATA[<p>Today i had the bad luck to run into this problem. On one of my servers i have debian installed on it, nothing fancy , apache, mysql, phpmyadmin and cacti. I never use this server for hard work or anything that goes public, just personal stuff and different projects for testing purpose. Today i wanted to install the KFM script, the main reason beeing the ability to edit files very easy online, i mean text files. Its AJAX interface its very nice and provides all the functionality that you need. So this KFM script uses a database, i said no problem, but when i tried to access my phpmyadmin, surprise i couldn&#8217;t get the password to work. I never had an issue like this in the past, so i didn&#8217;t knew what to do. But the mighty <a href="http://www.google.com" title="Google searchengine" target="_blank">Google</a> saved me. After doing a little research i found out what i need to do in order to reset my MySQL root password. There are basically five steps which you need to pass.</p>
<p>#1 Is to stop the mysql process with the following command:</p>
<p><strong>/etc/init.d/mysql stop</strong></p>
<p>#2 You need to start the MySQL(mysqld) server process with the &#8211;skip-grant-tables option so that it will skip the password verification. We do this with the following command:</p>
<p><strong>mysqld_safe &#8211;skip-grant-tables &amp;</strong></p>
<p>and you should get a result something like this:</p>
<pre>Starting mysqld daemon with databases from /var/lib/mysql</pre>
<pre>mysqld_safe[5121]: started</pre>
<p>#4 Now you can connect to MySQL as the root user with the following command:<br />
<code><br />
<strong>mysql -u root</strong></code></p>
<p>and you should get a result something like this:</p>
<p><code>Welcome to the MySQL monitor.  Commands end with ; or \g.<br />
Your MySQL connection id is 227<br />
Server version: 5.0.32-Debian_7etch5-log Debian etch distribution</code></p>
<p><code>Type 'help;' or '\h' for help. Type '\c' to clear the buffer.</code></p>
<p><code>mysql&gt;</code></p>
<p>#4 Now you need to setup the new root password</p>
<p><code>mysql&gt; use mysql;</code><br />
<code>mysql&gt; update user set password=PASSWORD("NEW-ROOT-PASSWORD") where User='root';</code><br />
<code>mysql&gt; flush privileges;</code><br />
<code>mysql&gt; quit</code></p>
<p>#5 Stop then start theMySQL server and test the new password</p>
<p><strong>/etc/init.d/mysql stop</strong></p>
<p><strong>/etc/init.d/mysql start</strong></p>
<p><strong>mysql -u root -p</strong></p>
<p>When i think about it now, it was quite easy, but when i was searching for the solution it was quite hard to get to it <img src='http://www.proxyutza.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.proxyutza.com/reset-mysql-root-password/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Apache &#8211; Restrict access to certain directory by IP</title>
		<link>http://www.proxyutza.com/apache-restrict-access-to-certain-directory-by-ip/</link>
		<comments>http://www.proxyutza.com/apache-restrict-access-to-certain-directory-by-ip/#comments</comments>
		<pubDate>Wed, 27 Feb 2008 09:26:26 +0000</pubDate>
		<dc:creator>ProXy</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[forbidden]]></category>
		<category><![CDATA[restric access]]></category>

		<guid isPermaLink="false">http://www.proxyutza.com/2008/02/27/apache-restrict-access-to-certain-directory-by-ip/</guid>
		<description><![CDATA[You can use this method to allow certain ip&#8217;s to access certain directories or to deny certain ip&#8217;s to access certain directories, its up to you how you want to protect that directory. In this example im gonna show you how to restrict access to a directory named &#8220;restricted&#8221; to a single ip, so when [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Hide Apache Version info from footer for a more secured webserver" rel="attachment wp-att-14" href="http://www.proxyutza.com/hide-apache-version-info-from-footer-for-a-more-secured-webserver/hide-apache-version-info-from-footer-for-a-more-secured-webserver/"><img src="http://www.proxyutza.com/wp-content/uploads/2008/02/apache_webserver_logo.png" alt="Hide Apache Version info from footer for a more secured webserver" align="left" /></a>You can use this method to allow certain ip&#8217;s to access certain directories or to deny certain ip&#8217;s to access certain directories, its up to you how you want to protect that directory. In this example im gonna show you how to restrict access to a directory named &#8220;restricted&#8221; to a single ip, so when any other ip that is not in the list tries to access that directory it will get a page saying</p>
<h1>Forbidden</h1>
<p>You don&#8217;t have permission to access /restricted on this server.</p>
<p>The explanations work on Debian with Apache2 tested by me, but also it should work on any other OS and Apache2 version. Here is how you do it: you need to edit the following file /etc/apache2/sites-available/default and you do that with the following commmand:</p>
<p><strong>nano /etc/apache2/sites-available/default </strong></p>
<p>now at the end of the file on top of &lt;/VirtualHost&gt; you need to add the following:</p>
<p><strong>&lt;Directory &#8220;/var/www/restricted/&#8221;&gt;<br />
Options Indexes MultiViews FollowSymLinks<br />
AllowOverride None<br />
Order deny,allow<br />
Deny from all<br />
Allow from 1.1.1.1<br />
&lt;/Directory&gt;</strong></p>
<p>replace &#8220;1.1.1.1&#8243; with your ip and  &#8220;/var/www/restricted/&#8221; with the path to the directory you want to restrict access to.</p>
<p>Now press ctrl+x and then Y to confirm and save the modifications. Now we need to reload the config file with the following command and we are done.</p>
<p><strong>/etc/init.d/apache2 reload </strong></p>
<p><span style="color: #888888;">Most of the Microsoft <a href="http://www.testking.com/70-624.htm">70-624</a> deploying and maintaining windows vista client and 2007 office system desktops and Microsoft <a href="http://www.testking.com/70-238.htm">70-238</a> deploying messaging solutions with exchange server 2007 professionals deem Cisco <a href="http://www.testking.com/642-971.htm">642-971</a> data center network infrastructure design and Microsoft <a href="http://www.testking.com/70-453.htm">70-453</a> for transition MCITP SQL server 2005 DBA mandatory for every IBM <a href="http://www.testking.com/000-960.htm">000-960</a> storage sales.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.proxyutza.com/apache-restrict-access-to-certain-directory-by-ip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hide Apache Version info from footer for a more secured webserver</title>
		<link>http://www.proxyutza.com/hide-apache-version-info-from-footer-for-a-more-secured-webserver/</link>
		<comments>http://www.proxyutza.com/hide-apache-version-info-from-footer-for-a-more-secured-webserver/#comments</comments>
		<pubDate>Tue, 26 Feb 2008 08:50:06 +0000</pubDate>
		<dc:creator>ProXy</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Apache2]]></category>
		<category><![CDATA[footer]]></category>
		<category><![CDATA[ServerSignature]]></category>
		<category><![CDATA[ServerTokens]]></category>
		<category><![CDATA[webserver]]></category>

		<guid isPermaLink="false">http://www.proxyutza.com/2008/02/26/hide-apache-version-info-from-footer-for-a-more-secured-webserver/</guid>
		<description><![CDATA[I always hate the thing that after a new install of Debian(which is my favourite server OS) and Apache2(very stable webserver) i get that footer on List and Error pages that presents whoever visits that page with full info on name and version of modules installed. Thats not very safe, because these days the web [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.proxyutza.com/2008/02/26/hide-apache-version-info-from-footer-for-a-more-secured-webserver/hide-apache-version-info-from-footer-for-a-more-secured-webserver/" rel="attachment wp-att-14" title="Hide Apache Version info from footer for a more secured webserver"><img src="http://www.proxyutza.com/wp-content/uploads/2008/02/apache_webserver_logo.png" alt="Hide Apache Version info from footer for a more secured webserver" /></a></p>
<p>I always hate the thing that after a new install of Debian(which is my favourite server OS) and Apache2(very stable webserver) i get that footer on List and Error pages that presents whoever visits that page with full info on name and version of modules installed. Thats not very safe, because these days the web is full of exploits and i dont want some script kiddie to find a nice exploit and deface my website because of the info provided by Apache. So here is what you need to do to remove that information:</p>
<p>with the following command we edit the apache2 config file:</p>
<p><strong>nano /etc/apache2/apache2.conf </strong></p>
<p>now press ctrl+W to open the find prompt and search for &#8220;ServerTokens&#8221;, you will now see a line that usually is set by default to ServerTokens Full, go ahead and  change that line to ServerTokens Prod.  Setting this to Prod only displays Apache and nothing else.</p>
<p>now press ctrl+W again to open the find promp and search for &#8220;ServerSignature&#8221; you will now see a line that usually is set by default to ServerSignature On, go ahead and change that line to ServerSignature Off. The ServerSignature directive allows the configuration of a trailing footer line under server-generated documents.</p>
<p>Now press ctrl+x and the Y to save to changes we made and run the following command to reload the Apache config:</p>
<p><strong>/etc/init.d/apache2 reload</strong></p>
<p>Everything is done, you now have a more secured webserver.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.proxyutza.com/hide-apache-version-info-from-footer-for-a-more-secured-webserver/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
