UBUNTU12 Install PHP5.3 development environment, ubuntu12php5.3_php tutorial

Source: Internet
Author: User

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 ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.