Sunday, May 18, 2008

INT525 Compile Process

Just some stuff I've been working on.....you know this one actually is good instructions.....Apache Installation

Creating symbolic links to start up Apache, S__ and K__ in init

We download the source tarbal

Untar it with tar –xzvf

Make sure no one can log in if you do this to their account /bin/false

7 fields per user etc passwd

Everydeamon /bin/false

When installing we user

Do not do this as root,

Make
Make test

Make a dedicated directory to deal with your source code

/exp/src

Your configuration needs,

Document Root
Server Root
Extract Binaries
Change Executable Directory
Configuration Files












All command line switches, and easier more quickly with config.layout

# SuSE 6.x layout

prefix: /usr
exec_prefix: ${prefix}
bindir: ${prefix}/bin
sbindir: ${prefix}/sbin
libdir: ${prefix}/lib
libexecdir: ${prefix}/lib/apr
mandir: ${prefix}/share/man
sysconfdir: /etc/httpd
datadir: /usr/local/httpd
installbuilddir: ${datadir}/build
includedir: ${prefix}/include/apr
localstatedir: /var/lib/httpd
runtimedir: /var/run


Buildconf (first time system inspection and change system tree appropriately)
./configure (command line switches –withlayout)
Make
Make Test
Make Install (Don’t Do)
Make Clean

We are done unless we want to statically compile some modules, modify the build dso capabilities, we must compile the mod_so

Run shell script to automate this and make modifications to it and run it

No comments: