You are not logged in.
I have created a chroot folder with the following commands:
mkdir /newarch
mkdir -p /newarch/var/lib/pacman
pacman -Sy -r /newarch
pacman -S base -r /newarch
pacman -S apache mysql php -r /newarch
Now i have the chroot environment, but cannot create the jail for the
servers. For example when i start apache i get this weird stuff:
root@arch:~# /newarch/etc/rc.d/httpd start
:: Starting Apache Web Server [DONE]
root@arch:~# /etc/rc.d/httpd status
:: Checking Apache Web Server status [STARTED]
root@arch:~#
Offline
Other wierd stuff that i noticed, is that when i start the httpd inside the chroot it is started normally
but the normal host cannot see it:
root@arch:etc# /newarch/etc/rc.d/httpd status
:: Checking Apache Web Server status [STOPPED]
root@arch:etc# /etc/rc.d/httpd status
:: Checking Apache Web Server status [STOPPED]
root@arch:etc# cd
root@arch:~# chroot /newarch /bin/bash
[root@arch /]# /etc/rc.d/httpd status
:: Checking Apache Web Server status [STARTED]
Last edited by arkara (2010-10-13 23:58:45)
Offline
don't you have to chroot first into that jail in order to start the apache server?
Offline
don't you have to chroot first into that jail in order to start the apache server?
That makes sense. Also check the relevant logs. Have you bound the apache daemon to a specific IP?
Offline
don't you have to chroot first into that jail in order to start the apache server?
I did chroot in the jail first.
Offline
That makes sense. Also check the relevant logs. Have you bound the apache daemon to a specific IP?
How can i see that? I mean the ip should be the ip the hosting machine.
Offline