It's finally time to test your chrooted Web server.
Start by restarting the syslogd daemon:
[root@thor root ]# /etc/rc.d/init.d/syslog restart
Now start the Web server daemon. The command for Running Apache under Red Hat follows:
[root@thor root ]# /etc/rc.d/init.d/apache start
To check that the server daemon is running, type: ps -ef | grep httpd. The output should show the primary httpd daemon running as root, and a number of child processes. To check whether the server is running in a chroot environment, pick any process ID and type:
[root@thor root ]# ls -la /proc/process-id/root/
You should see output from the above command similar to the following:
dev
etc
www
lib
usr
var
If you do, congratulations! The server is running in a chroot environment. If you don't, do not pass Go and do not collect $200; go back and check the configuration details presented in this section.