PHP source Code Compilation installation

Source: Internet
Author: User
PHP source Code Compilation installation

Compile without parameters installation

Command:

./configure--prefix=/usr/local/php--WITH-PHP-FPM

Depend on:
* LIBXML2
Available modules:

[PHP Modules]
Core
CType
Date
Dom
FileInfo
Filter
Hash
Iconv
Json
Libxml
Pcre
Pdo
Pdo_sqlite
Phar
Posix
Reflection
Session
SimpleXML
Spl
Sqlite3
Standard
Tokenizer
Xml
XmlReader
XmlWriter

Installation with parameter compilation

Command:

./configure--prefix=/usr/local/php--with-fpm--with-curl=/usr/local/libcurl--with-gd--with-mysqli--with-pear-- Enable-sockets--with-zlib-dir=/usr/local/zlib--with-png-dir=/usr/local/libpng--with-jpeg-dir=/usr/local/ Libjpeg--with-mcrypt=/usr/local/libmcrypt--with-pdo-mysql

Depend on:
* LIBXML2
* libpng
* Libjpeg
* Libmcrypt
* Zlib
* Libcurl

Available modules:

[PHP Modules]
Core
CType
Curl
Date
Dom
FileInfo
Filter
Gd
Hash
Iconv
Json
Libxml
MCrypt
Mysqli
Mysqlnd
Pcre
Pdo
Pdomysql
Pdosqlite
Phar
Posix
Reflection
Session
SimpleXML
Sockets
Spl
Sqlite3
Standard
Tokenizer
Xml
XmlReader
XmlWriter
Zlib

Compiling and installing memcached

Depend on:
* libmemcached
* Zlib
* autoconf

Command:

Phpize
./configure--with-php-config=/usr/local/php/bin/php-config--with-zlib-dir=/usr/local/zlib-- With-libmemcached-dir=/usr/local/libmemcached--DISABLE-MEMCACHED-SASL
Make && make install

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