wget php-5.3.3.tar.gz
tar -zxvf php-5.3.3.tar.gz
cd php-5.3.3
./configure --with-mysql=/usr/local/mysql --with-zlib --with-apxs2=/usr/local/apache2/bin/apxs --with-bz2 --with-curl --enable-soap --enable-sockets --with-xmlrpc --enable-zip --with-gd --enable-calendar --enable-ctype --enable-ftp --enable-gd-native-ttf --enable-magic-quotes --with-ldap --enable-sqlite-utf8 --enable-pdo --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-mcrypt --enable-mbstring
make
make install
cp php.ini-dist /usr/local/lib/php.ini
sudo /usr/local/apache2/bin/apachectl stop
sudo /usr/local/apache2/bin/apachectl start
sudo ln -s /usr/local/bin/php /usr/bin/php
tar -zxvf php-5.3.3.tar.gz
cd php-5.3.3
./configure --with-mysql=/usr/local/mysql --with-zlib --with-apxs2=/usr/local/apache2/bin/apxs --with-bz2 --with-curl --enable-soap --enable-sockets --with-xmlrpc --enable-zip --with-gd --enable-calendar --enable-ctype --enable-ftp --enable-gd-native-ttf --enable-magic-quotes --with-ldap --enable-sqlite-utf8 --enable-pdo --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-mcrypt --enable-mbstring
make
make install
cp php.ini-dist /usr/local/lib/php.ini
sudo /usr/local/apache2/bin/apachectl stop
sudo /usr/local/apache2/bin/apachectl start
sudo ln -s /usr/local/bin/php /usr/bin/php
No comments:
Post a Comment