Re: Install PHP 8.1.12 on CentOS Linux release 7.9.2009 (Core).
[email protected] (Kaushal Shriyan)
| Newsgroups | php.general |
|---|---|
| Message-ID | <CAD7Ssm-BGFF8UdtXv=J17ChJP_R85qbhKZi8rDZOJw3p507ENw@mail.gmail.com> |
On Sat, Nov 12, 2022 at 11:21 PM Richard < [email protected]> wrote: > > > > Date: Saturday, November 12, 2022 22:47:15 +0530 > > From: Kaushal Shriyan <[email protected]> > > > > I am running CentOS Linux release 7.9.2009 (Core). I have enabled > > both epel and IUS repositories to install > > https://www.php.net/ChangeLog-8.php#8.1.12. It is not available. > > > > Do I need to install and enable any other repository to install PHP > > 8.1.12? > > > > Given that Centos 7 is no longer under active support (it moved to > security support a bit over two years ago) and php 8.1.12 was only > released about 2 weeks ago, you'll likely need to compile it from > source if you need it any time soon. I'd suggest that you build rpms, > rather than doing a direct install as that will make it easier to > manage your php installs going forward. > > Before embarking on trying to build something like this from source > it is often good to make certain that one absolutely needs the very > latest release. It's possible that there is some "must have" feature > or a fix to a gaping security issue that isn't otherwise addressable, > so it's worth doing the research. Look at the changelogss and CVEs > since the last repository release available and evaluate the issues. > Thanks Richard for the email response. I downloaded https://www.php.net/distributions/php-8.1.12.tar.gz in /opt directory on CentOS Linux release 7.9.2009 (Core) #cd /opt/ #tar zxvf php-8.1.12.tar.gz [root@ php-8.1.12]# ls -l total 3512 drwxr-xr-x 3 501 games 80 Oct 25 17:30 azure -rw-r--r-- 1 501 games 1138 Oct 25 17:30 azure-pipelines.yml drwxr-xr-x 2 501 games 4096 Oct 25 17:30 build -rwxr-xr-x 1 501 games 4012 Oct 25 17:30 buildconf -rw-r--r-- 1 501 games 346 Oct 25 17:30 buildconf.bat -rw-r--r-- 1 501 games 11121 Oct 25 17:30 CODING_STANDARDS.md -rw-r--r-- 1 root root 310345 Nov 12 18:11 config.log -rwxr-xr-x 1 root root 58 Nov 12 18:11 config.nice -rwxr-xr-x 1 501 games 2536110 Oct 25 17:30 configure -rw-r--r-- 1 501 games 48813 Oct 25 17:30 configure.ac -rw-r--r-- 1 501 games 20251 Oct 25 17:30 CONTRIBUTING.md drwxr-xr-x 2 501 games 218 Oct 25 17:30 docs drwxr-xr-x 74 501 games 4096 Oct 25 17:30 ext -rw-r--r-- 1 501 games 23894 Oct 25 17:30 EXTENSIONS drwxr-xr-x 2 root root 6 Nov 12 18:11 include drwxr-xr-x 2 root root 6 Nov 12 18:11 libs -rw-r--r-- 1 501 games 3204 Oct 25 17:30 LICENSE drwxr-xr-x 3 501 games 4096 Oct 25 17:30 main -rw-r--r-- 1 root root 2719 Nov 12 18:11 Makefile.fragments -rw-r--r-- 1 root root 33337 Nov 12 18:11 Makefile.objects -rw-r--r-- 1 501 games 32787 Oct 25 17:30 NEWS drwxr-xr-x 2 501 games 100 Oct 25 17:30 pear -rw-r--r-- 1 501 games 72762 Oct 25 17:30 php.ini-development -rw-r--r-- 1 501 games 72908 Oct 25 17:30 php.ini-production -rw-r--r-- 1 501 games 5076 Oct 25 17:30 README.md -rw-r--r-- 1 501 games 28525 Oct 25 17:30 README.REDIST.BINS -rwxr-xr-x 1 501 games 140834 Oct 25 17:30 run-tests.php drwxr-xr-x 10 501 games 119 Oct 25 17:30 sapi drwxr-xr-x 4 501 games 105 Oct 25 17:30 scripts drwxr-xr-x 10 501 games 119 Oct 25 17:30 tests drwxr-xr-x 2 501 games 83 Oct 25 17:30 travis drwxr-xr-x 2 501 games 140 Oct 25 17:30 TSRM -rw-r--r-- 1 501 games 27538 Oct 25 17:30 UPGRADING -rw-r--r-- 1 501 games 7489 Oct 25 17:30 UPGRADING.INTERNALS drwxr-xr-x 3 501 games 4096 Oct 25 17:30 win32 drwxr-xr-x 5 501 games 8192 Oct 25 17:30 Zend [root@ php-8.1.12]# [root@ php-8.1.12]# pwd /opt/php-8.1.12 [root@ php-8.1.12]# I do not see the rpm spec file to create a rpm binary for rpm based OS such as CentOS Linux release 7.9.2009 (Core) as per the above output. Please guide me. Thanks in advance. Best Regards, Kaushal