Apache-SdnFw
view release on metacpan or search on metacpan
lib/Apache/SdnFw/tt/install.txt view on Meta::CPAN
make
make install
# PHP is generally not needed, unless you need wordpress or maybe something else that runs php
cd ../php-5.3.5
# only config with mysql if you need it for wordpress, otherwise use the next option
./configure --with-zlib \
--with-mysql=/usr/bin/ --with-libdir=lib64 \
--with-pgsql --with-apache=../apache_1.3.37
# Postgres only
./configure --with-zlib \
--with-pgsql --with-apache=../apache_1.3.37
make
make install
# now back to normal stuff
cd ../mod_ssl-2.8.28-1.3.37/
./configure --with-apache=../apache_1.3.37 --with-ssl=SYSTEM --prefix=/usr/local/apache --enable-shared=ssl
cd ../apache_1.3.37
wget http://www.awe.com/mark/dev/mod_status_xml/dist/mod_status_xml.c
mv mod_status_xml.c src/modules/extra/
# without php
./configure --activate-module=src/modules/perl/libperl.a --enable-module=env \
--enable-module=log_config --enable-module=log_agent --enable-module=log_referer \
--enable-module=mime --enable-module=status --enable-module=info --enable-module=dir \
--enable-module=cgi --enable-module=alias --enable-module=proxy --enable-module=rewrite \
--enable-module=access --enable-module=expires --enable-module=setenvif --enable-module=so \
--activate-module=src/modules/ssl/libssl.a --enable-module=dir --disable-shared=dir \
--add-module=src/modules/extra/mod_status_xml.c
# with php
./configure --activate-module=src/modules/perl/libperl.a --enable-module=env \
--enable-module=log_config --enable-module=log_agent --enable-module=log_referer \
--enable-module=mime --enable-module=status --enable-module=info --enable-module=dir \
--enable-module=cgi --enable-module=alias --enable-module=proxy --enable-module=rewrite \
--enable-module=access --enable-module=expires --enable-module=setenvif --enable-module=so \
--activate-module=src/modules/ssl/libssl.a --enable-module=dir --disable-shared=dir \
--activate-module=src/modules/php5/libphp5.a --add-module=src/modules/extra/mod_status_xml.c
make
make install
# php final install stuff
cd ../php-5.3.5
cp php.ini-production /usr/local/lib/php.ini
# create our empty directories that will house all the code and data from the sites
mkdir /code
mkdir /data
useradd chrissutton
passwd chrissutton
# add postgres users
useradd postgres
mkdir /usr/local/pgsql/data
chown postgres /home/postgres
chown postgres /usr/local/pgsql/data
cd /root/src/postgresql-8.2.20/contrib/start-scripts/
cp linux /etc/rc.d/init.d/postgresql
# EDIT /etc/rc.d/init.d/postgresql and make it start at 80 instead of 98
# because it needs to start before apache
chkconfig --add postgresql
chmod +x /etc/rc.d/init.d/postgresql
# initialize the database
su - postgres
cd /usr/local/pgsql/bin/
./initdb /usr/local/pgsql/data
exit
service postgresql start
# create some symbolic links so apache will start in a special way that will work
# with code that is installed later.
ln -s /code/httpd/bin/conf.pl /usr/local/apache/conf/conf.pl
rm -f /etc/rc.d/init.d/httpd
ln -s /code/httpd/bin/apachectl /etc/rc.d/init.d/httpd
mkdir /usr/lib/perl5/vendor_perl/5.8.8/Apache/
ln -s /code/Apache-SdnFw/lib/Apache/SdnFw/ /usr/lib/perl5/vendor_perl/5.8.8/Apache/
ln -s /code/Apache-SdnFw/lib/Apache/SdnFw.pm /usr/lib/perl5/vendor_perl/5.8.8/Apache/
cd /usr/local/pgsql/bin
./createuser -S -D -R -U postgres sdnfw
# get htmldoc - for creating PDFs
tar -zxf htmldoc-1.8.27-source.tar.gz
cd htmldoc-1.8.27
./configure
make
make install
# wordpress
cd /root/src
wget http://wordpress.org/latest.tar.gz
mv latest.tar.gz wordpress.tar.gz
cd /data/oicf/content
tar -zxf /root/src/wordpress.tar.gz
mv wordpress/* .
rmdir wordpress
# install pisa for better html to pdf options
cd /root/src
wget http://pypi.python.org/packages/source/p/pisa/pisa-3.0.33.tar.gz
wget http://www.reportlab.com/ftp/reportlab-2.5.tar.gz
wget http://html5lib.googlecode.com/files/html5lib-0.11.1.zip
wget http://pybrary.net/pyPdf/pyPdf-1.13.tar.gz
tar -zxf pisa-3.0.33.tar.gz
cd pisa-3.0.33
python setup.py install
cd ../
tar -zxf reportlab-2.5.tar.gz
cd reportlab-2.5
python setup.py install
cd ../
unzip -o html5lib-0.11.1.zip
cd html5lib-0.11.1
python setup.py install
cd ../
tar -zxf pyPdf-1.13.tar.gz
cd pyPdf-1.13
python setup.py install
# If you need SFTP
cd /root/src
wget wget http://dag.wieers.com/rpm/packages/rssh/rssh-2.3.2-1.2.el5.rf.i386.rpm
rpm -Uvh rssh-2.3.2-1.2.el5.rf.i386.rpm
wget http://olivier.sessink.nl/jailkit/jailkit-2.11.tar.gz
tar -zxf jailkit-2.11.tar.gz
cd jailkit-2.11
./configure
make
make install
# edit /etc/rssh.conf, change chrootpath
mkdir /data/chroot
useradd -m -d /home/odfl -s /usr/bin/rssh odfl
passwd odfl
jk_init -j /data/chroot/odfl sftp
mkdir /data/chroot/odfl/inbox
chown odfl.odfl /data/chroot/odfl/inbox/
( run in 2.540 seconds using v1.01-cache-2.11-cpan-56fb94df46f )