Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Chroot Apache2 + mod_php + Mysql
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Hellzone
Apprentice
Apprentice


Joined: 23 May 2003
Posts: 167

PostPosted: Wed Jul 02, 2003 9:48 pm    Post subject: Chroot Apache2 + mod_php + Mysql Reply with quote

I have an installation of apache2 + php4 + mysql and i'd like to stick this inside a chroot.

The problem i've had is i use
Code:

cd /vservers/www
cp -ax /sbin /bin /etc /usr /var /dev /lib .


the problem is this works fine and dandy i can even chroot into it using:

Code:
chroot /vserver/www

but when i run
Code:
/etc/init.d/apache2 start
from within the chroot i get all sorts of errors.. would there be any reason for this? i want to get apache running and then i'll clear up my config files etc (including files the chroot doesn't need).

-james
Back to top
View user's profile Send private message
Pindrop
Apprentice
Apprentice


Joined: 09 Jul 2002
Posts: 165
Location: Virginia, USA

PostPosted: Wed Jul 02, 2003 11:04 pm    Post subject: Reply with quote

What are the errors you get?
Back to top
View user's profile Send private message
Hellzone
Apprentice
Apprentice


Joined: 23 May 2003
Posts: 167

PostPosted: Wed Jul 02, 2003 11:08 pm    Post subject: re: Reply with quote

Its ok i've fixed the problems now it involved a directory i didn't copy over /mnt/.init.d/
now i've copied it it works perfectly, can anyone advise me on how to safely remove portage without causing any damage to a current system?

-James
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum