<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>The Data Plumber &#187; apache</title>
	<atom:link href="http://dataplumber.wordpress.com/category/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://dataplumber.wordpress.com</link>
	<description>Networking tech stuff.</description>
	<lastBuildDate>Mon, 02 Mar 2009 07:48:40 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='dataplumber.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/31c2b205d2b8b16448c0c70e99a6c636?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>The Data Plumber &#187; apache</title>
		<link>http://dataplumber.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dataplumber.wordpress.com/osd.xml" title="The Data Plumber" />
	<atom:link rel='hub' href='http://dataplumber.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Argh!  Apache permissions on Fedora Core 4</title>
		<link>http://dataplumber.wordpress.com/2007/01/02/argh-apache-permissions-on-fedora-core-4/</link>
		<comments>http://dataplumber.wordpress.com/2007/01/02/argh-apache-permissions-on-fedora-core-4/#comments</comments>
		<pubDate>Tue, 02 Jan 2007 18:01:51 +0000</pubDate>
		<dc:creator>DataPlumber</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[apache]]></category>

		<guid isPermaLink="false">http://dataplumber.wordpress.com/2007/01/02/argh-apache-permissions-on-fedora-core-4/</guid>
		<description><![CDATA[I&#8217;ve been installing a WordPress server in work to enable blogging by the engineers.  The idea is that if everyone keeps an online notebook of what they&#8217;ve been doing, and we crawl it with our Sharepoint server, you&#8217;ll have ready access to everyone&#8217;s online notes&#8230;   Nice idea &#8211; getting people to use [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataplumber.wordpress.com&blog=519414&post=9&subd=dataplumber&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been installing a WordPress server in work to enable blogging by the engineers.  The idea is that if everyone keeps an online notebook of what they&#8217;ve been doing, and we crawl it with our Sharepoint server, you&#8217;ll have ready access to everyone&#8217;s online notes&#8230;   Nice idea &#8211; getting people to use it will be the difficult part of course.</p>
<p>I read the &#8220;<a href="http://codex.wordpress.org/Installing_WordPress#Famous_5-Minute_Install">famous 5-minute installation</a>&#8221; notes,  and the more detailed stuff, but couldn&#8217;t get past an apparent permissions problem.<br />
<span id="more-9"></span></p>
<p>I&#8217;d followed the WordPress installation guide as best I could, installing the required bits and pieces &#8211; mysql, php, etc.  After all that, I found that I could get the basic httpd error page that proved the server was working.   I wrote a PHP script as follows to make sure that PHP was working:</p>
<p><code>&lt;?php<br />
phpinfo();<br />
?&gt;</code></p>
<p>All that seemed to be fine.  So I put my WordPress files into the /var/www/html/wordpress directory and hoped for the best.   I edited the wp-config-sample.php with the appropriate settings and saved it as wp-config.php.  All set to go &#8211; I thought.</p>
<p>When trying to get <strong>http://localhost/wordpress/wp-admin/install.php</strong>, however, I got the following:</p>
<p><code>Forbidden<br />
You don't have permission to access /wordpress/wp-admin/install.php on this server.<br />
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.<br />
Apache/2.0.54 (Fedora) Server at tank.telindus.co.uk Port 80</code></p>
<p>Thinking back, I remembered I had a permissions problem on Fedora Core 5 at home when I was trying to teach myself some Perl.  It drove me nuts for about a day.  I tried all sorts of liberal filesystem permissions and messing with the user under which httpd was running &#8211; all to no avail.   Little did I know, it has nothing to do with filesystem permissions!  I solved it that time by removing the httpd RPM, downloading the source from Apache and compiling from scratch.</p>
<p>This time, I found that it is actually SELinux that causes this issue.  If it is incorrectly configured it seems to cause the permissions problem.  Here&#8217;s how to open up your security to get up and running.  It is not advisable to do this and leave it this way on a server that will be public-facing though.  I recommend tightening security again afterwards to be as safe as possible&#8230;</p>
<p>On the desktop, click <strong>Desktop | System Settings | Security Level</strong> and give the root user&#8217;s password.</p>
<p>A window like the following will appear (click the thumbnail to enlarge):</p>
<p><a href="http://dataplumber.files.wordpress.com/2007/01/securitylevelconfiguration.png" title="SELinux"><img src="http://dataplumber.files.wordpress.com/2007/01/securitylevelconfiguration.thumbnail.png?w=96&#038;h=143" alt="SELinux" height="143" width="96" /></a></p>
<p>The option &#8220;Disable SELinux protection for httpd daemon&#8221; will be un-checked by default.   Put a tick in the box and click the OK button.</p>
<p>I&#8217;m not sure if you need to do this, but I re-started the httpd daemon for good measure using the command:<br />
<code>/etc/init.d/httpd restart</code></p>
<p>Permissions problem solved &#8211; albeit a bit crudely.  Since this is a test-server within a lab environment, it isn&#8217;t an  issue, but more care should be taken if you&#8217;re installing a production server.</p>
<p>On to the next problem&#8230; PHP&#8217;s Mysql module isn&#8217;t installed for some reason.</p>
<p><em>Thanks to <a href="http://wojciechbednarski.com/articles/installing-wordpress-locally-on-gentoo-linux">Wojciech Bednarski&#8217;s instructions</a> &#8211; even though they are for Gentoo, some of the Mysql stuff helped!</em></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dataplumber.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dataplumber.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dataplumber.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dataplumber.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dataplumber.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dataplumber.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dataplumber.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dataplumber.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dataplumber.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dataplumber.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dataplumber.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dataplumber.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dataplumber.wordpress.com&blog=519414&post=9&subd=dataplumber&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://dataplumber.wordpress.com/2007/01/02/argh-apache-permissions-on-fedora-core-4/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f9e57013deac1424b1b99004bdca3cb6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">DataPlumber</media:title>
		</media:content>

		<media:content url="http://dataplumber.files.wordpress.com/2007/01/securitylevelconfiguration.thumbnail.png" medium="image">
			<media:title type="html">SELinux</media:title>
		</media:content>
	</item>
	</channel>
</rss>