Home IT Linux Windows Database Network Programming Server Mobile  
  Home \ Server \ Experience PHP 7.0 on CentOS 7.x / Fedora 21     - Proxmox VE implement KVM OpenVZ virtualization cloud computing (Server)

- MySQL how to export files with the date format (Database)

- Linux security-related basics (Linux)

- 10 Best Swift Tutorial examples (Programming)

- Oracle11g build physical standby database (Database)

- CentOS install expect (Linux)

- How to understand Python yield keyword (Programming)

- ORA-04031 Error Resolution (Database)

- YUM install desktop environment in CentOS (Linux)

- To configure Samba to share files with Windows under CentOS (Linux)

- Management DB2 logs (Database)

- Linux Kernel 4.2.2 compiler installation tutorial (Linux)

- OpenSUSE installation on CentOS6 (GUI) (Linux)

- Android Studio 1.0.2 set the memory size (Linux)

- IO reference Docker container (Server)

- IOS interview questions Summary (Programming)

- Is Linux the most secure operating system (Linux)

- How a lot of blocking malicious IP address in Linux (Linux)

- C ++ class implementation date operator overloading (Programming)

- Nodejs mysql pool Example (Programming)

  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!
- PHP generates a random password several ways (Programming)
- Linux Apache server configure to protect system security (Linux)
- Installation JDK 1.8 under CentOS7 (Linux)
- Docker Private Registry Installation Guide at CentOS6.X (Linux)
- Linux user login ban (Linux)
- Gitolite how to import other Git repositories (Server)
- Struts2 : combobox label use (Programming)
- Installation Elementary OS Freya to do some settings (Linux)
- The istgt PSD on ported to Mac OS X (Linux)
- Writing Better Bash build script 8 (Programming)
- Analyzing Linux server architecture is 32-bit / 64-bit (Server)
- Linux user directory (Linux)
- Simple and fast sorting (Programming)
- Linux (Ubuntu) How iptables port mapping (Server)
- Use OpenWrt build WDS wireless network extension on V2 WHR-G300N (Linux)
- Android memory optimization of the memory cache (Linux)
- ImageMagick Tutorial: How to cut images in Linux command line (Linux)
- Linux System Getting Started Learning: The Linux ac command (Linux)
- C language - Traverse pci device (Programming)
- Experience CoreCLR stack unwinding characteristics of initial implementation on Linux / Mac (Linux)
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.