Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Server \ Experience PHP 7.0 on CentOS 7.x / Fedora 21     - The next key to install Linux bash script PowerShell (Linux)

- To add the Oracle JDBC driver in Maven repository (Linux)

- How to Install Puppet in the Ubuntu 15.04 (Server)

- C ++ Fundamentals study notes (Programming)

- Hibernate Performance Optimization of EHCache cache (Programming)

- Use OpenSSL to generate a certificate (Linux)

- 7 JavaScript interview questions (Programming)

- RCU lock in the evolution of the Linux kernel (Linux)

- Analysis of common mistakes when compiling MySQL installation (Database)

- How to achieve the MySQL Oracle table associated with the two operations update (Database)

- How to install the NVIDIA 358.16 driver in Ubuntu 15.10,14.04 (Linux)

- Installation and use the telnet command under CentOS 6.x (Linux)

- A script to make your Ubuntu 14.04 Memory screen brightness (Linux)

- 10 useful Linux command Interview Questions and Answers (Linux)

- Android float ball and boot from the start (Programming)

- Linux installation notes under GAMIT (Linux)

- Examples 14 grep command (Linux)

- JDK installation and configuration environment variable under linuxb (Linux)

- Android start automatically and add and delete a desktop shortcut (Programming)

- How to protect the Apache website under Linux system (Linux)

  Experience PHP 7.0 on CentOS 7.x / Fedora 21
  Add Date : 2017-08-31      
  PHP is a well-known general-purpose server web scripting language. Very many online sites are written in PHP. PHP has been evolving over the years, enriching its functionality, making it easier to use, and better to organize scripting languages. PHP development team is preparing for the next PHP version of the release, the name is PHP 7. Now that PHP is PHP version 5.6, you probably know that PHP 6 has gone aborted. PHP 7 proponents do not want the next major version to be confused by other branches, which have been around for a long time. So the next major release of PHP is called PHP 7, not PHP 6. PHP 7.0 is expected to be released in November of this year.

In the next major PHP version there are some good features:

In order to improve the implementation of efficiency and memory footprint, the new version adds the PHPNG function.
The JIT engine was introduced to dynamically compile the Zend opcodes as natural machine code for faster processing performance. This feature allows subsequent programs to call the same code, which will run much faster.
AST (Abstract Syntax Tree) is a newly added feature that enhances support for PHP extensibility and user applications.
Add asynchronous programming capabilities to support parallel tasks in the same request.
The new version will support an independent multi-threaded web server, so you can use a separate storage pool to deal with a lot of concurrent requests.

Install PHP 7 on CentOS / Fedora

Let's take a look at how to install PHP7 on CentOS 7 and Fedora 21. In order to install PHP7, we first need to clone the php-src repository. When the cloning work is complete, we re-configure and compile it. Before proceeding to the next step, make sure that you have installed the following components on the LInux system, otherwise PHP compilation returns an error abort.

All of the above-mentioned requirements can be installed using Yum Package Manager. This is done with one command:

Yum install git autoconf gcc bison
Ready to start installing PHP7? Let us first create a PHP7 directory, as your current working directory.

Mkdir php7
Cd php7
Now clone the php-src repository and run the following command in the terminal.

Git clone https://git.php.net/repository/php-src.git
Work should be completed in a few minutes, here is a sample output, you should see the completion of the task.

[Root @ localhost php7] # git clone https://git.php.net/repository/php-src.git
Cloninginto'php-src '...
Remote: Counting objects: 615064, done.
Remote: Compressing objects: 100% (127800/127800), done.
Remote: Total615064 (delta 492063), reused 608718 (delta 485944)
Receiving objects: 100% (615064/615064), 152.32MiB | 16.97MiB / s, done.
Resolving deltas: 100% (492063/492063), done.
Let us configure, compile PHP7, run the following command in the terminal, start the configuration work:

Cd php-src
The following is a sample output of the ./buildconf command.

[Root @ localhost php-src] #. / Buildconf
Buildconf: checking installation ...
Buildconf: autoconf version 2.69 (ok)
Rebuilding aclocal.m4
Rebuilding configure
Rebuilding main / php_config.h.in
Use the following command to continue the configuration process:

./configure \
--prefix = $ HOME / php7 / usr \
--with-config-file-path = $ HOME / php7 / usr / etc \
--enable-zip \
--enable-bcmath \
--enable-pcntl \
--enable-ftp \
--enable-exif \
--enable-calendar \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--enable-wddx \
--with-curl \
--with-mcrypt \
--with-iconv \
--with-gmp \
--with-pspell \
--with-gd \
--with-jpeg-dir = / usr \
--with-png-dir = / usr \
--with-zlib-dir = / usr \
--with-xpm-dir = / usr \
--with-freetype-dir = / usr \
--with-t1lib = / usr \
--enable-gd-native-ttf \
--enable-gd-jis-conv \
--with-openssl \
--with-mysql = / usr \
--with-pdo-mysql = / usr \
--with-gettext = / usr \
--with-zlib = / usr \
--with-bz2 = / usr \
--with-recode = / usr \
--with-mysqli = / usr / bin / mysql_config
This will take a lot of time, when finished you should see the following output:

Creating libtool
Appending configuration tag "CXX" to libtool
Generating files
Configure: creating ./config.status
Creating main / internal_functions.c
Creating main / internal_functions_cli.c
+ ------------------------------------------------- ------------------- +
| License: |
| This software is subject to the PHP License, available inthis |
| Distribution in the file LICENSE.By continuing this installation |
| Process, you are bound by the terms of this license agreement. |
| If you donot agree with the terms of this license, you must abort |
| The installation process at this point. |
+ ------------------------------------------------- ------------------- +
Thank you forusing PHP.
Config.status: creating php7.spec
Config.status: creating main / build-defs.h
Config.status: creating scripts / phpize
Config.status: creating scripts / man1 / phpize.1
Config.status: creating scripts / php-config
Config.status: creating scripts / man1 / php-config.1
Config.status: creating sapi / cli / php.1
Config.status: creating sapi / cgi / php-cgi.1
Config.status: creating ext / phar / phar.1
Config.status: creating ext / phar / phar.phar.1
Config.status: creating main / php_config.h
Config.status: executing default commands
Run the following command to complete the compilation process.

The sample output of the "make" command looks like this:

Generating phar.php
Generating phar.phar
PEAR package PHP_Archive not installed: generated phar will require PHP's phar extension be enabled.
Build complete.
Do not forget to run 'make test'.
Work done, the installation of PHP7, run the following command to install it.

Make install
The sample output of a successful installation process should look something like this:

[Root @ localhost php-src] # make install
Installing shared extensions: / root / php7 / usr / lib / php / extensions / no-debug-non-zts-20141001 /
Installing PHP CLI binary: / root / php7 / usr / bin /
Installing PHP CLI man page: / root / php7 / usr / php / man / man1 /
Installing PHP CGI binary: / root / php7 / usr / bin /
Installing PHP CGI man page: / root / php7 / usr / php / man / man1 /
Installing build environment: / root / php7 / usr / lib / php / build /
Installing header files: / root / php7 / usr / include / php /
Installing helper programs: / root / php7 / usr / bin /
Program: phpize
Program: php-config
Installing man pages: / root / php7 / usr / php / man / man1 /
Page: phpize.1
Page: php-config.1
Installing PEAR environment: / root / php7 / usr / lib / php /
[PEAR] Archive_Tar- installed: 1.3.13
[PEAR] Console_Getopt- installed: 1.3.1
[PEAR] Structures_Graph- installed: 1.0.4
[PEAR] XML_Util - installed: 1.2.3
[PEAR] PEAR - installed: 1.9.5
Wrote PEAR system config file at: /root/php7/usr/etc/pear.conf
You may want to add: / root / php7 / usr / lib / php to your php.ini include_path
/ Root / php7 / php-src / build / shtool install -c ext / phar / phar.phar / root / php7 / usr / bin
Ln -s -f /root/php7/usr/bin/phar.phar / root / php7 / usr / bin / phar
Installing PDO headers: / root / php7 / usr / include / php / ext / pdo /
Congratulations, PHP7 has been installed on your Linux system. After installation, enter the php7 installation file in the sapi / cli inside.

Cd sapi / cli
Verify the PHP version.

[Root @ localhost cli] #. / Php -v
PHP 7.0.0-dev (cli) (built: Mar28201500: 54: 11)
Copyright (c) 1997-2015The PHP Group
ZendEngine v3.0.0-dev, Copyright (c) 1998-2015 ZendTechnologies

to sum up

PHP 7 has also been added to the remi repository, this upcoming version focuses on the implementation of efficiency improvement, its new features to PHP to better meet the needs of modern programming and trends. PHP 7.0 will have many new features, discard some old version of the thing. In the coming days, we would like to see new features and deprecated features. Hope you like it!
- Linux systems use logwatch log file monitoring (Linux)
- How dependent on Fedora, CentOS, RHEL check RPM packages (Linux)
- CentOS 7 install Hadoop-cdh-2.6 (Server)
- Examples of Python any parameters (Programming)
- Ubuntu 15.10 install the latest Arduino IDE 1.6.7 (Linux)
- xCAT deployment (Linux)
- Four safety delete files under Linux tools (Linux)
- The Hill sorting algorithm (Programming)
- Three methods easy data encryption on Linux (Linux)
- Diagnose and resolve the SSH connection slow (Linux)
- Oracle through the alarm log view and inspect the main library, physical and snapshot standby database (Database)
- Atheros AR8161 / AR8162 network card driver problem solving in CentOS 6.4 (Linux)
- Oracle 10g in the unique and index problems (Database)
- Encrypted with GnuPG signature to verify the authenticity and integrity of downloaded file (Linux)
- Installation CD audio file extraction tool Flacon (Linux)
- Ubuntu 14.10 users to install Audio Recorder 1.5.7 (Linux)
- Linux server startup and logon security settings (Linux)
- Linux account management add relevant directives (Linux)
- Merge sort Java implementation (Programming)
- To convert into a binary search tree sorted doubly linked list (Programming)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.