l9-3. Installing the PHP Package

Source: Internet
Author: User

To install the extension kit:

To see if the installation was successful:

To do a soft connection:

Installing Libxml

Install Python First:

To do a soft connection:

Same installation

Libmcrypt and Mhash

Make && make install

Make && make install

Installing MCrypt

Install libpng:

Make && make install

Installing Libiconv

Make && make install

Installing FreeType

Installing autoconf

Installing jpeg-9a

Installing LIBGD

Gettxt

Installing Gettxt

Install PHP

./configure--prefix=/usr/local/php--with-config-file-path=/usr/local/php/etc--with-apxs2=/usr/local/httpd/bin/ Apxs--with-openssl--with-mysql=/usr/local/mysql--with-pdo-mysql=/usr/local/mysql--with-mysqli=/usr/local/mysql /bin/mysql_config--with-zlib-dir=/usr/local/zlib--with-libxml-dir=/usr/local/libxml2--with-mhash--with-png-dir =/usr/local/libpng--with-iconv-dir=/usr/local/libiconv--with-freetype-dir=/usr/local/freetype--with-jpeg-dir=/ Usr/local/jpeg--with-gd=/usr/local/libgd--enable-mbstring=all--enable-sockets--enable-libxml--enable-soap-- Enable-xml--enable-bcmath--enable-shmop--enable-sysvsem--enable-mbregex--enable-gd-native-ttf--enable-pcntl-- With-xmlrpc--enable-zip--enable-phar--without-pear--enable-ftp--enable-maintainer-zts--disable-rpath-- With-gettext--enable-opcache=no--with-xpm-dir=/usr/lib64

Make && make install

There was an error:

Make a soft connection again

Re./configure no error:

Installation succeeded:

For PHP configuration:

To modify a character set:

Integration:

Vim/usr/local/httpd/conf/httpd.conf

Restart httpd, new test PHP file

Inspection:

The lamp environment to build success!

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.