• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to Install PHP 7.3v from Source Code on CentOS 7.6

  • 00:46 yum groupinstall "Development Tools" -y
  • 01:00 yum install libxml2-devel -y
  • 01:12 wget https://www.php.net/distributions/php-7.3.6.tar.gz
  • 01:28 tar xvzf php-7.3.6.tar.gz
  • 01:50 ./configure
  • 01:58 make
  • 02:04 make test
  • 02:08 make install
  • 02:17 php -v
5699

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.

Tags:
grayson
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

What is yum groupinstall "Development Tools" in PHP 7.3 compilation?

A

The "Development Tools" are a yum group which is a predefined bundle of software that can be installed at once,instead of installing it at each application separately in PHP 7.3compilation.

Q

What does Development Tools allow in php 7.3?

A

Development Tools allows us to build and compile software from source code in php 7.3.

Q

What does yum groupinstall do in php 7.3 compilation?

A

yum groupinstall is a powerful command that saves your precious time by installing group of packages easily without having to install packages one by one in php 7.3 compilation.

Q

What is libxml2 used for in php 7.3 compilation?

A

libxml2 is a software library for parsing XML documents in php 7.3 compilation.

Q

What does XML Parser do in php 7.3 compilation?

A

XML parser is a parser that is designed to read XML documents and create a way for programs to use XML in Php 7.3 compilation.

Related Tutorials in How to Install PHP 7.3v from Source Code on CentOS 7.6

Related Tutorials in How to Install PHP 7.3v from Source Code on CentOS 7.6

How To Install AnyDesk on Centos 7
How To Install AnyDesk on Centos 7
Apr 2, 2018
How to install Tiki Wiki CMS Groupware on CentOS 7
How to install Tiki Wiki CMS Groupware on CentOS 7
May 31, 2018
How to install PHP ImageMagick on CentOS 7
How to install PHP ImageMagick on CentOS 7
Nov 4, 2017
How to Upgrade and Downgrade the PHP Versions on CentOS 7.6
How to Upgrade and Downgrade the PHP Versions on CentOS 7.6
Jun 4, 2019
How to install Apache from Source Code on CentOS 7
How to install Apache from Source Code on CentOS 7
Oct 21, 2017
How to enable or disable repositories in CentOS
How to enable or disable repositories in CentOS
Mar 28, 2018
How to install AWStats on CentOS 7
How to install AWStats on CentOS 7
Dec 8, 2017
How to install Apache JMeter in CentOS 7
How to install Apache JMeter in CentOS 7
Mar 24, 2017

Related Forums in How to Install PHP 7.3v from Source Code on CentOS 7.6

Related Forums in How to Install PHP 7.3v from Source Code on CentOS 7.6

CentOS
connor class=
How To Completely Remove Apache package On CentOS 7.6
May 14, 2019
CentOS
ceriaimmaculate class=
setfacl : command not found
Jan 3, 2018
CentOS
mason class=
Error getting authority: Error initializing authority: Could not connect: No such file or directory (g-io-error-quark, 1)
Nov 20, 2018
CentOS
landon class=
Command to find SNMP Version
May 28, 2018
CentOS
arjitharon class=
cannot start minio service help
Mar 10, 2018
Ubuntu
mason class=
"E: Package 'php-mcrypt' has no installation candidate" error on Ubuntu 20.4.1
Mar 15, 2021
Apache tomcat
AadrikaAnshu class=
Cannot find ./catalina.sh The file is absent or does not have execute permission This file is needed to run this program
Jun 17, 2019
gitlab
caden class=
Insufficient space in download directory /var/cache/yum/x86_64/6/base/packages
Jul 22, 2019

Related News in How to Install PHP 7.3v from Source Code on CentOS 7.6

Related News in How to Install PHP 7.3v from Source Code on CentOS 7.6

PHP7 bugs used by hackers to remotely hijack web servers
PHP7 bugs used by hackers to remotely hijack web servers
Nov 5, 2019
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Isaac ?
How to run windows application in linux

I need to run the windows application in my Linux machine, instead of installing from yum repo or any other repos. How to do that..??

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.