Help Analyzing PHP Install Script (and more)
Code:
#Copy all of the Items cp /root/Desktop/Downloads/ApacheInstall/* /usr/local/src cd /usr/local/src mkdir PreConfig cp /root/Desktop/Downloads/ApacheInstall/PreConfig/* /usr/local/src/PreConfig #Unpack all of the Items tar zxf apache_1.3.27.tar.gz tar zxf mysql-3.23.53a-pc-linux-gnu-i686.tar.gz tar zxf freetype-2.1.3.tar.gz tar zxf openssl-0.9.6g.tar.gz tar zxf gd-2.0.7.tar.gz tar zxf openssl-engine-0.9.6g.tar.gz tar zxf gdbm-1.8.3.tar.gz tar zxf pdflib-4.0.3-Linux.tar.gz tar zxf jpegsrc.v6b.tar.gz tar zxf php-4.2.3.tar.gz tar zxf libpng-1.2.5.tar.gz tar zxf tiff-v3.5.7.tar.gz tar zxf mm-1.2.1.tar.gz tar zxf zlib-1.1.3.tar.gz tar zxf mod_ssl-2.8.12-1.3.27.tar.gz # Remove Any Old Symbolic Links cd /usr/local rm -f apache rm -f php rm -f mysql rm -f mm rm -f freetype2 rm -f libpng rm -f jpeg-6b rm -f tiff rm -f gd rm -f zlib rm -f pdflib rm -f openssl rm -f mod_ssl # Create a Few Symlinks for Convenience ln -s ./src/apache_1.3.27 apache ln -s ./src/php-4.2.3 php ln -s ./src/mysql-3.23.53a-pc-linux-gnu-i686 mysql ln -s ./src/mm-1.2.1 mm ln -s ./src/freetype-2.1.3 freetype2 ln -s ./src/libpng-1.2.5 libpng ln -s ./src/jpeg-6b jpeg-6b ln -s ./src/tiff-v3.5.7 tiff ln -s ./src/gd-2.0.7 gd ln -s ./src/zlib-1.1.3 zlib ln -s ./src/pdflib-4.0.3-Linux pdflib ln -s ./src/openssl-0.9.6g openssl ln -s ./src/mod_ssl-2.8.12-1.3.27 mod_ssl # Building MM Library cd /usr/local cd mm ./configure --disable-shared make make test make install ldconfig #Installing FreeType 2 # Copy Preconfigured file to Enable BYTE_INTEPRPRETER - see readme.UNIX for more info cp /usr/local/src/PreConfig/ftoption.h /usr/local/src/freetype2/include/freetype/config/ftoption.h cd /usr/local/freetype2 ./configure --prefix=/usr make make install #Installing LibPNG cd /usr/local/libpng cp scripts/makefile.linux ./Makefile make make install #Installing LibJPeg cd /usr/local/jpeg-6b ./configure make make test make install make install-lib make install-headers #instaling TIFF Library # cd /usr/local/tiff # ./configure # make # make install # echo "/usr/local/lib" >> /etc/ld.so.conf # /sbin/ldconfig #Install GDLib - After LibPNG, LibJPEG and FreeType cd /usr/local/gd ./configure make make install #Install ZLib cd /usr/local/zlib ./configure make test make install #Install PDFLib # cd /usr/local/pdflib # ./configure -enable-shared-pdflib # make # make test # make install #Installing OpenSSL cd /usr/local/openssl ./config --prefix=/usr/local/openssl make make test make install #Patch mod_ssl cd /usr/local/mod_ssl ./configure --with-apache=/usr/local/apache \ --with-ssl=/usr/local/openssl \ --with-mm=/usr/local/mm \ --enable-shared=ssl #Installing MySQL # Create Group and Add User groupadd mysql useradd -g mysql mysql # Change Directory cd /usr/local/mysql # Configure and Make MySQL ./configure --prefix=/usr/local/mysql \ --localstatedir=/usr/local/mysql/data \ --disable-maintainer-mode \ --with-mysqld-user=mysql \ --enable-large-files \ --without-comment \ --without-debug \ --without-docs \ --without-bench make make install # Run Cnofiguration Scripts ./scripts/mysql_install_db chown -R root:mysql /usr/local/mysql chown -R mysql:mysql /usr/local/mysql/data # Not sure what the **** t his does echo "/usr/local/mysql/lib/mysql" >> /etc/ld.so.conf ldconfig -v | grep libmysqlclient # Set MySQL to run at startup echo "/usr/local/mysql/bin/safe_mysqld --user=mysql &" >> /etc/rc.d/rc.local # Startup Server cd /usr/local/mysql/bin ./safe_mysqld --user=mysql & # Do not do this because it has not started intime ? ./mysqladmin version # Change Password ./mysqladmin -u root password vibratingdildos_2003 #./mysql -u root -pvibratingdildos_2003 # ./safe_mysqld --user=mysql & && ./mysqladmin version # Compiling PHP cd /usr/local/apache ./configure cd .. cd php ./configure --with-apache=/usr/local/apache \ --enable-trans-sid \ --with-jpeg-dir=/usr/local \ --with-gd=/usr/local/gd \ --with-tiff-dir=/usr/local/tif \ --with-png-dir=/usr/local/libpng \ --with-zlib-dir=/usr/local/zlib \ --with-pdflib \ --with-mysql=/usr/local/mysql \ --enable-static-pdflib \ --enable-gd-native-tt \ --enable-gd-imgstrttf \ --enable-track-vars \ --with-freetype-dir=/usr/local/freetype2/include \ --enable-inline-optimization \ --enable-bcmath \ --disable-debug # --enable-ftp \ # --with-xml \