Words of Wisdom:

"The biggest reward of life is to be yourself." - The_x_files120002002

How I Jailed Apache

  • Date Submitted: 04/25/2010 01:58 PM
  • Flesch-Kincaid Score: 53.5 
  • Words: 1490
  • Essay Grade: no grades
  • Report this Essay
Originally, Apache was installed to /opt/apache20

Jailed Aache location == /opt/apache20/opt/apache_2.0.53
mkdir -p /opt/apache20/opt/apache_2.0.53

Move apache installation to the jailed location.
mv /opt/apache20 /opt/apache20/opt/apache_2.0.53

Create a symbolic link from the old location to the new one
to allow the web server to be used with or without being jailed
as needed and allows for easy web server upgrades.
ln -s /opt/apache20/opt/apache_2.0.53 /opt/apache20

mkdir -p /opt/apache20/opt/apache_2.0.53/var
mv /var/www /opt/apache20/opt/apache_2.0.53/var/
ln -s /opt/apache20/opt/apache_2.0.53/var/www /var/www

Like other programs, Apache depends on many shared libraries.
The ldd tool gives their names (this ldd output comes from an
Apache that has all default modules built-in statically):
ldd /opt/apache20/opt/apache_2.0.53/bin/httpd

libz.so.1 =>     /usr/lib/libz.so.1
libssl.so.0.9.7 =>       /usr/local/ssl/lib/libssl.so.0.9.7
libcrypto.so.0.9.7 =>     /usr/local/ssl/lib/libcrypto.so.0.9.7
libaprutil-0.so.0 =>     /opt/apache20/opt/apache_2.0.53/lib/libaprutil-0.so.0
libexpat.so.0 =>         /opt/apache20/opt/apache_2.0.53/lib/libexpat.so.0
libiconv.so.2 =>         /usr/local/lib/libiconv.so.2
libapr-0.so.0 =>         /opt/apache20/opt/apache_2.0.53/lib/libapr-0.so.0
libsendfile.so.1 =>       /usr/lib/libsendfile.so.1
librt.so.1 =>     /usr/lib/librt.so.1
libm.so.1 =>     /usr/lib/libm.so.1
libsocket.so.1 =>         /usr/lib/libsocket.so.1
libnsl.so.1 =>   /usr/lib/libnsl.so.1
libresolv.so.2 =>         /usr/lib/libresolv.so.2
libpthread.so.1 =>       /usr/lib/libpthread.so.1
libdl.so.1 =>     /usr/lib/libdl.so.1
libc.so.1 =>     /usr/lib/libc.so.1
libgcc_s.so.1 =>         /usr/local/lib/libgcc_s.so.1
libaio.so.1 =>   /usr/lib/libaio.so.1
libmd5.so.1 =>   /usr/lib/libmd5.so.1
libmp.so.2 =>     /usr/lib/libmp.so.2
libthread.so.1 =>         /usr/lib/libthread.so.1...


Express your owns thoughts and ideas on this essay by writing a grade and/or critique.

  1. No comments