LInux Mint 9 KDEに、PHP5.2.16をインストールする!

# apt-get install flex libxml2-dev
# apt-get install libpng-dev libjpeg-dev
# apt-get install apache2-threaded-dev
# apt-get install libmcrypt-dev
# mkdir /usr/local/php-5.2.16
# cd /usr/local/src
# wget -P /usr/local/src http://jp.php.net/distributions/php-5.2.16.tar.gz
# tar xzf php-5.2.16.tar.gz
# cd php-5.2.16
# ./configure –prefix=/usr/local/php-5.2.16 –enable-mbstring –with-apxs2=/usr/bin/apxs2 –with-mysql=/usr/local/mysql –with-gd –with-zlib –with-jpeg-dir –with-mcrypt
# make
# make install
# ln -sfn /usr/local/php-5.2.16 /usr/local/php
# ln -s /usr/local/php/bin/php /usr/bin/php
# cp /usr/local/src/php-5.2.16/php.ini-dist /usr/local/php/lib/php.ini
# vi /usr/local/php/lib/php.ini(普通に設定^^;)
# vi /etc/apache2/httpd.conf

         AddType application/x-httpd-php .php (追加して書き込む)

# /etc/init.d/apache2 restart

 

# php -v
PHP 5.2.16 (cli) (built: Dec 22 2010 10:39:26)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies