<?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>notes2myself &#187; gentoo</title>
	<atom:link href="http://spinczyk.net/blog/tag/gentoo/feed/" rel="self" type="application/rss+xml" />
	<link>http://spinczyk.net/blog</link>
	<description>a seo and web-developer's daily stuff</description>
	<lastBuildDate>Tue, 19 Oct 2010 10:34:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Installing apache, mysql and php on gentoo</title>
		<link>http://spinczyk.net/blog/2008/11/25/installing-apache-mysql-and-php-on-gentoo/</link>
		<comments>http://spinczyk.net/blog/2008/11/25/installing-apache-mysql-and-php-on-gentoo/#comments</comments>
		<pubDate>Tue, 25 Nov 2008 12:00:58 +0000</pubDate>
		<dc:creator>simon</dc:creator>
				<category><![CDATA[gentoo]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://spinczyk.net/blog/?p=27</guid>
		<description><![CDATA[Just right now I&#8217;m setting up my new home server for various things. It&#8217;ll do all of my ranking stuff of course, since it&#8217;s very easy for me to get a new ip once G is blocking me. Right now &#8230; <a href="http://spinczyk.net/blog/2008/11/25/installing-apache-mysql-and-php-on-gentoo/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Just right now I&#8217;m setting up my new home server for various things. It&#8217;ll do all of my ranking stuff of course, since it&#8217;s very easy for me to get a new ip once G is blocking me. Right now most of the scripts are coded in python, but some essentials are still running on php (though not for long), so i need a running lamp (besides torrentflux and so on&#8230;). The last time i set up a clean server on <a title="Gentoo Linux" href="http://www.gentoo.org" target="_blank">gentoo</a> is quite a few years back now. Eventhough it was a lot of fun and always a good chance to learn some things, I must admit it&#8217;s gotten quite easy now. It took me quite some time getting the new php5 running with apache a few years ago. Now theres nothing really special you need to do. Just fire up portage and install it. Before you do, you might wanna edit a few files though. First of all make sure you add <strong>mysql</strong> and <strong>apache2</strong> to your global use flags in /etc/make.conf, then you&#8217;ll have to think about some apache options. First of all how will the server process run on your system? Since I&#8217;ve loads of RAM and don&#8217;t really have any traffic except some requests of my one, no virtual hosts, no nothing, I&#8217;ll go with a forked apache. For further information refer to the <a href="http://httpd.apache.org/docs/2.0/en/mod/prefork.html" target="_blank">apache manual</a>. For an forked MPM version of apache just do a quick:</p>
<div class="commenttext" style="margin-left:20px;">
<pre lang="bash">#echo "APACHE2_MPMS="prefork" &gt;&gt; /etc/make.conf</pre>
</div>
<p><br/><br />
There&#8217;s one thing left to do: Define what modules you want your apache to run with. As always gentoo provides a very easy way to do that. If you want to know what modules you can install just do a quick</p>
<div class="commenttext" style="margin-left:20px;">
<pre lang="bash">#emerge --pretend --verbose --oneshot apache</pre>
</div>
<p><br/><br />
to see all available modules. You&#8217;ll at least want those to be installed, since they are kind of needed <img src='http://spinczyk.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="commenttext" style="margin-left:20px;">
<pre lang="bash">#echo "APACHE2_MODULES="alias auth_basic auth_digest
rewrite authz_host dir mime" &gt;&gt; /etc/make.conf</pre>
</div>
<p><br/><br />
Not all of them are mandatory, but you&#8217;ll at least need to install authz_host, dir and mime for your apache to run. Now you&#8217;re ready to go, just fire up portage with a quick</p>
<div class="commenttext" style="margin-left:20px;">
<pre lang="bash">#emerge apache</pre>
</div>
<p><br/><br />
Now just install php by firing up portage again, but remember to set the use flags you&#8217;ll need by updating your /etc/portage/package.use, since there are quite some options&#8230; As always you can see available use flags by executing an pretended oneshot emerge of php! When you&#8217;re done, just install php by</p>
<div class="commenttext" style="margin-left:20px;">
<pre lang="bash">#echo "dev-lang/php apache2 bzip2 curl exif ftp gd iconv mysql
mysqli nls pcre session simplexml soap spell spl sqlite ssl
tokenizer truetype unicode xml xmlrpc" &gt;&gt; /etc/portage/package.use</pre>
</div>
<p><br/></p>
<div class="commenttext" style="margin-left:20px;">
<pre lang="bash">#emerge php</pre>
</div>
<p><br/><br />
and you&#8217;re good to go! Just start your apache with the according init script and everything should work out of the box. You&#8217;ll probably want your apache to start automatically too, by adding it to your default runlevel:</p>
<div class="commenttext" style="margin-left:20px;">
<pre lang="bash">#/etc/init.d/apache start</pre>
</div>
<p><br/></p>
<div class="commenttext" style="margin-left:20px;">
<pre lang="bash">#rc-update add apache default</pre>
</div>
<p><br/><br />
But just remember: This is a very basic installation of lamp on your system, it&#8217;ll work as it is, but you might wanna tune your settings. As always just refer to the man pages and online documentations!</p>
]]></content:encoded>
			<wfw:commentRss>http://spinczyk.net/blog/2008/11/25/installing-apache-mysql-and-php-on-gentoo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

