LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > Chroot and php.ini

Reply
 
Thread Tools Display Modes
  #1  
Old 04-17-2009, 10:41 PM
yulia yulia is offline
Member
 
Join Date: Oct 2008
Posts: 27
Default Chrooting

I'm currently playing around with the chroot function, but can't seem to figure out how to load php.ini

I've tried lots of ways, none worked yet. Is there a trick? Current build:

Code:
./configure'  '--prefix=/opt/lsws/chroot/usr' '--with-litespeed' '--with-config-file-path=../php' ...
EDIT: Figured it out.

Last edited by yulia; 04-18-2009 at 10:18 AM..
Reply With Quote
  #2  
Old 04-18-2009, 07:54 AM
yulia yulia is offline
Member
 
Join Date: Oct 2008
Posts: 27
New problem... How do you get MySQL to work in a chroot environment?

Last edited by yulia; 04-18-2009 at 10:19 AM..
Reply With Quote
  #3  
Old 04-20-2009, 09:40 AM
yulia yulia is offline
Member
 
Join Date: Oct 2008
Posts: 27
Well after some research I found you can change the MySQL sock to the tmp location in the chroot, but can't get MySQL to restart. Is it typically better to reinstall MySQL in the chroot?
Reply With Quote
  #4  
Old 04-20-2009, 10:30 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Changing the MYSQL socket location wont make MySQL to fail.
I think it is not a easy task to install MySQL in chroot, and it is not necessary.
Reply With Quote
  #5  
Old 04-21-2009, 02:10 PM
yulia yulia is offline
Member
 
Join Date: Oct 2008
Posts: 27
is there a certain location i should change the MySQL sock to? I've been setting it in the tmp under the chroot, but MySQL like fails to start when i change it.
Reply With Quote
  #6  
Old 04-21-2009, 04:55 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
check your mysql server log for errors. maybe a permission problem?
Reply With Quote
Reply

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

Forum Jump


All times are GMT -7. The time now is 10:08 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.