Linux / UNIX Tech Support Forum
This is a discussion on Lighttpd Chroot jail, [again] within the Web servers forums, part of the Mastering Servers category; ok last time i was doing it way wrong, this time i know i got it right, here is my ...
|
|||||||
| Web servers Discussion on Apache, Nginx and Lighttpd HTTP/web server and configuration issues. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
ok last time i was doing it way wrong, this time i know i got it right, here is my error log.
HTML Code:
2010-01-28 16:57:57: (log.c.166) server started 2010-01-28 16:57:57: (mod_compress.c.223) can't stat compress.cache-dir /var/cache/lighttpd/compress/ No such file or directory 2010-01-28 16:57:57: (server.c.931) Configuration of plugins failed. Going down. the below is unfixed, i think ive seen people have similar problems but i didnt bookmark the pages. HTML Code:
2010-01-28 17:01:58: (log.c.166) server started 2010-01-28 17:01:58: (mod_fastcgi.c.1104) the fastcgi-backend /usr/bin/php-cgi failed to start: 2010-01-28 17:01:58: (mod_fastcgi.c.1108) child exited with status 2 /usr/bin/php-cgi 2010-01-28 17:01:58: (mod_fastcgi.c.1111) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version. If this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2010-01-28 17:01:58: (mod_fastcgi.c.1399) [ERROR]: spawning fcgi failed. 2010-01-28 17:01:58: (server.c.931) Configuration of plugins failed. Going down. |
| Sponsored Links | ||
|
|
|
||||
|
Before get into php problem, just comment out all fastcgi and php lines. And try to start server. if it started than you can easily debug php problem as well. This is on Gentoo or Debian?
__________________
Vivek Gite Linux Evangelist |
|
|||
|
my os is debian
lighty-disable-mod fastcgi Available modules: auth cgi fastcgi proxy rrdtool simple-vhost ssi ssl status userdir Already enabled modules: fastcgi Disabling fastcgi Run /etc/init.d/lighttpd force-reload to enable changes > /etc/init.d/lighttpd force-reload Reloading web server configuration: lighttpd. doing this made the server work, i can now connect to it. //edit, just put index.htm and some jibberish in it, into the jail, opened it in browser, works great, now i just need help on figuring out why php wont work. Last edited by maxBirdy; 29-01-2010 at 09:33 PM. |
|
||||
|
Did you installed php5-cgi package?
__________________
Vivek Gite Linux Evangelist |
|
|||
|
yes it is.
Code:
apt-get install lighttpd php5-cgi php5-cli php5-mysql mysql-server |
|
||||
|
Did you copied /usr/bin/php5-cgi and all its files (libs) to the directory set by server.chroot directory. If any files all not copied there will be problem. You need to use l2chroot script and edit base directory as specified in article.
__________________
Vivek Gite Linux Evangelist |
|
|||
|
Quote:
im not even going to bother trying to remember what i wrote. nixcraft, ive done everything in the chroot tut for lighttpd, everything!!, i havnt missed a single step, not one, ive followed it till my eyes hurt from staring so hard at it, ive copied all the files, ive installed everything, ive used the l2chroot, ive made sure all my directories are correct, all the directories put out by the "dpkg -L php5-mysql" i used those directories for php that it put out. ive done nothing different other than what the tutorial told me to do, and ive followed it line by line. i havnt a clue what to do, im only an intermediate linux user, maybe i need to put "/webroot/usr/bin/php5-cgi" in the mod-enabled-fast-cgi.conf?? |
|
||||
|
Fine. Stop lighttpd and turn on fastcgi.
Next start lighttpd as follows from command prompt and note down errors: Code:
lighttpd -D -f /etc/lighttpd/lighttpd.conf
__________________
Vivek Gite Linux Evangelist |
|
|||
|
Quote:
there is no php-cgi bin in the jail, just a php5-cgi and php5 bin. , so in "10-fast-cgi.conf" i edit php-cgi to>> php5-cgi, now i get a whole new mess of errors, or missing libs for php, well i know where those are and i just transfered them to the jail, now im left with one error, it seems to have something to do with GCC?? Quote:
|
|
||||
|
Are you on 32bit or 64bit Debian? Take a look at /lib, /usr/lib/, /usr/lib64 and /lib64 directory. You will find file in one of those dir.
__________________
Vivek Gite Linux Evangelist |
![]() |
| Tags |
| chroot , debian , fastcgi , gentoo , lighttpd , linux , php , unix |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| FreeBSD Jails -- use 'jexec' to execute multiple commands within a jail? | gigglesworth | All about FreeBSD/OpenBSD/NetBSD | 6 | 20-01-2010 06:16 PM |
| Lighttpd Chroot | maxBirdy | Web servers | 6 | 06-01-2010 12:36 PM |
| How to jail php | raj | Web servers | 2 | 08-12-2008 01:39 PM |
| Linux Questions About BoF and Chroot | shanthiavari | Linux software | 1 | 14-06-2008 11:52 AM |
| Minisendmail chroot | get.the.MaX | Web servers | 2 | 17-01-2008 11:58 PM |