Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP7 Binary for Ubuntu 14.04 64bits and compatibles OS.

  1. Installation: Simple install of pre compiled PHP7 binary (Compiled in Ubuntu 12.04 64-bits)

  2. Compilation from sources: Instructions to compile and install PHP7 from sources.

  3. Configuration: To be done in both situations.

  4. Installation


1.1. Install the dependencies

$ apt-get install libmcrypt4

1.2. Clone the repository

$ cd /usr/local/
$ git clone https://github.com/anezi/php7.git php7

1.3. Copy pear configuration

$ cp /usr/local/php7/etc/pear.conf.default /etc/pear.conf
  1. Compilation from sources

2.1. Install compilation dependencies

$ sudo apt-get install bison libcurl4-openssl-dev

2.2. Download and extract the files

$ cd /tmp

# Download the source
$ wget https://github.com/php/php-src/archive/php-7.0.0RC7.tar.gz

# Extract files.
$ tar -zxvf php-7.0.0RC7.tar.gz

2.3. Compilation

$ cd php-src-php-7.0.0RC7

# Build configuration
./buildconf --force

# Prepare configuration
./configure --enable-fpm --prefix=/usr/local/php7 --enable-opcache --enable-intl --enable-mbstring --enable-zip \
        --enable-bcmath --enable-pcntl --enable-ftp --enable-exif --enable-calendar --enable-sysvmsg --enable-sysvsem \
        --enable-sysvshm --enable-wddx --enable-gd-native-ttf --enable-gd-jis-conv \
        --with-curl --with-mcrypt --with-iconv --with-gd --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr \
        --with-freetype-dir=/usr --with-openssl --with-pdo-mysql=/usr --with-gettext=/usr --with-zlib=/usr --with-bz2=/usr \
        --with-mysqli=/usr/bin/mysql_config

# Compilation
make

# Run tests
make test

2.4. Installation

# Installation
sudo make install
  1. Configuration

2.1. PHP Configuration

# For production server:
$ cp /usr/local/php7/lib/php.ini-production /usr/local/php7/lib/php.ini

# For development server:
$ cp /usr/local/php7/lib/php.ini-development /usr/local/php7/lib/php.ini

2.1. FPM Configuration

$ cp /usr/local/php7/etc/init.d/php7-fpm.default /etc/init.d/php7-fpm
$ cp /usr/local/php7/etc/php-fpm.conf.default /usr/local/php7/etc/php-fpm.conf

# Default pool
$ cp /usr/local/php7/etc/php-fpm.d/www.conf.default /usr/local/php7/etc/php-fpm.d/www.conf

Releases

Packages

Contributors

Languages