Greetings fellow PLUGgers!
I'm used to custom compiling my PostgreSQL, PHP and Apache servers. I
used to do this without hassle in Red Hat-flavored Linux distros like
CentOS and WhiteBox.

Here's my custom compilation script to build PHP and Apache:
groupadd apache;
useradd -g apache -d /home/httpd apache;
cd /var/tmp/apache_1.3.33/
export OPTIM="-O3 -march=i686 -mcpu=i686 -funroll-loops -fomit-frame-pointer";
export CFLAGS="-DDYNAMIC_MODULE_LIMIT=0";
./configure --prefix=/home/httpd --bindir=/usr/bin --sbindir=/usr/sbin
--libexecdir=/usr/lib/www --includedir=/usr/include/apache
--sysconfdir=/etc/httpd/conf --localstatedir=/var
--runtimedir=/var/run --logfiledir=/var/log/httpd
--datadir=/home/httpd --mandir=/usr/share/man;
cd /var/tmp/php-5.1.2/;
export CFLAGS="-O3 -march=i686 -mcpu=i686 -funroll-loops -fomit-frame-pointer";
./configure --prefix=/usr --with-exec-dir=/usr/bin
--with-apache=../apache_1.3.33 --with-config-file-path=/etc/httpd
--with-ttf --with-jpeg --with-png --with-pgsql --without-mysql
--with-gettext --enable-wddx --enable-inline-optimization;
gmake;
gmake install;
cd /var/tmp/apache_1.3.33/
export OPTIM="-O3 -march=i686 -mcpu=i686 -funroll-loops -fomit-frame-pointer";
export CFLAGS="-DDYNAMIC_MODULE_LIMIT=0";
./configure --prefix=/home/httpd --bindir=/usr/bin --sbindir=/usr/sbin
--libexecdir=/usr/lib/www --includedir=/usr/include/apache
--sysconfdir=/etc/httpd/conf --localstatedir=/var
--runtimedir=/var/run --logfiledir=/var/log/httpd
--datadir=/home/httpd --mandir=/usr/share/man
--activate-module=src/modules/php5/libphp5.a --enable-module=php5
--disable-module=status --disable-module=userdir
--disable-module=negotiation --disable-module=autoindex
--disable-module=imap --server-uid=apache --server-gid=apache;
gmake;
gmake install;
#rm -f /usr/sbin/apachectl;
rm -f /usr/share/man/man8/apachectl.8;
rm -rf /home/httpd/icons/;
rm -rf /home/httpd/htdocs/;
rm -f /home/httpd/cgi-bin/printenv;
rm -f /home/httpd/cgi-bin/test-cgi;
rm -rf /var/cache/httpd/;
rm -f /etc/httpd/conf/srm.conf;
rm -f /etc/httpd/conf/srm.conf.default;
rm -f /etc/httpd/conf/access.conf;
rm -f /etc/httpd/conf/access.conf.default;
rm -f /etc/httpd/conf/mime.types.default;
rm -f /etc/httpd/conf/magic.default;
cd /var/tmp/php-5.1.2/;
install -m644 php.ini-dist /etc/httpd/php.ini;

As you can see, I prefer to custom compile to get only the more
required components and to have a secure build of Apache with PHP
(aside from the advantage of getting the preferred version of software
to use). I have used this exact build script in OpenBSD with success.

Recently, I tried out Debian 3.1 and I liked the net installation
procedure, reminding me of the joy (or pain!) of installing OpenBSD.
By default GCC is installed so I was about to compile my apps when I
was surprised not to find my old friend "/etc/rc.local".
I'm not very well versed in writing daemon startup scripts for
"/etc/rc.d/init.d/" in my old distro so I find "/etc/rc.local" a
convenient way to start it up fast without digging deep on daemon
start and stop scripts.
How do I start custom compiled daemons in Debian? Any pointers please?
Thank you very much!

--
Tito Mari Francis H. Escaño
Computer Engineer and Free Software Proponent
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to