<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Building a secure web server with CentOS 5, part 2</title>
	<atom:link href="http://www.rayheffer.com/91/building-a-secure-web-server-with-centos-5-part-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rayheffer.com/91/building-a-secure-web-server-with-centos-5-part-2/</link>
	<description>Enterprise Technologies</description>
	<lastBuildDate>Sun, 05 Feb 2012 18:34:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Rick Lemon</title>
		<link>http://www.rayheffer.com/91/building-a-secure-web-server-with-centos-5-part-2/comment-page-1/#comment-4758</link>
		<dc:creator>Rick Lemon</dc:creator>
		<pubDate>Fri, 23 Dec 2011 00:42:47 +0000</pubDate>
		<guid isPermaLink="false">http://wp.rayheffer.com/?p=91#comment-4758</guid>
		<description>Just remember to also do this:

chcon -R -t httpd_sys_content_t /home/.sites

in CentOS 6 to fix the SELinux issues.</description>
		<content:encoded><![CDATA[<p>Just remember to also do this:</p>
<p>chcon -R -t httpd_sys_content_t /home/.sites</p>
<p>in CentOS 6 to fix the SELinux issues.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ray Heffer</title>
		<link>http://www.rayheffer.com/91/building-a-secure-web-server-with-centos-5-part-2/comment-page-1/#comment-4744</link>
		<dc:creator>Ray Heffer</dc:creator>
		<pubDate>Mon, 12 Dec 2011 21:29:16 +0000</pubDate>
		<guid isPermaLink="false">http://wp.rayheffer.com/?p=91#comment-4744</guid>
		<description>Did you take a backup of httpd.conf?   Try and restore this and it should start, very likely to be an error in the config somewhere.</description>
		<content:encoded><![CDATA[<p>Did you take a backup of httpd.conf?   Try and restore this and it should start, very likely to be an error in the config somewhere.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ivi0708</title>
		<link>http://www.rayheffer.com/91/building-a-secure-web-server-with-centos-5-part-2/comment-page-1/#comment-4742</link>
		<dc:creator>ivi0708</dc:creator>
		<pubDate>Mon, 12 Dec 2011 20:45:54 +0000</pubDate>
		<guid isPermaLink="false">http://wp.rayheffer.com/?p=91#comment-4742</guid>
		<description>while trying to restart the httpd service it shows me [FAILED] whith no error description. I tried what the above commentors did but it doesn&#039;t work to me.

need help</description>
		<content:encoded><![CDATA[<p>while trying to restart the httpd service it shows me [FAILED] whith no error description. I tried what the above commentors did but it doesn&#8217;t work to me.</p>
<p>need help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: e0s</title>
		<link>http://www.rayheffer.com/91/building-a-secure-web-server-with-centos-5-part-2/comment-page-1/#comment-4614</link>
		<dc:creator>e0s</dc:creator>
		<pubDate>Thu, 24 Nov 2011 16:05:00 +0000</pubDate>
		<guid isPermaLink="false">http://wp.rayheffer.com/?p=91#comment-4614</guid>
		<description>Starting httpd: Syntax error on line 994 of /etc/httpd/conf/httpd.conf:
AllowOverride not allowed here
                                                           [FAILED]

I have AllowOverride in the virtualhost section and it is telling me it is not allowed here?</description>
		<content:encoded><![CDATA[<p>Starting httpd: Syntax error on line 994 of /etc/httpd/conf/httpd.conf:<br />
AllowOverride not allowed here<br />
                                                           [FAILED]</p>
<p>I have AllowOverride in the virtualhost section and it is telling me it is not allowed here?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: webcredible</title>
		<link>http://www.rayheffer.com/91/building-a-secure-web-server-with-centos-5-part-2/comment-page-1/#comment-4328</link>
		<dc:creator>webcredible</dc:creator>
		<pubDate>Fri, 11 Nov 2011 06:30:37 +0000</pubDate>
		<guid isPermaLink="false">http://wp.rayheffer.com/?p=91#comment-4328</guid>
		<description>I am not sure if anyone found this yet, I couldn&#039;t get my apache to restart. I did a quick search and found this, looks like it affects Red Hat and Cent OS (same). I couldn&#039;t run it at the full docroot, but used /home/.sites and that worked. It&#039;s alot better than disabling SELinux.

http://slaptijack.com/system-administration/warning-documentroot-does-not-exist/</description>
		<content:encoded><![CDATA[<p>I am not sure if anyone found this yet, I couldn&#8217;t get my apache to restart. I did a quick search and found this, looks like it affects Red Hat and Cent OS (same). I couldn&#8217;t run it at the full docroot, but used /home/.sites and that worked. It&#8217;s alot better than disabling SELinux.</p>
<p><a href="http://slaptijack.com/system-administration/warning-documentroot-does-not-exist/"  onclick="pageTracker._trackPageview('/outgoing/slaptijack.com/system-administration/warning-documentroot-does-not-exist/?referer=');">http://slaptijack.com/system-administration/warning-documentroot-does-not-exist/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim D</title>
		<link>http://www.rayheffer.com/91/building-a-secure-web-server-with-centos-5-part-2/comment-page-1/#comment-3420</link>
		<dc:creator>Tim D</dc:creator>
		<pubDate>Fri, 12 Aug 2011 13:26:01 +0000</pubDate>
		<guid isPermaLink="false">http://wp.rayheffer.com/?p=91#comment-3420</guid>
		<description>Brian or Ray,
I added the the adminftp (actually I used a slightly diff name) but when I log in via SFTP with Filezilla I still get the errors when trying to upload the &quot;phpMyAdmin&quot; folder. &quot;mkdir..... declined&quot; .

Do you know what I need to do to change the user permissions so that this folder can be uploaded?</description>
		<content:encoded><![CDATA[<p>Brian or Ray,<br />
I added the the adminftp (actually I used a slightly diff name) but when I log in via SFTP with Filezilla I still get the errors when trying to upload the &#8220;phpMyAdmin&#8221; folder. &#8220;mkdir&#8230;.. declined&#8221; .</p>
<p>Do you know what I need to do to change the user permissions so that this folder can be uploaded?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim D</title>
		<link>http://www.rayheffer.com/91/building-a-secure-web-server-with-centos-5-part-2/comment-page-1/#comment-3417</link>
		<dc:creator>Tim D</dc:creator>
		<pubDate>Fri, 12 Aug 2011 12:35:55 +0000</pubDate>
		<guid isPermaLink="false">http://wp.rayheffer.com/?p=91#comment-3417</guid>
		<description>Is it not possible to just use &quot;wget&quot; command and download the file (I did that already) and then unzip it on the server?  I tried but I don&#039;t know how to properly format the &quot;tar&quot; command.  Maybe you can let me know if this would be possible.  Thanx.</description>
		<content:encoded><![CDATA[<p>Is it not possible to just use &#8220;wget&#8221; command and download the file (I did that already) and then unzip it on the server?  I tried but I don&#8217;t know how to properly format the &#8220;tar&#8221; command.  Maybe you can let me know if this would be possible.  Thanx.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim D</title>
		<link>http://www.rayheffer.com/91/building-a-secure-web-server-with-centos-5-part-2/comment-page-1/#comment-3416</link>
		<dc:creator>Tim D</dc:creator>
		<pubDate>Fri, 12 Aug 2011 12:34:09 +0000</pubDate>
		<guid isPermaLink="false">http://wp.rayheffer.com/?p=91#comment-3416</guid>
		<description>Ray,
Everything has gone great.  The only problems that I ran into on step 1 was &quot;perl-CPAN&quot; did not install.  Will research that later.

My main issue is that I am trying to upload phpMyAdmin.  I setup a username and password as instructed in the steps.  I am able to connect via SFTP using Filezilla.  But I keep getting &quot;mkdir ...... declined &quot; in the Filezilla progress window.  I had actually created the directory while in SSH but then I logged back in and deleted the folder in case the problem was that I created the folder as root and trying to upload as .

Any ideas on what is wrong here?  Thanks again for this awesome tutorial.</description>
		<content:encoded><![CDATA[<p>Ray,<br />
Everything has gone great.  The only problems that I ran into on step 1 was &#8220;perl-CPAN&#8221; did not install.  Will research that later.</p>
<p>My main issue is that I am trying to upload phpMyAdmin.  I setup a username and password as instructed in the steps.  I am able to connect via SFTP using Filezilla.  But I keep getting &#8220;mkdir &#8230;&#8230; declined &#8221; in the Filezilla progress window.  I had actually created the directory while in SSH but then I logged back in and deleted the folder in case the problem was that I created the folder as root and trying to upload as .</p>
<p>Any ideas on what is wrong here?  Thanks again for this awesome tutorial.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Philipp Burch</title>
		<link>http://www.rayheffer.com/91/building-a-secure-web-server-with-centos-5-part-2/comment-page-1/#comment-3205</link>
		<dc:creator>Philipp Burch</dc:creator>
		<pubDate>Sun, 12 Jun 2011 20:39:00 +0000</pubDate>
		<guid isPermaLink="false">http://wp.rayheffer.com/?p=91#comment-3205</guid>
		<description>Hi Ray, hi Brian,

thanks for this great Tutorial Ray. It saved me a lot of time searching for good options to configure my server. Or to configure the server which I will have in a few days, to be exactly ;)

@Brian:

I&#039;ve run into the same problem of being not able to change the DocumentRoot into the home folder. I&#039;ve read posts which advised to disable SELinux completely (just as you did above), but that doesn&#039;t seem to be a good idea for a &quot;secure web server&quot;. Passwords are inconvenient as well, but would you simply leave them blank because of this?
Anyway, I&#039;ve stumbled across this nice introduction to SELinux:
http://wiki.centos.org/HowTos/SELinux
Section &quot;5.1 Relabeling Files&quot; almost exactly states what to do in this case: Change the security context of the folder (.sites) and its subfolders so that Apache (httpd) is permitted to access them.

So all I had to do to get it working was issueing the following commands:

# chcon -Rv --type=httpd_sys_content_t /home/sites/
# semanage fcontext -a -t httpd_sys_content_t &quot;/home/sites(/.*)?&quot;

(I prefer unhidden folders, so that&#039;s why &quot;sites&quot; doesn&#039;t start with a period here.)

The first command recursively changes the security context of all folders and files in /home/sites to httpd_sys_content_t. The second makes this change permanent, should you ever need to &quot;relabel&quot; the filesystem.

Best regards,
Philipp</description>
		<content:encoded><![CDATA[<p>Hi Ray, hi Brian,</p>
<p>thanks for this great Tutorial Ray. It saved me a lot of time searching for good options to configure my server. Or to configure the server which I will have in a few days, to be exactly <img src='http://www.rayheffer.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>@Brian:</p>
<p>I&#8217;ve run into the same problem of being not able to change the DocumentRoot into the home folder. I&#8217;ve read posts which advised to disable SELinux completely (just as you did above), but that doesn&#8217;t seem to be a good idea for a &#8220;secure web server&#8221;. Passwords are inconvenient as well, but would you simply leave them blank because of this?<br />
Anyway, I&#8217;ve stumbled across this nice introduction to SELinux:<br />
<a href="http://wiki.centos.org/HowTos/SELinux"  onclick="pageTracker._trackPageview('/outgoing/wiki.centos.org/HowTos/SELinux?referer=');">http://wiki.centos.org/HowTos/SELinux</a><br />
Section &#8220;5.1 Relabeling Files&#8221; almost exactly states what to do in this case: Change the security context of the folder (.sites) and its subfolders so that Apache (httpd) is permitted to access them.</p>
<p>So all I had to do to get it working was issueing the following commands:</p>
<p># chcon -Rv &#8211;type=httpd_sys_content_t /home/sites/<br />
# semanage fcontext -a -t httpd_sys_content_t &#8220;/home/sites(/.*)?&#8221;</p>
<p>(I prefer unhidden folders, so that&#8217;s why &#8220;sites&#8221; doesn&#8217;t start with a period here.)</p>
<p>The first command recursively changes the security context of all folders and files in /home/sites to httpd_sys_content_t. The second makes this change permanent, should you ever need to &#8220;relabel&#8221; the filesystem.</p>
<p>Best regards,<br />
Philipp</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Ernesto</title>
		<link>http://www.rayheffer.com/91/building-a-secure-web-server-with-centos-5-part-2/comment-page-1/#comment-2428</link>
		<dc:creator>Brian Ernesto</dc:creator>
		<pubDate>Sun, 27 Feb 2011 02:29:36 +0000</pubDate>
		<guid isPermaLink="false">http://wp.rayheffer.com/?p=91#comment-2428</guid>
		<description>Got it.. damn SELINUX

vi /etc/sysconfig/selinux
and change it to disabled then reboot.

Now if I can just get FTP to work.</description>
		<content:encoded><![CDATA[<p>Got it.. damn SELINUX</p>
<p>vi /etc/sysconfig/selinux<br />
and change it to disabled then reboot.</p>
<p>Now if I can just get FTP to work.</p>
]]></content:encoded>
	</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! -->
