<?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>Devolux 2010 &#187; Apache</title>
	<atom:link href="http://devolux.nh2.me/category/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://devolux.nh2.me</link>
	<description>WordPress resource</description>
	<lastBuildDate>Sat, 04 Sep 2010 09:24:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PHP and MySQL</title>
		<link>http://devolux.nh2.me/2009/03/php-and-mysql/</link>
		<comments>http://devolux.nh2.me/2009/03/php-and-mysql/#comments</comments>
		<pubDate>Sun, 22 Mar 2009 21:39:20 +0000</pubDate>
		<dc:creator>Devolux</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://devolux.org/?p=111</guid>
		<description><![CDATA[To set up PHP and MySQL on your server, you have to add several packages. My server runs with Ubuntu, so I just installed the necessary software via SSH. All of these packages reside in the Ubuntu resources, so you dont't even have to download them.]]></description>
			<content:encoded><![CDATA[<p>To set up PHP and MySQL on your server, you have to add several packages. My server runs with Ubuntu, so I just installed the necessary software via SSH. All of these packages reside in the Ubuntu resources, so you dont&#8217;t even have to download them.</p>
<p>Use <code>sudo apt-get install packagename</code> and enter it for the following packages:</p>
<ul>
<li>php5</li>
<li>mysql5</li>
<li>mysql-server</li>
<li>php5-mysql</li>
<li>mysql-client</li>
<li>phpmyadmin</li>
</ul>
<p>It is possible that you need an older version of PHP or MySQL for some applications. In that case, just add php4 or something similar to the list. Even if you don&#8217;t seem to need it, always add the newest packages to your server. Phpmyadmin is not required. You may also use another application to handle your databases.</p>
]]></content:encoded>
			<wfw:commentRss>http://devolux.nh2.me/2009/03/php-and-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VServer security steps</title>
		<link>http://devolux.nh2.me/2009/03/vserver-security-steps/</link>
		<comments>http://devolux.nh2.me/2009/03/vserver-security-steps/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 16:34:53 +0000</pubDate>
		<dc:creator>Devolux</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://devolux.org/?p=56</guid>
		<description><![CDATA[When organizing a VServer without Plesk - which is really helpful to understand its architecture and functions - you should apply several security steps on your own. Here's what I did for mine since I have removed Plesk about a month ago.]]></description>
			<content:encoded><![CDATA[<h2>Changing the SSH port</h2>
<p>In order to prevent your SSH connection from being found by crackbots, you should change the default port 22. Go to /etc/ssh and open the sshd_config file. Ports are listed in line 5. Now substitute the default by a random value somewhere between 10000 and 65000. Save and reload Apache using <code>/etc/init.d/apache2 reload</code>.<strong><br />
Note:</strong> From now on you have to access your server via SSH using <code>ssh -p XXXXX user@IP</code>.</p>
<h2>Apache configuration</h2>
<p>Append the following lines to your apache2.conf file:</p>
<pre name="code" class="css">
Options None +FollowSymLinks

&lt;Directory /&gt;
Order Deny,Allow
Deny from all
AllowOverride None
&lt;/Directory&gt;

&lt;Directory /var/www/&gt;
Order Deny,Allow
Allow from all
AllowOverride all
&lt;/Directory&gt;
</pre>
<p><strong>Code explanation: </strong>Line 1 turns off all apache options (this prevents directory listing and develops server performance) except FollowSymLinks, which is necessary if you want to use mod_rewrite correctly. The following lines grant access only to your www-folder.</p>
<h2>Setting up phpmyadmin</h2>
<p>To protect your databases from unwelcome visitors it is advisable to take these two steps:</p>
<ol>
<li>Verify that your MySQL users are allowed to access your server only from <code>localhost</code>.  Thus your databases can only be used by applications installed on your own server. When creating a new user you will find the field &#8220;Host&#8221; to adjust it.</li>
<li>Create an own vhost for your phpmyadmin installation. You can use a subdomain for this purpose. Besides choose a name as unique as possible.</li>
</ol>
<h3>Problem with subdomains</h3>
<p>When setting up my first subdomain for phpmyadmin, I found that my server duplicated the parent domain content instead of displaying the subdomain. I could finally resolve this problem by adding these two lines to my <code>apache2.conf</code>:</p>
<pre name="code" class="css">
NameVirtualHost *:80
NameVirtualHost *:443
</pre>
]]></content:encoded>
			<wfw:commentRss>http://devolux.nh2.me/2009/03/vserver-security-steps/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

