Sorry for mailing directly to you.

Did you change


APACHE2="$ENV /usr/sbin/chroot /chroot/httpd/ /usr/sbin/apache2"
APACHE2CTL="$ENV /usr/sbin/chroot /chroot/httpd/ /usr/sbin/apache2ctl"

to

APACHE2="$ENV /usr/sbin/chroot /var/chroot/apache /usr/sbin/apache2"
APACHE2CTL="$ENV /usr/sbin/chroot /var/chroot/apache /usr/sbin/apache2ctl" ?

Regards,

Ben





)
B.t.w. I do not know what to do with the /etc/init.d/syslogd script at the moment. Please ask someone else about it if you don't get that part working.


 

2006/4/15, Gezim Hoxha < [EMAIL PROTECTED] >:
On Fri, 2006-14-04 at 09:39 +0200, Sonixxfx wrote:
> I  do not know what is causing this, but I do know that the program
> makejail does the chrooting automatically for you. Maybe you would
> like to have a look at it.

I tried makejail, however I get the same error:
# /etc/init.d/apache2 start
Starting web server: Apache2/usr/sbin/chroot: cannot run command
`/usr/sbin/apache2ctl': No such file or directory

Here is the config file I used:

chroot="/var/chroot/apache"
testCommandsInsideJail=["/usr/sbin/apache2ctl start"]
processNames=["apache2"]

# Eventually append here the commands which access some services
# such as cgi or php scripts, database access, ...
#testCommandsOutsideJail=["wget -r --spider http://localhost/ ",
#                                                "lynx --source
https://localhost/"]

preserve=["/var/www",
                  "/var/log/apache",
                  "/dev/log"]
users=["www-data"]
groups=["www-data"]


Keep in mind I have apache2. So, any suggestions?

Thanks,
-Gezim




Reply via email to