Ubuntu12 under compile and install PHP5.3 development environment, ubuntu12php5.3
Recently the project encountered a pit-daddy thing, A source must use PHP5.3, but now Ubuntu on the version is 5.4, after the downgrade will be a variety of strange problems, finally no way, only step by step in the Ubuntu12.04server on their own compilation PHP5.3, than cumbersome, shared.
Installing Apache2.2
Copy the Code code as follows:
sudo apt-get install apache2-y
Then install MySQL5.5
Copy the Code code as follows:
sudo apt-get install mysql-server-5.5-y
The next is the build dependent environment :
Copy the Code code as follows:
sudo apt-get install gcc g++ autoconf build-essential-y
related LIB support libraries :
Copy the Code code as follows:
sudo apt-get install libxml2 libxml2-dev libevent-1.4-2 libevent-dev bzip2 libbz2-dev libcurl3-gnutls Libcurl4-gnutls-dev libpng12-0 libpng12-dev libjpeg62 libjpeg62-dev libfreetype6 libfreetype6-dev libmcrypt4 Libmcrypt-dev Zlib1g-dev Libtidy-dev libmysqlclient-dev-y
Installation:
Copy the Code code as follows:
./configure--prefix=/usr/local/php--with-mcrypt--with-gettext--with-mysql--with-gd--with-jpeg-dir-- With-png-dir--with-curl--with-freetype-dir--enable-gd-native-ttf--enable-mbstring--enable-sockets-- With-pdo-mysql--enable-fpm--with-zlib--enable-zip--with-bz2--enable-bcmath--with-tidy--with-fpm-user=daemon-- With-fpm-group=daemon
sudo make
sudo make install
Then install the CLI and dev:
Copy the Code code as follows:
sudo apt-get install php5-cli Php5-dev
Finally, turn on APACHE2 support:
Copy the Code code as follows:
sudo apt-get install LIBAPACHE2-MOD-PHP5
Finally, it's done.
The above mentioned is the whole content of this article, I hope you can like.
Please take a moment to share the article with your friends or leave a comment. We would be grateful for your support!
http://www.bkjia.com/PHPjc/974668.html www.bkjia.com true http://www.bkjia.com/PHPjc/974668.html techarticle Ubuntu12 Compile and install the PHP5.3 development environment, ubuntu12php5.3 recent project encountered a pit dad thing, a source must use PHP5.3, but now the version of Ubuntu comes with 5.4, down ...