curl
mysql
zend optimizer
1. compile mysql @ /usr/local/mysql
2. compile curl @ /usr/local
3. compile apache @ /usr/local
4. compile php4.3 @ /usr/local
##mysql 4.0
shell> groupadd mysql
shell> useradd -g mysql mysql
shell> gunzip < mysql-VERSION.tar.gz | tar -xvf -
shell> cd mysql-VERSION
shell> ./configure –prefix=/usr/local/mysql –localstatedir=/var/lib/mysql
shell> make
shell> make install
shell> cp support-files/my-medium.cnf /etc/my.cnf
shell> cp support-files/mysql.server /etc/init.d/mysql4
shell> cd /usr/local/mysql
shell> bin/mysql_install_db –user=mysql
shell> chown -R root .
shell> chown -R mysql var
shell> chgrp -R mysql .
shell> bin/mysqld_safe –user=mysql &
shell> bin/mysqladmin -uroot password mysqldroot
##apache
./configure \
–prefix=/usr/local/apache \
–enable-module=rewrite –enable-shared=rewrite \
–htdocsdir=/www –datadir=/www
##curl
./configure –prefix=/usr/local –with-ssl
##php4.44
shell> apt-get install libpng3 libpng3-dev libjpeg-dev
./configure –prefix=/usr/local \
–enable-module=so \
–with-calendar=shared –enable-magic-quotes \
–enable-wddx –enable-ftp –enable-sockets \
–enable-inline-optimization –enable-memory-limit –with-gd \
–with-zlib –enable-gd-native-tt –with-ttf –with-gettext \
–with-freetype-dir=/usr/lib/ \
–with-jpeg-dir=shared,/usr –with-png-dir=shared,/usr –with-zlib-dir=shared,/usr \
–with-mysql=/usr/local/mysql –with-apxs=/usr/local/apache/bin/apxs \
shell> cp php.ini-recommended /usr/local/lib/php.ini
edit httpd.conf > AddType application/x-httpd-php .php