<?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/"
	xmlns:series="http://unfoldingneurons.com/"
		>
<channel>
	<title>Comments on: Install chrooted lighttpd under Ubuntu Linux 64 bit version</title>
	<atom:link href="http://www.cyberciti.biz/tips/howto-install-configure-ubuntu-linux-lighttpd-webserver.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.cyberciti.biz/tips/howto-install-configure-ubuntu-linux-lighttpd-webserver.html</link>
	<description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description>
	<lastBuildDate>Sat, 20 Mar 2010 00:34:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Some Kid</title>
		<link>http://www.cyberciti.biz/tips/howto-install-configure-ubuntu-linux-lighttpd-webserver.html#comment-154044</link>
		<dc:creator>Some Kid</dc:creator>
		<pubDate>Tue, 02 Mar 2010 15:58:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/howto-install-configure-ubuntu-linux-lighttpd-webserver.html#comment-154044</guid>
		<description>Some things I&#039;ve picked up after having followed this tutorial... If you want to use some OpenSSL features in PHP, you must recreate /dev/random and /dev/urandom in /webroot/dev/* using the mknod command. Also to debug scripts/programs in a chroot environment use the strace utility to find out dependencies.</description>
		<content:encoded><![CDATA[<p>Some things I&#8217;ve picked up after having followed this tutorial&#8230; If you want to use some OpenSSL features in PHP, you must recreate /dev/random and /dev/urandom in /webroot/dev/* using the mknod command. Also to debug scripts/programs in a chroot environment use the strace utility to find out dependencies.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mger</title>
		<link>http://www.cyberciti.biz/tips/howto-install-configure-ubuntu-linux-lighttpd-webserver.html#comment-153416</link>
		<dc:creator>mger</dc:creator>
		<pubDate>Tue, 09 Feb 2010 04:42:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/howto-install-configure-ubuntu-linux-lighttpd-webserver.html#comment-153416</guid>
		<description>A masterpiece! Thanks for the great guide.</description>
		<content:encoded><![CDATA[<p>A masterpiece! Thanks for the great guide.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Laurent</title>
		<link>http://www.cyberciti.biz/tips/howto-install-configure-ubuntu-linux-lighttpd-webserver.html#comment-148577</link>
		<dc:creator>Laurent</dc:creator>
		<pubDate>Sat, 16 May 2009 09:01:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/howto-install-configure-ubuntu-linux-lighttpd-webserver.html#comment-148577</guid>
		<description>@andy: I assume the reference you&#039;re talking about is the database server. I&#039;ve come across the fact that you can not connect to mysql server via tcp/ip using the name &quot;localhost&quot;, you have to use 127.0.0.1 (which would be equivalent in most other contexts).
Localhost somehow seems to force a unix socket connection, which in this context would not work, as your mysql server is not in the chroot.
Now you could transfer your db server inside the chroot, but I don&#039;t think it makes much sense. Probably better to put it in a different chroot, or a different server altogether, you&#039;ll just need to change the IP address...
I hope that makes sense :o)</description>
		<content:encoded><![CDATA[<p>@andy: I assume the reference you&#8217;re talking about is the database server. I&#8217;ve come across the fact that you can not connect to mysql server via tcp/ip using the name &#8220;localhost&#8221;, you have to use 127.0.0.1 (which would be equivalent in most other contexts).<br />
Localhost somehow seems to force a unix socket connection, which in this context would not work, as your mysql server is not in the chroot.<br />
Now you could transfer your db server inside the chroot, but I don&#8217;t think it makes much sense. Probably better to put it in a different chroot, or a different server altogether, you&#8217;ll just need to change the IP address&#8230;<br />
I hope that makes sense :o)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andy</title>
		<link>http://www.cyberciti.biz/tips/howto-install-configure-ubuntu-linux-lighttpd-webserver.html#comment-148528</link>
		<dc:creator>andy</dc:creator>
		<pubDate>Tue, 12 May 2009 17:06:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/howto-install-configure-ubuntu-linux-lighttpd-webserver.html#comment-148528</guid>
		<description>Thanks for the great tutorial, but I ran into a few pains in the arse.  For some reason, the test file fails when trying to open both the passwd and hosts file.  I&#039;ve even chmodded them to 777 with no avail.

This little issue screwed up my wordpress install, which I was able to work around (as far as I can tell, anyways) by changing the reference in the config file from &quot;localhost&quot; to 127.0.0.1, but I&#039;m not sure if this will adversely affect me anywhere else down the line.

 Any ideas on fixing this?</description>
		<content:encoded><![CDATA[<p>Thanks for the great tutorial, but I ran into a few pains in the arse.  For some reason, the test file fails when trying to open both the passwd and hosts file.  I&#8217;ve even chmodded them to 777 with no avail.</p>
<p>This little issue screwed up my wordpress install, which I was able to work around (as far as I can tell, anyways) by changing the reference in the config file from &#8220;localhost&#8221; to 127.0.0.1, but I&#8217;m not sure if this will adversely affect me anywhere else down the line.</p>
<p> Any ideas on fixing this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Laurens</title>
		<link>http://www.cyberciti.biz/tips/howto-install-configure-ubuntu-linux-lighttpd-webserver.html#comment-147374</link>
		<dc:creator>Laurens</dc:creator>
		<pubDate>Sun, 22 Feb 2009 19:49:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/howto-install-configure-ubuntu-linux-lighttpd-webserver.html#comment-147374</guid>
		<description>Hi,

Thanks for the tutorial! It helped me a lot!
Any tips on getting fam to work with lighttpd?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks for the tutorial! It helped me a lot!<br />
Any tips on getting fam to work with lighttpd?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jared</title>
		<link>http://www.cyberciti.biz/tips/howto-install-configure-ubuntu-linux-lighttpd-webserver.html#comment-147161</link>
		<dc:creator>jared</dc:creator>
		<pubDate>Thu, 12 Feb 2009 03:21:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/howto-install-configure-ubuntu-linux-lighttpd-webserver.html#comment-147161</guid>
		<description>I see! Thanks for clarifying.

Copying /lib and /lib64 certainly seems quicker than running ldd for every executable I want to bring into the jail. So why is the ldd approach the only one I&#039;ve seen in &#039;apache security&#039; and the like? Any thoughts? Maybe just to keep chroot size down?</description>
		<content:encoded><![CDATA[<p>I see! Thanks for clarifying.</p>
<p>Copying /lib and /lib64 certainly seems quicker than running ldd for every executable I want to bring into the jail. So why is the ldd approach the only one I&#8217;ve seen in &#8216;apache security&#8217; and the like? Any thoughts? Maybe just to keep chroot size down?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vivek Gite</title>
		<link>http://www.cyberciti.biz/tips/howto-install-configure-ubuntu-linux-lighttpd-webserver.html#comment-147146</link>
		<dc:creator>Vivek Gite</dc:creator>
		<pubDate>Wed, 11 Feb 2009 17:22:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/howto-install-configure-ubuntu-linux-lighttpd-webserver.html#comment-147146</guid>
		<description>@ jared,

Noop, we just copied libs no headers or compiler itself. Also, in order to upload or download file most attacker depends upon tools like wget or others. Under jail none of the binaries or headers available. 

You can selectively copy files /lib64 such as resolvers by tracing used libs via ldd command. 

HTH</description>
		<content:encoded><![CDATA[<p>@ jared,</p>
<p>Noop, we just copied libs no headers or compiler itself. Also, in order to upload or download file most attacker depends upon tools like wget or others. Under jail none of the binaries or headers available. </p>
<p>You can selectively copy files /lib64 such as resolvers by tracing used libs via ldd command. </p>
<p>HTH</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jared</title>
		<link>http://www.cyberciti.biz/tips/howto-install-configure-ubuntu-linux-lighttpd-webserver.html#comment-147145</link>
		<dc:creator>jared</dc:creator>
		<pubDate>Wed, 11 Feb 2009 17:06:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/howto-install-configure-ubuntu-linux-lighttpd-webserver.html#comment-147145</guid>
		<description>Thanks for this article. I&#039;m a little confused on one point:

I thought one of the main advantages of chrooting or jailing a server is that any attacker who compromises the server won&#039;t be able to compile malicious code, due to not having the necessary libraries. 

So, if you copy all of /lib64 and /usr/lib into the jail, including /lib64/gcc for instance, haven&#039;t you sort of given an attacker, if not the key to the jail, then some equipment that can be used to create a key?</description>
		<content:encoded><![CDATA[<p>Thanks for this article. I&#8217;m a little confused on one point:</p>
<p>I thought one of the main advantages of chrooting or jailing a server is that any attacker who compromises the server won&#8217;t be able to compile malicious code, due to not having the necessary libraries. </p>
<p>So, if you copy all of /lib64 and /usr/lib into the jail, including /lib64/gcc for instance, haven&#8217;t you sort of given an attacker, if not the key to the jail, then some equipment that can be used to create a key?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vivek</title>
		<link>http://www.cyberciti.biz/tips/howto-install-configure-ubuntu-linux-lighttpd-webserver.html#comment-145452</link>
		<dc:creator>vivek</dc:creator>
		<pubDate>Sun, 02 Nov 2008 09:47:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/howto-install-configure-ubuntu-linux-lighttpd-webserver.html#comment-145452</guid>
		<description>James,

Database cannot be just synced using rsync or cp command. You need to dump mysql using mysqldump and import using mysql &lt; db.dump.sql command. Rest of the stuff can be synced.

HTH</description>
		<content:encoded><![CDATA[<p>James,</p>
<p>Database cannot be just synced using rsync or cp command. You need to dump mysql using mysqldump and import using mysql < db.dump.sql command. Rest of the stuff can be synced.</p>
<p>HTH</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: james</title>
		<link>http://www.cyberciti.biz/tips/howto-install-configure-ubuntu-linux-lighttpd-webserver.html#comment-145451</link>
		<dc:creator>james</dc:creator>
		<pubDate>Sun, 02 Nov 2008 09:37:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/howto-install-configure-ubuntu-linux-lighttpd-webserver.html#comment-145451</guid>
		<description>I&#039;m using intrepid ibex ubuntu</description>
		<content:encoded><![CDATA[<p>I&#8217;m using intrepid ibex ubuntu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: james</title>
		<link>http://www.cyberciti.biz/tips/howto-install-configure-ubuntu-linux-lighttpd-webserver.html#comment-145450</link>
		<dc:creator>james</dc:creator>
		<pubDate>Sun, 02 Nov 2008 09:34:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/howto-install-configure-ubuntu-linux-lighttpd-webserver.html#comment-145450</guid>
		<description>hmm.. after more research i can sync it but strange,mysql shows * Checking for corrupt, not cleanly closed and upgrade needing tables.
every time i restart it. and I can&#039;t install wordpress, phpmyadmin etc. the error said the database server is not responsive or cannot make connection. But, I can connect just fine with above test and I can connect too from command line. please help</description>
		<content:encoded><![CDATA[<p>hmm.. after more research i can sync it but strange,mysql shows * Checking for corrupt, not cleanly closed and upgrade needing tables.<br />
every time i restart it. and I can&#8217;t install wordpress, phpmyadmin etc. the error said the database server is not responsive or cannot make connection. But, I can connect just fine with above test and I can connect too from command line. please help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: james</title>
		<link>http://www.cyberciti.biz/tips/howto-install-configure-ubuntu-linux-lighttpd-webserver.html#comment-145440</link>
		<dc:creator>james</dc:creator>
		<pubDate>Sat, 01 Nov 2008 08:03:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/howto-install-configure-ubuntu-linux-lighttpd-webserver.html#comment-145440</guid>
		<description>hey, thanks. It works for me, but could you provide a step to sync folders and files above so that we who still in development stage will benefit from it... (rsync maybe?)</description>
		<content:encoded><![CDATA[<p>hey, thanks. It works for me, but could you provide a step to sync folders and files above so that we who still in development stage will benefit from it&#8230; (rsync maybe?)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: morphey</title>
		<link>http://www.cyberciti.biz/tips/howto-install-configure-ubuntu-linux-lighttpd-webserver.html#comment-143832</link>
		<dc:creator>morphey</dc:creator>
		<pubDate>Tue, 20 May 2008 21:42:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/howto-install-configure-ubuntu-linux-lighttpd-webserver.html#comment-143832</guid>
		<description>Hello everyone,

in the latest version of ubuntu (hardy) is an error before restarting lighttp (with the basic configuration):

&lt;code&gt;
2008-05-20 08:13:50: (server.c.908) Configuration of plugins failed. Going down. 
2008-05-20 23:34:55: (log.c.75) server started 
2008-05-20 23:34:55: (mod_compress.c.185) can&#039;t stat compress.cache-dir /var/cache/lighttpd/compress/ No such file or directory 
&lt;/code&gt;

To resolve simply run:
&lt;code&gt;
mkdir /webroot/var/cache/
mkdir /webroot/var/cache/lighttpd/
mkdir /webroot/var/cache/lighttpd/compress/
&lt;/code&gt;
	
and then start lighttpd:

&lt;code&gt;
/etc/init.d/lighttpd start
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hello everyone,</p>
<p>in the latest version of ubuntu (hardy) is an error before restarting lighttp (with the basic configuration):</p>
<p><code><br />
2008-05-20 08:13:50: (server.c.908) Configuration of plugins failed. Going down.<br />
2008-05-20 23:34:55: (log.c.75) server started<br />
2008-05-20 23:34:55: (mod_compress.c.185) can't stat compress.cache-dir /var/cache/lighttpd/compress/ No such file or directory<br />
</code></p>
<p>To resolve simply run:<br />
<code><br />
mkdir /webroot/var/cache/<br />
mkdir /webroot/var/cache/lighttpd/<br />
mkdir /webroot/var/cache/lighttpd/compress/<br />
</code></p>
<p>and then start lighttpd:</p>
<p><code><br />
/etc/init.d/lighttpd start<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mathias</title>
		<link>http://www.cyberciti.biz/tips/howto-install-configure-ubuntu-linux-lighttpd-webserver.html#comment-142447</link>
		<dc:creator>Mathias</dc:creator>
		<pubDate>Sat, 12 Jan 2008 06:16:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/howto-install-configure-ubuntu-linux-lighttpd-webserver.html#comment-142447</guid>
		<description>THX for the reply vivek, it got me thinking that I could just install it with the package and the move it :)
I even got i connecting and all, but there is one problem. I get the error

Cannot load mcrypt check your PHP configuration

But, mcrypt is installed and i have moved all the files that i could find with mcrypt in their name, to the same locatio under /webroot, but with no effect. Anyone got a suggestion.
I am using the phpmyadmin so apperantly its not that bad, but it would be nice not to have errors in the setup ;)</description>
		<content:encoded><![CDATA[<p>THX for the reply vivek, it got me thinking that I could just install it with the package and the move it :)<br />
I even got i connecting and all, but there is one problem. I get the error</p>
<p>Cannot load mcrypt check your PHP configuration</p>
<p>But, mcrypt is installed and i have moved all the files that i could find with mcrypt in their name, to the same locatio under /webroot, but with no effect. Anyone got a suggestion.<br />
I am using the phpmyadmin so apperantly its not that bad, but it would be nice not to have errors in the setup ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vivek</title>
		<link>http://www.cyberciti.biz/tips/howto-install-configure-ubuntu-linux-lighttpd-webserver.html#comment-142433</link>
		<dc:creator>vivek</dc:creator>
		<pubDate>Fri, 11 Jan 2008 03:37:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/howto-install-configure-ubuntu-linux-lighttpd-webserver.html#comment-142433</guid>
		<description>&lt;i&gt;&gt; I would like to install phpMyAdmin to manage the MySQL, but since I have never installed anything in a chroot jail before, I dont know how.&lt;/i&gt;
install it under /webroot/var/www/phpmyadmin. Don&#039;t forget to password protect phpmyadmin directory. If you are going to set large number of vhosts use /webroot/home/lighttpd/domain1.com /webroot/home/lighttpd/domain2.com directory structure.</description>
		<content:encoded><![CDATA[<p><i>&gt; I would like to install phpMyAdmin to manage the MySQL, but since I have never installed anything in a chroot jail before, I dont know how.</i><br />
install it under /webroot/var/www/phpmyadmin. Don&#8217;t forget to password protect phpmyadmin directory. If you are going to set large number of vhosts use /webroot/home/lighttpd/domain1.com /webroot/home/lighttpd/domain2.com directory structure.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mathias</title>
		<link>http://www.cyberciti.biz/tips/howto-install-configure-ubuntu-linux-lighttpd-webserver.html#comment-142432</link>
		<dc:creator>Mathias</dc:creator>
		<pubDate>Fri, 11 Jan 2008 03:29:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/howto-install-configure-ubuntu-linux-lighttpd-webserver.html#comment-142432</guid>
		<description>Great guide, but I have a couple of small problems, that you may have a solution for...

1. Even though I have made a copy of hosts and resolv.conf to /webroot/etc/ I still cant use localhost to connect to the db. Works fine with 127.0.0.1, so its not really a big problem. And I have checked the hosts file, and localhost is in it.

2. I would like to install phpMyAdmin to manage the MySQL, but since I have never installed anything in a chroot jail before, I dont know how. I assume the apt-get install phpmyadmin will do me no good, since the web-server is not where it normally should be.

THX for the guide, tested on Ubuntu 7.10 (minimal) to be a complete no-brainer to follow. Just shut down your brain and copy-paste ;-)</description>
		<content:encoded><![CDATA[<p>Great guide, but I have a couple of small problems, that you may have a solution for&#8230;</p>
<p>1. Even though I have made a copy of hosts and resolv.conf to /webroot/etc/ I still cant use localhost to connect to the db. Works fine with 127.0.0.1, so its not really a big problem. And I have checked the hosts file, and localhost is in it.</p>
<p>2. I would like to install phpMyAdmin to manage the MySQL, but since I have never installed anything in a chroot jail before, I dont know how. I assume the apt-get install phpmyadmin will do me no good, since the web-server is not where it normally should be.</p>
<p>THX for the guide, tested on Ubuntu 7.10 (minimal) to be a complete no-brainer to follow. Just shut down your brain and copy-paste ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Juke</title>
		<link>http://www.cyberciti.biz/tips/howto-install-configure-ubuntu-linux-lighttpd-webserver.html#comment-142255</link>
		<dc:creator>Juke</dc:creator>
		<pubDate>Sun, 23 Dec 2007 23:34:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/howto-install-configure-ubuntu-linux-lighttpd-webserver.html#comment-142255</guid>
		<description>Nice howto, thanks! My problem: lighttpd quits without leaving an entry in error.log when i try to execute a php file through the webserver. The bin path to php is set correctly. Any ideas?</description>
		<content:encoded><![CDATA[<p>Nice howto, thanks! My problem: lighttpd quits without leaving an entry in error.log when i try to execute a php file through the webserver. The bin path to php is set correctly. Any ideas?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.195 seconds -->
