# PHP 5.0.3 cd /home/your_username/src wget http://us4.php.net/distributions/php-5.0.3.tar.gz gunzip php-5.0.3.tar.gz tar -xf php-5.0.3.tar # Delete the PHP 5 tar file rm php-5.0.3.tar # Download all PHP 5 Libraries mkdir php5libs cd php5libs # curl-7.12.3 wget http://curl.haxx.se/download/curl-7.12.3.tar.gz # libiconv-1.9.2 wget ftp://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.9.2.tar.gz # libmcrypt-2.5.7 wget http://unc.dl.sourceforge.net/sourceforge/mcrypt/libmcrypt-2.5.7.tar.gz # libxml2-2.6.10 wget http://xmlsoft.org/sources/old/libxml2-2.6.10.tar.gz # libxslt-1.1.3 wget http://xmlsoft.org/sources/old/libxslt-1.1.3.tar.gz # mhash-0.9.2 # Update path further below when compiling wget http://unc.dl.sourceforge.net/sourceforge/mhash/mhash-0.9.2.tar.gz # mysql-4.0.23a wget http://mirror.aca.oakland.edu/mysql/Downloads/MySQL-4.0/mysql-4.0.23a.tar.gz # tidy wget http://tidy.sourceforge.net/src/tidy_src.tgz # zlib-1.2.2 # Update path below when compiling wget http://umn.dl.sourceforge.net/sourceforge/libpng/zlib-1.2.2.tar.gz # Extract them all to their own directories # Extract the following archives as appropriate # The following should do it: gunzip *.tar.gz gunzip *.tgz tar -xf curl-7.12.3.tar tar -xf libiconv-1.9.2.tar tar -xf libmcrypt-2.5.7.tar tar -xf libxml2-2.6.10.tar tar -xf libxslt-1.1.3.tar tar -xf mhash-0.9.2.tar tar -xf mysql-4.0.23a.tar.gz tar -xf tidy_src.tar tar -xf zlib-1.2.2.tar # Delete all .tar files rm *.tar # Optional: compress all the source files for future compilations / reinstallations # To tar and gzip all the contents of the src dir: cd .. cd .. # pwd is /home/your_username/ tar -czf php5_src_libs.tgz src