nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Lighttpd Chroot jail, [again]

This is a discussion on Lighttpd Chroot jail, [again] within the Web servers forums, part of the Mastering Servers category; Originally Posted by nixcraft Are you on 32bit or 64bit Debian? Take a look at /lib, /usr/lib/, /usr/lib64 and /lib64 ...


Go Back   nixCraft Linux Forum > Mastering Servers > Web servers

Linux answers from nixCraft.


Web servers Discussion on Apache, Nginx and Lighttpd HTTP/web server and configuration issues.

Reply

 

LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 07-02-2010, 10:46 PM
Junior Member
User
 
Join Date: Jan 2010
OS: Debian
Posts: 23
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 0
maxBirdy is on a distinguished road
Default

Quote:
Originally Posted by nixcraft View Post
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.
32 bit debian



this is all i have, there are no files with gcc names in the lib folder, only in the usr/lib
Reply With Quote
  #12 (permalink)  
Old 07-02-2010, 11:59 PM
Junior Member
User
 
Join Date: Jan 2010
OS: Debian
Posts: 23
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 0
maxBirdy is on a distinguished road
Default

i even installed gcc which is SUPPOSED to contain the file
Code:
http://packages.debian.org/lenny/libgcc1
it still doesnt exist!!

do you have the file and you could just give it to me?
Reply With Quote
  #13 (permalink)  
Old 08-02-2010, 12:02 AM
Junior Member
User
 
Join Date: Jan 2010
OS: Debian
Posts: 23
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 0
maxBirdy is on a distinguished road
Default

Quote:
Originally Posted by maxBirdy View Post
i even installed gcc which is SUPPOSED to contain the file
Code:
http://packages.debian.org/lenny/libgcc1
it still doesnt exist!!

do you have the file and you could just give it to me?
nvm, i found the damn thing,
Reply With Quote
  #14 (permalink)  
Old 08-02-2010, 01:29 AM
Junior Member
User
 
Join Date: Jan 2010
OS: Debian
Posts: 23
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 0
maxBirdy is on a distinguished road
Default

now my forum wont work

(note, i did use your db.php test after i got php working in the jail, it successfully connected to the server)

and yes, my password in config.php for vbulletin is correct.

Quote:
Database error in vBulletin :

mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (13)
/home/lighttpd/xxxxxxx/xxx_xxxxx/includes/class_core.php on line 312

MySQL Error :
Error Number :
Request Date : Sunday, February 7th 2010 @ 10:49:44 AM
Error Date : Sunday, February 7th 2010 @ 10:49:44 AM
Script : http://www.xxxxxxxxx.xxx/xxxxxxx/xxx_xxxxx/install/
Referrer :
IP Address : xxx.xx.xx.xx
Username :
Classname : vB_Database
MySQL Version :
i did this
Code:
http://anthologyoi.com/computers/cant-connect-to-local-mysql-server-through-socketerror.html
and put these files in the jail, it changed the error from (2) to what is now an error (13).
Reply With Quote
  #15 (permalink)  
Old 08-02-2010, 01:47 AM
Junior Member
User
 
Join Date: Jan 2010
OS: Debian
Posts: 23
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 0
maxBirdy is on a distinguished road
Default

i dont know what i just did, but now mysql isnt running debian says, but vbulletin is now connected to the db.

does that mean its running in the jail?

can i jump up and down and celebrate now?
Reply With Quote
  #16 (permalink)  
Old 08-02-2010, 02:54 AM
Junior Member
User
 
Join Date: Jan 2010
OS: Debian
Posts: 23
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 0
maxBirdy is on a distinguished road
Default

Quote:
mkdir /webroot/var/run/
mkdir /webroot/var/run/mysqld/
touch /webroot/var/run/mysqld/mysqld.sock
chown -R mysql /webroot/var/run/mysqld/
/etc/init.d/mysql restart
.................................................. ...................failed!


but vbulletin is connected...

before when i didnt have mysqld.sock in the jail, vbulletin wouldn't connect
Reply With Quote
  #17 (permalink)  
Old 08-02-2010, 11:15 AM
rockdalinux's Avatar
Is that all you got?
User
 
Join Date: May 2005
Location: Planet Vegeta
OS: Redhat
Posts: 708
Thanks: 15
Thanked 19 Times in 18 Posts
Rep Power: 10
rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light
Default

Do not use socket for mysql. Configure mysql to listen on 127.0.0.1 and configure vb so that it can connect to 127.0.0.1
__________________
Rocky Jr.
What's wrong? I hope I am not making you uncomfortable...

Never send a boy to do a mans job.
Reply With Quote
Reply

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

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


All times are GMT +5.5. The time now is 04:35 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38