How to Install PHP 7.3v from Source Code on CentOS 7.6
Installation of PHP 7.3v From source code
Pre-requisites:
Development Tools
libxml2-devel
Download Link:
https://www.php.net/distributions/php-7.3.6.tar.gz.
Install the Development tools to install all the packages at one go.
[root@linuxhelp ~]# yum groupinstall "Development Tools" -y
Loaded plugins: fastestmirror, langpacks
There is no installed groups file.
Maybe run: yum groups mark convert (see man yum)
Loading mirror speeds from cached hostfile
* base: mirror.dhakacom.com
* epel: epel.scopesky.iq
* extras: mirror.dhakacom.com
* remi-php72: rpms.remirepo.net
* remi-safe: rpms.remirepo.net
* updates: mirror.dhakacom.com
Resolving Dependencies
--> Running transaction check
---> Package autoconf.noarch 0:2.69-11.el7 will be installed
---> Package automake.noarch 0:1.13.4-3.el7 will be installed
--> Processing Dependency: perl(Thread::Queue) for package: automake-1.13.4-3.el7.noarch
.
.
.
.
Installed:
autoconf.noarch 0:2.69-11.el7 automake.noarch 0:1.13.4-3.el7 bison.x86_64 0:3.0.4-2.el7
byacc.x86_64 0:1.9.20130304-3.el7 cscope.x86_64 0:15.8-10.el7 ctags.x86_64 0:5.8-13.el7
diffstat.x86_64 0:1.57-4.el7 doxygen.x86_64 1:1.8.5-3.el7 flex.x86_64 0:2.5.37-6.el7
gcc.x86_64 0:4.8.5-36.el7_6.2 gcc-c++.x86_64 0:4.8.5-36.el7_6.2 gcc-gfortran.x86_64 0:4.8.5-36.el7_6.2
git.x86_64 0:1.8.3.1-20.el7 indent.x86_64 0:2.2.11-13.el7 intltool.noarch 0:0.50.2-7.el7
libtool.x86_64 0:2.4.2-22.el7_3 patchutils.x86_64 0:0.3.3-4.el7 rcs.x86_64 0:5.9.0-5.el7
redhat-rpm-config.noarch 0:9.1.0-87.el7.centos rpm-build.x86_64 0:4.11.3-35.el7 rpm-sign.x86_64 0:4.11.3-35.el7
subversion.x86_64 0:1.7.14-14.el7 swig.x86_64 0:2.0.10-5.el7 systemtap.x86_64 0:3.3-3.el7
Dependency Installed:
cpp.x86_64 0:4.8.5-36.el7_6.2 dwz.x86_64 0:0.11-3.el7 gettext-common-devel.noarch 0:0.19.8.1-2.el7
gettext-devel.x86_64 0:0.19.8.1-2.el7 kernel-debug-devel.x86_64 0:3.10.0-957.12.2.el7 libgfortran.x86_64 0:4.8.5-36.el7_6.2
libquadmath.x86_64 0:4.8.5-36.el7_6.2 libquadmath-devel.x86_64 0:4.8.5-36.el7_6.2 libstdc++-devel.x86_64 0:4.8.5-36.el7_6.2
perl-Error.noarch 1:0.17020-2.el7 perl-Git.noarch 0:1.8.3.1-20.el7 perl-TermReadKey.x86_64 0:2.30-20.el7
perl-Thread-Queue.noarch 0:3.02-2.el7 perl-XML-Parser.x86_64 0:2.41-10.el7 perl-srpm-macros.noarch 0:1-8.el7
subversion-libs.x86_64 0:1.7.14-14.el7 systemtap-client.x86_64 0:3.3-3.el7 systemtap-devel.x86_64 0:3.3-3.el7
Dependency Updated:
libgcc.x86_64 0:4.8.5-36.el7_6.2 libgomp.x86_64 0:4.8.5-36.el7_6.2 libstdc++.x86_64 0:4.8.5-36.el7_6.2
Complete!
Install the xml library development to parse the xml documents
[root@linuxhelp ~]# yum install libxml2-devel -y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.dhakacom.com
* epel: epel.scopesky.iq
* extras: mirror.dhakacom.com
* remi-php72: rpms.remirepo.net
* remi-safe: rpms.remirepo.net
* updates: mirror.dhakacom.com
Resolving Dependencies
--> Running transaction check
---> Package libxml2-devel.x86_64 0:2.9.1-6.el7_2.3 will be installed
--> Processing Dependency: zlib-devel for package: libxml2-devel-2.9.1-6.el7_2.3.x86_64
--> Processing Dependency: xz-devel for package: libxml2-devel-2.9.1-6.el7_2.3.x86_64
--> Running transaction check
---> Package xz-devel.x86_64 0:5.2.2-1.el7 will be installed
---> Package zlib-devel.x86_64 0:1.2.7-18.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================
Installing:
libxml2-devel x86_64 2.9.1-6.el7_2.3 base 1.0 M
Installing for dependencies:
xz-devel x86_64 5.2.2-1.el7 base 46 k
zlib-devel x86_64 1.2.7-18.el7 base 50 k
Transaction Summary
=============================================================================================================================================
Install 1 Package (+2 Dependent packages)
.
.
.
.
Installed:
libxml2-devel.x86_64 0:2.9.1-6.el7_2.3
Dependency Installed:
xz-devel.x86_64 0:5.2.2-1.el7 zlib-devel.x86_64 0:1.2.7-18.el7
Complete!
Download the tar file of php 7.3.6 by executing the following command
[root@linuxhelp ~]# wget https://www.php.net/distributions/php-7.3.6.tar.gz
--2019-05-31 14:06:10-- https://www.php.net/distributions/php-7.3.6.tar.gz
Resolving www.php.net (www.php.net)... 119.81.61.41, 2a02:cb40:200::1ad
Connecting to www.php.net (www.php.net)|119.81.61.41|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘php-7.3.6.tar.gz’
[ <=> ] 19,449,322 1018KB/s in 17s
2019-05-31 14:06:28 (1.06 MB/s) - ‘php-7.3.6.tar.gz’ saved [19449322]
Check the tar file of php 7.3.6 in the list.
[root@linuxhelp ~]# ll
total 19020
-rw-------. 1 root root 2097 Dec 9 2017 anaconda-ks.cfg
drwxr-xr-x. 2 root root 6 Dec 12 2017 Desktop
drwxr-xr-x. 2 root root 6 Dec 12 2017 Documents
drwxr-xr-x. 2 root root 6 Dec 12 2017 Downloads
-rw-r--r--. 1 root root 2128 Dec 12 2017 initial-setup-ks.cfg
drwxr-xr-x. 2 root root 6 Dec 12 2017 Music
-rw-r--r-- 1 root root 19449322 May 28 15:00 php-7.3.6.tar.gz
drwxr-xr-x. 2 root root 6 Dec 12 2017 Pictures
drwxr-xr-x. 2 root root 6 Dec 12 2017 Public
-rw-r--r-- 1 root root 16004 Mar 8 13:10 remi-release-7.rpm
drwxr-xr-x. 2 root root 6 Dec 12 2017 Templates
drwxr-xr-x. 2 root root 6 Dec 12 2017 Videos
Extract the tar file of php 7.3.6v
[root@linuxhelp ~]# tar xvzf php-7.3.6.tar.gz
php-7.3.6/
php-7.3.6/NEWS
php-7.3.6/server-tests.php
php-7.3.6/php7.spec.in
php-7.3.6/README.MAILINGLIST_RULES
php-7.3.6/tests/
php-7.3.6/tests/basic/
php-7.3.6/tests/basic/rfc1867_anonymous_upload.phpt
php-7.3.6/tests/basic/015.phpt
php-7.3.6/tests/basic/030.phpt
php-7.3.6/tests/basic/025.phpt
php-7.3.6/tests/basic/017.phpt
php-7.3.6/tests/basic/027.phpt
php-7.3.6/tests/basic/rfc1867_missing_boundary_2.phpt
php-7.3.6/tests/basic/005.phpt
php-7.3.6/tests/basic/bug73969.phpt
.
.
.
.
php-7.3.6/Zend/zend_vm_trace_handlers.h
php-7.3.6/Zend/zend_objects_API.h
php-7.3.6/Zend/zend_ini_parser.output
php-7.3.6/Zend/zend_ini_scanner.c
php-7.3.6/Zend/zend_float.h
php-7.3.6/Zend/zend_alloc.h
php-7.3.6/acinclude.m4
php-7.3.6/makedist
Check the extracted file of php 7.3.6 version
[root@linuxhelp ~]# ll
total 19024
-rw-------. 1 root root 2097 Dec 9 2017 anaconda-ks.cfg
drwxr-xr-x. 2 root root 6 Dec 12 2017 Desktop
drwxr-xr-x. 2 root root 6 Dec 12 2017 Documents
drwxr-xr-x. 2 root root 6 Dec 12 2017 Downloads
-rw-r--r--. 1 root root 2128 Dec 12 2017 initial-setup-ks.cfg
drwxr-xr-x. 2 root root 6 Dec 12 2017 Music
drwxr-xr-x 14 user1 user1 4096 May 28 15:02 php-7.3.6
-rw-r--r-- 1 root root 19449322 May 28 15:00 php-7.3.6.tar.gz
drwxr-xr-x. 2 root root 6 Dec 12 2017 Pictures
drwxr-xr-x. 2 root root 6 Dec 12 2017 Public
-rw-r--r-- 1 root root 16004 Mar 8 13:10 remi-release-7.rpm
drwxr-xr-x. 2 root root 6 Dec 12 2017 Templates
drwxr-xr-x. 2 root root 6 Dec 12 2017 Videos
Change the directory to newly created directory php-7.3.6
[root@linuxhelp ~]# cd php-7.3.6/
List the contents to view the extracted files
[root@linuxhelp php-7.3.6]# ll
total 4008
-rw-r--r-- 1 user1 user1 88457 May 28 15:03 acinclude.m4
-rw-r--r-- 1 user1 user1 318834 May 28 15:02 aclocal.m4
drwxr-xr-x 2 user1 user1 82 May 28 15:02 appveyor
drwxr-xr-x 2 user1 user1 286 May 28 15:02 build
-rwxr-xr-x 1 user1 user1 773 May 28 15:02 buildconf
-rw-r--r-- 1 user1 user1 335 May 28 15:02 buildconf.bat
-rw-r--r-- 1 user1 user1 12727 May 28 15:03 CODING_STANDARDS
-rw-r--r-- 1 user1 user1 44166 May 28 15:02 config.guess
-rw-r--r-- 1 user1 user1 36408 May 28 15:02 config.sub
-rwxr-xr-x 1 user1 user1 2651504 May 28 15:02 configure
-rw-r--r-- 1 user1 user1 47787 May 28 15:02 configure.ac
-rw-r--r-- 1 user1 user1 3430 May 28 15:02 CONTRIBUTING.md
-rw-r--r-- 1 user1 user1 93 May 28 15:03 CREDITS
drwxr-xr-x 76 user1 user1 4096 May 28 15:03 ext
-rw-r--r-- 1 user1 user1 23571 May 28 15:02 EXTENSIONS
-rw-r--r-- 1 user1 user1 136 May 28 15:02 footer
-rw-r--r-- 1 user1 user1 1800 May 28 15:02 generated_lists
-rwxr-xr-x 1 user1 user1 580 May 28 15:02 genfiles
-rw-r--r-- 1 user1 user1 1131 May 28 15:02 header
-rw-r--r-- 1 user1 user1 105 May 28 15:02 INSTALL
-rw-r--r-- 1 user1 user1 0 May 28 15:03 install-sh
-rw-r--r-- 1 user1 user1 3204 May 28 15:02 LICENSE
-rw-r--r-- 1 user1 user1 199728 May 28 15:03 ltmain.sh
drwxr-xr-x 3 user1 user1 4096 May 28 15:02 main
-rwxr-xr-x 1 user1 user1 4132 May 28 15:03 makedist
-rw-r--r-- 1 user1 user1 1087 May 28 15:02 Makefile.frag
-rw-r--r-- 1 user1 user1 2483 May 28 15:02 Makefile.gcov
-rw-r--r-- 1 user1 user1 7116 May 28 15:02 Makefile.global
-rw-r--r-- 1 user1 user1 0 May 28 15:02 missing
-rw-r--r-- 1 user1 user1 0 May 28 15:02 mkinstalldirs
-rw-r--r-- 1 user1 user1 64564 May 28 15:02 NEWS
drwxr-xr-x 2 user1 user1 100 May 28 15:03 pear
-rw-r--r-- 1 user1 user1 1489 May 28 15:02 php7.spec.in
-rw-r--r-- 1 user1 user1 2523 May 28 15:03 php.gif
-rw-r--r-- 1 user1 user1 71648 May 28 15:02 php.ini-development
-rw-r--r-- 1 user1 user1 71920 May 28 15:02 php.ini-production
-rw-r--r-- 1 user1 user1 1379 May 28 15:02 README.EXT_SKEL
-rw-r--r-- 1 user1 user1 5282 May 28 15:03 README.GIT-RULES
-rw-r--r-- 1 user1 user1 5319 May 28 15:02 README.input_filter
-rw-r--r-- 1 user1 user1 3426 May 28 15:02 README.MAILINGLIST_RULES
-rw-r--r-- 1 user1 user1 1609 May 28 15:02 README.md
-rw-r--r-- 1 user1 user1 5170 May 28 15:02 README.NEW-OUTPUT-API
-rw-r--r-- 1 user1 user1 7820 May 28 15:02 README.PARAMETER_PARSING_API
-rw-r--r-- 1 user1 user1 24744 May 28 15:02 README.REDIST.BINS
-rw-r--r-- 1 user1 user1 15690 May 28 15:03 README.RELEASE_PROCESS
-rw-r--r-- 1 user1 user1 4990 May 28 15:02 README.SELF-CONTAINED-EXTENSIONS
-rw-r--r-- 1 user1 user1 15311 May 28 15:02 README.STREAMS
-rw-r--r-- 1 user1 user1 8125 May 28 15:02 README.SUBMITTING_PATCH
-rw-r--r-- 1 user1 user1 11634 May 28 15:02 README.TESTING
-rw-r--r-- 1 user1 user1 4261 May 28 15:02 README.UNIX-BUILD-SYSTEM
-rw-r--r-- 1 user1 user1 114 May 28 15:02 README.WIN32-BUILD-SYSTEM
-rw-r--r-- 1 user1 user1 87104 May 28 15:02 run-tests.php
drwxr-xr-x 10 user1 user1 118 May 28 15:02 sapi
drwxr-xr-x 4 user1 user1 105 May 28 15:02 scripts
-rwxr-xr-x 1 user1 user1 2099 May 28 15:02 server-tests-config.php
-rwxr-xr-x 1 user1 user1 52383 May 28 15:02 server-tests.php
-rwxr-xr-x 1 user1 user1 108 May 28 15:02 snapshot
-rw-r--r-- 1 user1 user1 10 May 28 15:02 stamp-h.in
drwxr-xr-x 10 user1 user1 142 May 28 15:02 tests
drwxr-xr-x 3 user1 user1 35 May 28 15:02 travis
drwxr-xr-x 3 user1 user1 4096 May 28 15:02 TSRM
-rw-r--r-- 1 user1 user1 29018 May 28 15:03 UPGRADING
-rw-r--r-- 1 user1 user1 9308 May 28 15:02 UPGRADING.INTERNALS
-rwxr-xr-x 1 user1 user1 159 May 28 15:03 vcsclean
drwxr-xr-x 3 user1 user1 4096 May 28 15:02 win32
drwxr-xr-x 3 user1 user1 8192 May 28 15:03 Zend
Run the configure command to check the dependencies and compilers to install the php-7.3.6
[root@linuxhelp php-7.3.6]# ./configure
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
.
.
.
.
.
Thank you for using 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/phpdbg/phpdbg.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 make to built the software
[root@linuxhelp php-7.3.6]# make
/bin/sh /root/php-7.3.6/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/opcache/ -I/root/php-7.3.6/ext/opcache/ -DPHP_ATOM_INC -I/root/php-7.3.6/include -I/root/php-7.3.6/main -I/root/php-7.3.6 -I/root/php-7.3.6/ext/date/lib -I/usr/include/libxml2 -I/root/php-7.3.6/ext/sqlite3/libsqlite -I/root/php-7.3.6/TSRM -I/root/php-7.3.6/Zend -I/usr/include -g -O2 -fvisibility=hidden -DZEND_SIGNALS -c /root/php-7.3.6/ext/opcache/ZendAccelerator.c -o ext/opcache/ZendAccelerator.lo
/bin/sh /root/php-7.3.6/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/opcache/ -I/root/php-7.3.6/ext/opcache/ -DPHP_ATOM_INC -I/root/php-7.3.6/include -I/root/php-7.3.6/main -I/root/php-7.3.6 -I/root/php-7.3.6/ext/date/lib -I/usr/include/libxml2 -I/root/php-7.3.6/ext/sqlite3/libsqlite -I/root/php-7.3.6/TSRM -I/root/php-7.3.6/Zend -I/usr/include -g -O2 -fvisibility=hidden -DZEND_SIGNALS -c /root/php-7.3.6/ext/opcache/zend_accelerator_blacklist.c -o ext/opcache/zend_accelerator_blacklist.lo
/bin/sh /root/php-7.3.6/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/opcache/ -I/root/php-7.3.6/ext/opcache/ -DPHP_ATOM_INC -I/root/php-7.3.6/include -I/root/php-7.3.6/main -I/root/php-7.3.6 -I/root/php-7.3.6/ext/date/lib -I/usr/include/libxml2 -I/root/php-7.3.6/ext/sqlite3/libsqlite -I/root/php-7.3.6/TSRM -I/root/php-7.3.6/Zend -I/usr/include -g -O2 -fvisibility=hidden -DZEND_SIGNALS -c /root/php-7.3.6/ext/opcache/zend_accelerator_debug.c -o ext/opcache/zend_accelerator_debug.lo
/bin/sh /root/php-7.3.6/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/opcache/ -I/root/php-7.3.6/ext/opcache/ -DPHP_ATOM_INC -I/root/php-7.3.6/include -I/root/php-7.3.6/main -I/root/php-7.3.6 -I/root/php-7.3.6/ext/date/lib -I/usr/include/libxml2 -I/root/php-7.3.6/ext/sqlite3/libsqlite -I/root/php-7.3.6/TSRM -I/root/php-7.3.6/Zend -I/usr/include -g -O2 -fvisibility=hidden -DZEND_SIGNALS -c /root/php-7.3.6/ext/opcache/zend_accelerator_hash.c -o ext/opcache/zend_accelerator_hash.lo
/bin/sh /root/php-7.3.6/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/opcache/ -I/root/php-7.3.6/ext/opcache/ -DPHP_ATOM_INC -I/root/php-7.3.6/include -I/root/php-7.3.6/main -I/root/php-7.3.6 -I/root/php-7.3.6/ext/date/lib -I/usr/include/libxml2 -I/root/php-7.3.6/ext/sqlite3/libsqlite -I/root/php-7.3.6/TSRM -I/root/php-7.3.6/Zend -I/usr/include -g -O2 -fvisibility=hidden -DZEND_SIGNALS -c /root/php-7.3.6/ext/opcache/zend_accelerator_module.c -o ext/opcache/zend_accelerator_module.lo
/bin/sh /root/php-7.3.6/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/opcache/ -I/root/php-7.3.6/ext/opcache/ -DPHP_ATOM_INC -I/root/php-7.3.6/include -I/root/php-7.3.6/main -I/root/php-7.3.6 -I/root/php-7.3.6/ext/date/lib -I/usr/include/libxml2 -I/root/php-7.3.6/ext/sqlite3/libsqlite -I/root/php-7.3.6/TSRM -I/root/php-7.3.6/Zend -I/usr/include -g -O2 -fvisibility=hidden -DZEND_SIGNALS -c /root/php-7.3.6/ext/opcache/zend_persist.c -o ext/opcache/zend_persist.lo
.
.
.
.
Build complete.
Don't forget to run 'make test'.
Run make test by executing the following command.
[root@linuxhelp php-7.3.6]# make test
Build complete.
Don't forget to run 'make test'.
=====================================================================
PHP : /root/php-7.3.6/sapi/cli/php
PHP_SAPI : cli
PHP_VERSION : 7.3.6
ZEND_VERSION: 3.3.6
PHP_OS : Linux - Linux linuxhelp.com 3.10.0-957.5.1.el7.x86_64 #1 SMP Fri Feb 1 14:54:57 UTC 2019 x86_64
INI actual : /root/php-7.3.6/tmp-php.ini
More .INIs :
---------------------------------------------------------------------
PHP : /root/php-7.3.6/sapi/phpdbg/phpdbg
PHP_SAPI : phpdbg
PHP_VERSION : 7.3.6
ZEND_VERSION: 3.3.6
PHP_OS : Linux - Linux linuxhelp.com 3.10.0-957.5.1.el7.x86_64 #1 SMP Fri Feb 1 14:54:57 UTC 2019 x86_64
INI actual : /root/php-7.3.6/tmp-php.ini
More .INIs :
---------------------------------------------------------------------
CWD : /root/php-7.3.6
Extra dirs :
VALGRIND : Not used
=====================================================================
TIME START 2019-05-31 08:50:37
=====================================================================
PASS phpt EXTENSIONS directive with static module [tests/run-test/bug75042-2.phpt]
PASS phpt EXTENSIONS directive with nonexistent shared module [tests/run-test/bug75042-3.phpt]
SKIP phpt EXTENSIONS directive with shared module [tests/run-test/bug75042.phpt] reason: openssl shared extension not found
PASS EXPECT [tests/run-test/test001.phpt]
PASS EXPECTF [tests/run-test/test002.phpt]
PASS EXPECTREGEX [tests/run-test/test003.phpt]
PASS INI section allows '=' [tests/run-test/test004.phpt]
PASS Error message handling (with ZendOpcache) [tests/run-test/test005.phpt]
PASS Error messages are shown [tests/run-test/test006.phpt]
PASS dirname test [tests/run-test/test007.phpt]
SKIP Error message handling (without ZendOpcache) [tests/run-test/test008.phpt] reason: Zend Opcache is loaded
PASS Error message handling (with ZendOpcache) [tests/run-test/test008a.phpt]
PASS print_r(Object) [tests/run-test/test009.phpt]
Run make install to install the software that we have built using make.
[root@linuxhelp php-7.3.6]# make install
/bin/sh /root/php-7.3.6/libtool --silent --preserve-dup-deps --mode=install cp ext/opcache/opcache.la /root/php-7.3.6/modules
Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20180731/
Installing PHP CLI binary: /usr/local/bin/
Installing PHP CLI man page: /usr/local/php/man/man1/
Installing phpdbg binary: /usr/local/bin/
Installing phpdbg man page: /usr/local/php/man/man1/
Installing PHP CGI binary: /usr/local/bin/
Installing PHP CGI man page: /usr/local/php/man/man1/
Installing build environment: /usr/local/lib/php/build/
Installing header files: /usr/local/include/php/
Installing helper programs: /usr/local/bin/
program: phpize
program: php-config
Installing man pages: /usr/local/php/man/man1/
page: phpize.1
page: php-config.1
Installing PEAR environment: /usr/local/lib/php/
[PEAR] Archive_Tar - already installed: 1.4.7
[PEAR] Console_Getopt - already installed: 1.4.2
[PEAR] Structures_Graph- already installed: 1.1.1
[PEAR] XML_Util - already installed: 1.4.3
[PEAR] PEAR - already installed: 1.10.9
Wrote PEAR system config file at: /usr/local/etc/pear.conf
You may want to add: /usr/local/lib/php to your php.ini include_path
/root/php-7.3.6/build/shtool install -c ext/phar/phar.phar /usr/local/bin
ln -s -f phar.phar /usr/local/bin/phar
Installing PDO headers: /usr/local/include/php/ext/pdo/
Now check the version of php 7.3.6
[root@linuxhelp php-7.3.6]# php -v
PHP 7.3.6 (cli) (built: May 31 2019 14:19:37) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.6, Copyright (c) 1998-2018 Zend Technologies
With this,installation of php7.3.6v from source code on centOS 7.6 comes to end.
Comments ( 0 )
No comments available