: # $id$ # # php-configure - a script to configure php/install in a sain manner # # more at http://bizhosting.com.au/faq/technical.html # # pick a php from http://www.php.net/downloads.php # tar -zxf it, and copy this script into the source directory # (at the same level as ./configure) # # run this script with # sh php-configure # run # make # make test # make install if [[ ! -f './configure' ]]; then echo -e "I can't find ./configure" exit 2 fi # install to this directory INSTALL_TO=`echo ~/php5-cgi` mkdir -p "$INSTALL_TO" echo "Will install to $INSTALL_TO" chmod +x build/* # You may want more/less options, there are may packages # you can build into php, it depends on the needs of your application. # It will be helpful to check if your appication has a test suite you can # run to determin if you have everything you need compiled in [[ -f "Makefile" ]] && \ make clean sh ./configure \ --with-config-file-path=/home/silverstone/ \ --with-mysql=/var/lib/mysql/ \ --enable-force-cgi-redirect \ --prefix="$INSTALL_TO" \ --with-zlib \ --disable-simplexml \ --disable-libxml \ --disable-xml \ --disable-xmlreader \ --disable-xmlwriter \ --disable-dom \ --without-pear \ --with-pdo-mysql \ --without-sqlite [[ -f "Makefile" ]] && \ make && \ make install