<?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: Lighttpd FasCGI PHP, MySQL chroot jail installation under Debian Linux</title> <atom:link href="http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html/feed" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.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>Fri, 10 Feb 2012 20:37:43 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: none-101</title><link>http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-174931</link> <dc:creator>none-101</dc:creator> <pubDate>Mon, 17 Oct 2011 15:01:48 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-174931</guid> <description>Where do you put the static web files that one wishes to serve?
I have these on /www/  Is it possible, using your set-up above to still server from /www. These are on different partitions.
Regards.</description> <content:encoded><![CDATA[<p>Where do you put the static web files that one wishes to serve?<br
/> I have these on /www/  Is it possible, using your set-up above to still server from /www. These are on different partitions.</p><p>Regards.</p> ]]></content:encoded> </item> <item><title>By: maximebuy</title><link>http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-170610</link> <dc:creator>maximebuy</dc:creator> <pubDate>Wed, 13 Apr 2011 22:48:12 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-170610</guid> <description>I followed the instruction and got 400 error also. Then I made the following changes:
1. change the base dir in /etc/lighttpd/lighttpd.conf from /var/www to /home/lighttpd
2. change the cache dir from /webroot/var/tmp/lighttpd/cache/compress/ to /webroot/var/cache/lighttpd/compress/
3. change the /etc/lightpd/conf-enablede/10-fastcgi.conf, where /usr/bin/php-cgi to /usr/bin/php5-cgi
Then I can open the db.php and test.php, my system is &quot;PHP Version 5.2.6-1+lenny10&quot;.
After these three steps, there are still some error in output of db.php, just see the log file in /webroot/var/log/lighttpd/error.log and check the errors.</description> <content:encoded><![CDATA[<p>I followed the instruction and got 400 error also. Then I made the following changes:<br
/> 1. change the base dir in /etc/lighttpd/lighttpd.conf from /var/www to /home/lighttpd<br
/> 2. change the cache dir from /webroot/var/tmp/lighttpd/cache/compress/ to /webroot/var/cache/lighttpd/compress/<br
/> 3. change the /etc/lightpd/conf-enablede/10-fastcgi.conf, where /usr/bin/php-cgi to /usr/bin/php5-cgi</p><p>Then I can open the db.php and test.php, my system is &#8220;PHP Version 5.2.6-1+lenny10&#8243;.</p><p>After these three steps, there are still some error in output of db.php, just see the log file in /webroot/var/log/lighttpd/error.log and check the errors.</p> ]]></content:encoded> </item> <item><title>By: jh</title><link>http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-163795</link> <dc:creator>jh</dc:creator> <pubDate>Thu, 16 Dec 2010 02:49:48 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-163795</guid> <description>Followed the guide to put my lighttpd server into jail. All working fine except DNS resolution not working in chroot jail. Turn out I have to copy both libnss_dns.so.2 and  libnss_dns-2.7.so from /lib to /webroot/lib. Great guide.</description> <content:encoded><![CDATA[<p>Followed the guide to put my lighttpd server into jail. All working fine except DNS resolution not working in chroot jail. Turn out I have to copy both libnss_dns.so.2 and  libnss_dns-2.7.so from /lib to /webroot/lib. Great guide.</p> ]]></content:encoded> </item> <item><title>By: Christoph</title><link>http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-161660</link> <dc:creator>Christoph</dc:creator> <pubDate>Mon, 06 Dec 2010 17:14:04 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-161660</guid> <description>nice tutorial
The default path of the compress cache directory in Debian is now &quot;/var/cache/lighttpd/compress/&quot;.
So the diretory &quot;/webroot/var/cache/lighttpd/compress/&quot; should exists to work (instead of the directory in the tutorial). ;)</description> <content:encoded><![CDATA[<p>nice tutorial</p><p>The default path of the compress cache directory in Debian is now &#8220;/var/cache/lighttpd/compress/&#8221;.</p><p>So the diretory &#8220;/webroot/var/cache/lighttpd/compress/&#8221; should exists to work (instead of the directory in the tutorial). ;)</p> ]]></content:encoded> </item> <item><title>By: Julien</title><link>http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-159239</link> <dc:creator>Julien</dc:creator> <pubDate>Sun, 29 Aug 2010 19:58:52 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-159239</guid> <description>Thanks for the howto, I used it as a based to my own script that chroot nginx and php on Debian. I believe it might be of interest to some of the readers here, so here is the &lt;a href=&quot;http://wiki.linuxwall.info/doku.php/en:ressources:articles:script_chroot_nginx&quot; rel=&quot;nofollow&quot;&gt;link&lt;/a&gt;.</description> <content:encoded><![CDATA[<p>Thanks for the howto, I used it as a based to my own script that chroot nginx and php on Debian. I believe it might be of interest to some of the readers here, so here is the <a
href="http://wiki.linuxwall.info/doku.php/en:ressources:articles:script_chroot_nginx" rel="nofollow">link</a>.</p> ]]></content:encoded> </item> <item><title>By: lfitz</title><link>http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-156618</link> <dc:creator>lfitz</dc:creator> <pubDate>Wed, 16 Jun 2010 01:31:23 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-156618</guid> <description>hi, i get 403 - forbidden errors for db.php and test.php, how can i fix this?</description> <content:encoded><![CDATA[<p>hi, i get 403 &#8211; forbidden errors for db.php and test.php, how can i fix this?</p> ]]></content:encoded> </item> <item><title>By: james</title><link>http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-154946</link> <dc:creator>james</dc:creator> <pubDate>Mon, 12 Apr 2010 09:52:17 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-154946</guid> <description>Hi. I have followed carefully each steps and I received this error when starting lighttpd:
(mod_fastcgi.c.1042) the fastcgi-backend /usr/bin/php-cgi failed to start:
(mod_fastcgi.c.1046) child exited with status 9 /usr/bin/php-cgi
(mod_fastcgi.c.1049) if you try do run PHP as FastCGI backend make sure you use the FastCGI enabled version.
You can find out if it is the right one by executing ‘php -v’ and it should display ‘(cgi-fcgi)’ in the output, NOT (cgi) NOR (cli)
lighttpd has been working fine before I wanted to put it in jail. whenever I comment out the server.chroot line. everything works ok.
i have set correctly /usr/bin/php-cgi correctly to /usr/bin/php5-cgi but still the same error.</description> <content:encoded><![CDATA[<p>Hi. I have followed carefully each steps and I received this error when starting lighttpd:</p><p>(mod_fastcgi.c.1042) the fastcgi-backend /usr/bin/php-cgi failed to start:<br
/> (mod_fastcgi.c.1046) child exited with status 9 /usr/bin/php-cgi<br
/> (mod_fastcgi.c.1049) if you try do run PHP as FastCGI backend make sure you use the FastCGI enabled version.<br
/> You can find out if it is the right one by executing ‘php -v’ and it should display ‘(cgi-fcgi)’ in the output, NOT (cgi) NOR (cli)</p><p>lighttpd has been working fine before I wanted to put it in jail. whenever I comment out the server.chroot line. everything works ok.</p><p>i have set correctly /usr/bin/php-cgi correctly to /usr/bin/php5-cgi but still the same error.</p> ]]></content:encoded> </item> <item><title>By: SilentHunter</title><link>http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-154244</link> <dc:creator>SilentHunter</dc:creator> <pubDate>Fri, 12 Mar 2010 16:51:53 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-154244</guid> <description>Sorry but again to this problem:
------------------------------------------------------------------------------------------------------------
I used this tutorial with Debian Etch rc3 and PHP5. It works fine until I want to use php fastcgi. After enable FASTCGI with “lighty-enable-mod fastcgi”, I changed /etc/lighttpd/conf-enabled/10-fastcgi.conf:
FROM:
&quot;bin-path&quot; =&gt; &quot;/usr/bin/php4-cgi&quot;,
&quot;socket&quot; =&gt; &quot;/tmp/php.socket&quot;,
TO:
&quot;bin-path&quot; =&gt; &quot;/webroot/usr/bin/php5-cgi&quot;,
&quot;socket&quot; =&gt; &quot;/webroot/tmp/php.socket&quot;,
After restart lighttpd I get an error message:
“unix: /webroot/tmp/php.socket could not be found or is not writeable”
--------------------------------------------------------------------------------------------------------------
Is there a better solution than cutting the /webroot? I get the same error with the socket but without the /webroot it wouldn&#039;t work anyway....</description> <content:encoded><![CDATA[<p>Sorry but again to this problem:</p><p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br
/> I used this tutorial with Debian Etch rc3 and PHP5. It works fine until I want to use php fastcgi. After enable FASTCGI with “lighty-enable-mod fastcgi”, I changed /etc/lighttpd/conf-enabled/10-fastcgi.conf:</p><p>FROM:<br
/> &#8220;bin-path&#8221; =&gt; &#8220;/usr/bin/php4-cgi&#8221;,<br
/> &#8220;socket&#8221; =&gt; &#8220;/tmp/php.socket&#8221;,</p><p>TO:<br
/> &#8220;bin-path&#8221; =&gt; &#8220;/webroot/usr/bin/php5-cgi&#8221;,<br
/> &#8220;socket&#8221; =&gt; &#8220;/webroot/tmp/php.socket&#8221;,</p><p>After restart lighttpd I get an error message:<br
/> “unix: /webroot/tmp/php.socket could not be found or is not writeable”<br
/> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p><p>Is there a better solution than cutting the /webroot? I get the same error with the socket but without the /webroot it wouldn&#8217;t work anyway&#8230;.</p> ]]></content:encoded> </item> <item><title>By: grand wazoo</title><link>http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-153230</link> <dc:creator>grand wazoo</dc:creator> <pubDate>Fri, 29 Jan 2010 16:39:48 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-153230</guid> <description>If you&#039;re a &quot;noobie who need[s] help,&quot; then you shouldn&#039;t be preparing an externally facing chroot&#039;ed security-critical linux web server installation.  Pay someone to do this for you.  Security is really, really, really hard.  Buck up.</description> <content:encoded><![CDATA[<p>If you&#8217;re a &#8220;noobie who need[s] help,&#8221; then you shouldn&#8217;t be preparing an externally facing chroot&#8217;ed security-critical linux web server installation.  Pay someone to do this for you.  Security is really, really, really hard.  Buck up.</p> ]]></content:encoded> </item> <item><title>By: mandible</title><link>http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-152713</link> <dc:creator>mandible</dc:creator> <pubDate>Tue, 05 Jan 2010 00:45:00 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-152713</guid> <description>this website sucks, typical linux users who dont give a shit about noobies who need help, this tutorial doesnt work. install latest debian, and use php5 instead of 4, and follow this tutorial, it doesnt work.</description> <content:encoded><![CDATA[<p>this website sucks, typical linux users who dont give a shit about noobies who need help, this tutorial doesnt work. install latest debian, and use php5 instead of 4, and follow this tutorial, it doesnt work.</p> ]]></content:encoded> </item> <item><title>By: maxBirdy</title><link>http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-151544</link> <dc:creator>maxBirdy</dc:creator> <pubDate>Mon, 09 Nov 2009 01:35:57 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-151544</guid> <description>i run through this whole tutorial
i make sure that /home/lighttpd/ is the root dir
and that /webroot is the chroot jail
then i restart lighty
all is good, and it restarts without any errors
then i type in, 127.0.0.1, or 192.168.1.8, firefox goes &quot;Firefox can&#039;t establish a connection to the server at x.x.x.x&quot; my port 80 is forwarded, but when i go to canyouseeme.org, it says port 80 is not in use.
i run ps aux in bash shell, i see nothing that says &quot;lighttpd&quot;
im using php5, mysql 5.1, and lighttpd 1.4.23
wtf is wrong with my setup, just because my software is newer shouldnt change anything right?
the.conf files for lighty on this site, and mine, are identical, in configuration, but mine has a few other settings that are commented out so i just leave them be.
i have even checked my error logs, not a damn thing is in them
and ive checked my network configuration, all is well there too.
plllleeeeeeeaaaaaaaasssssseeeeeeeeeee help, im really lost and frustrated.</description> <content:encoded><![CDATA[<p>i run through this whole tutorial</p><p>i make sure that /home/lighttpd/ is the root dir</p><p>and that /webroot is the chroot jail</p><p>then i restart lighty</p><p>all is good, and it restarts without any errors</p><p>then i type in, 127.0.0.1, or 192.168.1.8, firefox goes &#8220;Firefox can&#8217;t establish a connection to the server at x.x.x.x&#8221; my port 80 is forwarded, but when i go to canyouseeme.org, it says port 80 is not in use.</p><p>i run ps aux in bash shell, i see nothing that says &#8220;lighttpd&#8221;</p><p>im using php5, mysql 5.1, and lighttpd 1.4.23</p><p>wtf is wrong with my setup, just because my software is newer shouldnt change anything right?</p><p>the.conf files for lighty on this site, and mine, are identical, in configuration, but mine has a few other settings that are commented out so i just leave them be.</p><p>i have even checked my error logs, not a damn thing is in them</p><p>and ive checked my network configuration, all is well there too.</p><p>plllleeeeeeeaaaaaaaasssssseeeeeeeeeee help, im really lost and frustrated.</p> ]]></content:encoded> </item> <item><title>By: L1ttl3J1m</title><link>http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-148379</link> <dc:creator>L1ttl3J1m</dc:creator> <pubDate>Thu, 30 Apr 2009 09:53:09 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-148379</guid> <description>For $DEITY&#039;s sake, don&#039;t approve that last one :) Try this one instead.
I had some trouble getting it to work, but here’s some stuff I worked out.
For missing libraries (blahblah.so.whatever) you can do this;
ldd ./ -  Which you can find by looking in the PHP error log. I found it especially good for this one;
PHP Startup: Unable to load dynamic library ‘blahblah.so’ - File not found in Unknown on line 0
So do an LDD on that file (ldd ./ (be in the directory where the file is, of course)) and it outputs the libraries that that extension  needs to run - scatter those around in the jail versions of /lib, /opt/lib, usr/lib, /usr/local/lib, and those errors stop happening.
For the ones that it didn’t make go away (I&#039;m looking at you, MySQL!), doing;
ldconfig -p &#124; grep (name of broken process**)
will give you a few more to copy across.
The thing that I was wondering about though, is how to go about securing that tmp folder. I don’t like the idea of having a world-executable folder on my server, no matter how jailed it is.
Any ideas?
*Make sure you don’t forget to set that one to a path that’s inside the jail, too, otherwise PH can’t write to it and you’ll never see these handy-dandy helpful messages. ***
** MySQL, grep bz for bzip &amp; bzip2, for example - one for each extension that’s in your PHP.ini file, basically.
*** That’s sarcasm, by the way. File not found in Unknown at line 0, yeah that’s helpful!</description> <content:encoded><![CDATA[<p>For $DEITY&#8217;s sake, don&#8217;t approve that last one :) Try this one instead.</p><p>I had some trouble getting it to work, but here’s some stuff I worked out.</p><p>For missing libraries (blahblah.so.whatever) you can do this;</p><p>ldd ./ &#8211;  Which you can find by looking in the PHP error log. I found it especially good for this one;</p><p>PHP Startup: Unable to load dynamic library ‘blahblah.so’ &#8211; File not found in Unknown on line 0</p><p>So do an LDD on that file (ldd ./ (be in the directory where the file is, of course)) and it outputs the libraries that that extension  needs to run &#8211; scatter those around in the jail versions of /lib, /opt/lib, usr/lib, /usr/local/lib, and those errors stop happening.</p><p>For the ones that it didn’t make go away (I&#8217;m looking at you, MySQL!), doing;</p><p>ldconfig -p | grep (name of broken process**)</p><p>will give you a few more to copy across.</p><p>The thing that I was wondering about though, is how to go about securing that tmp folder. I don’t like the idea of having a world-executable folder on my server, no matter how jailed it is.</p><p>Any ideas?</p><p>*Make sure you don’t forget to set that one to a path that’s inside the jail, too, otherwise PH can’t write to it and you’ll never see these handy-dandy helpful messages. ***</p><p>** MySQL, grep bz for bzip &amp; bzip2, for example &#8211; one for each extension that’s in your PHP.ini file, basically.</p><p>*** That’s sarcasm, by the way. File not found in Unknown at line 0, yeah that’s helpful!</p> ]]></content:encoded> </item> <item><title>By: Janez Dolinar</title><link>http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-148155</link> <dc:creator>Janez Dolinar</dc:creator> <pubDate>Fri, 17 Apr 2009 10:13:29 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-148155</guid> <description>(i know this is an old reply but I had the same problem)
@magnus: make sure, you copied files correctly. In my case I had /webroot/lib64 as a file!</description> <content:encoded><![CDATA[<p>(i know this is an old reply but I had the same problem)</p><p>@magnus: make sure, you copied files correctly. In my case I had /webroot/lib64 as a file!</p> ]]></content:encoded> </item> <item><title>By: Vivek Gite</title><link>http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-147722</link> <dc:creator>Vivek Gite</dc:creator> <pubDate>Wed, 18 Mar 2009 08:19:18 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-147722</guid> <description>No.</description> <content:encoded><![CDATA[<p>No.</p> ]]></content:encoded> </item> <item><title>By: niyo</title><link>http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-147718</link> <dc:creator>niyo</dc:creator> <pubDate>Wed, 18 Mar 2009 02:35:47 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-147718</guid> <description>hi
Can this chrooted setup be managed by cpanel or ispconfig?
rgds
Niyo</description> <content:encoded><![CDATA[<p>hi</p><p>Can this chrooted setup be managed by cpanel or ispconfig?</p><p>rgds<br
/> Niyo</p> ]]></content:encoded> </item> <item><title>By: mdev</title><link>http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-144423</link> <dc:creator>mdev</dc:creator> <pubDate>Sun, 20 Jul 2008 11:59:15 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-144423</guid> <description>Thanks although some things do not work when using your tutorial and need changes I got it running and learned alot on trial and error.</description> <content:encoded><![CDATA[<p>Thanks although some things do not work when using your tutorial and need changes I got it running and learned alot on trial and error.</p> ]]></content:encoded> </item> <item><title>By: Mike</title><link>http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-143639</link> <dc:creator>Mike</dc:creator> <pubDate>Wed, 30 Apr 2008 16:14:09 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-143639</guid> <description>Question: What about the &#039;*.pid&#039; files? Can they stay where they are or do I have to copy them into the jail too?</description> <content:encoded><![CDATA[<p>Question: What about the &#8216;*.pid&#8217; files? Can they stay where they are or do I have to copy them into the jail too?</p> ]]></content:encoded> </item> <item><title>By: Mike</title><link>http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-143637</link> <dc:creator>Mike</dc:creator> <pubDate>Wed, 30 Apr 2008 14:51:28 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-143637</guid> <description>Hmmm...I guess I got it. I had to copy the &#039;pdo.so&#039; file to, which was not showing with &#039;dpkg -L php5-mysql&#039;  :-)</description> <content:encoded><![CDATA[<p>Hmmm&#8230;I guess I got it. I had to copy the &#8216;pdo.so&#8217; file to, which was not showing with &#8216;dpkg -L php5-mysql&#8217;  :-)</p> ]]></content:encoded> </item> <item><title>By: Mike</title><link>http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-143634</link> <dc:creator>Mike</dc:creator> <pubDate>Wed, 30 Apr 2008 14:03:54 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-143634</guid> <description>Ahhh...now I see. The step where you have to create the &#039;/var/www&#039; and the &#039;/var/run&#039; within the /webroot is missing in this tutorial. Thanks for the fast reply! However, if I start lighty I get a bunch of errors (spawning fcgi etc.), I&#039;m now very insecure, I guess i leave it alone as I&#039;m not enough experienced to adapt it to Debian Etch 4, MySQL5, PHP5 and Tomcat5 (in the end I make somewhere a mistake and it&#039;s not more secure then before).  :-(</description> <content:encoded><![CDATA[<p>Ahhh&#8230;now I see. The step where you have to create the &#8216;/var/www&#8217; and the &#8216;/var/run&#8217; within the /webroot is missing in this tutorial. Thanks for the fast reply! However, if I start lighty I get a bunch of errors (spawning fcgi etc.), I&#8217;m now very insecure, I guess i leave it alone as I&#8217;m not enough experienced to adapt it to Debian Etch 4, MySQL5, PHP5 and Tomcat5 (in the end I make somewhere a mistake and it&#8217;s not more secure then before).  :-(</p> ]]></content:encoded> </item> <item><title>By: vivek</title><link>http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-143633</link> <dc:creator>vivek</dc:creator> <pubDate>Wed, 30 Apr 2008 13:53:03 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html#comment-143633</guid> <description>Mike,
Yes, you need to use current path:
&lt;pre&gt;/usr/lib/php5/20060613+lfs/mysql.so
/usr/lib/php5/20060613+lfs/mysqli.so&lt;/pre&gt;
You can run almost anything in jail including tomcat, python and other stuff. All you have to do is copy required to jail.
&lt;em&gt;&gt; base-docroot doesn&#039;t exist: /webroot/var/www/&lt;/em&gt;
You need to follow modified &lt;a href=&quot;http://www.cyberciti.biz/files/lighttpd/debian-lighttpd.conf.txt&quot; rel=&quot;nofollow&quot;&gt;lighttpd.conf&lt;/a&gt; file. In jail /webroot/var/www becomes /var/www only. This tutorial changes /var/www to /home/lighttpd/domain1.com. Refer config file.</description> <content:encoded><![CDATA[<p>Mike,</p><p>Yes, you need to use current path:</p><pre>/usr/lib/php5/20060613+lfs/mysql.so
/usr/lib/php5/20060613+lfs/mysqli.so</pre><p>You can run almost anything in jail including tomcat, python and other stuff. All you have to do is copy required to jail.</p><p><em>&gt; base-docroot doesn&#8217;t exist: /webroot/var/www/</em></p><p>You need to follow modified <a
href="http://www.cyberciti.biz/files/lighttpd/debian-lighttpd.conf.txt" rel="nofollow">lighttpd.conf</a> file. In jail /webroot/var/www becomes /var/www only. This tutorial changes /var/www to /home/lighttpd/domain1.com. Refer config file.</p> ]]></content:encoded> </item> </channel> </rss>
