openSUSE - 소스에서 최신 PHP 설치

openSUSE - 소스에서 최신 PHP 설치

PHP 7.2.5가 있는데 최신 PHP로 업그레이드해야 합니다.

먼저 다음을 실행하여 이전 PHP를 지웠습니다.apt-get purge php7

그럼 내가PHP-7.3.7 다운로드내 웹 서버로 추출하고 실행한 ./configure && make && make install다음 실행하여 apache2를 다시 시작했습니다.systemctl restart apache2

이것이 실행 후 얻은 결과입니다 make install.

Installing shared extensions:     /usr/local/lib64/extensions/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/lib64/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/lib64/php/
[PEAR] Archive_Tar    - installed: 1.4.7
[PEAR] Console_Getopt - installed: 1.4.2
[PEAR] Structures_Graph- installed: 1.1.1
[PEAR] XML_Util       - installed: 1.4.3
[PEAR] PEAR           - installed: 1.10.9
Wrote PEAR system config file at: /usr/local/etc/pear.conf
You may want to add: /usr/local/lib64/php to your php.ini include_path
/srv/www/vhosts/xdebug/php-7.3.7/build/shtool install -c ext/phar/phar.phar /usr/local/bin
ln -s -f phar.phar /usr/local/bin/phar

phpinfo.php를 실행하면 PHP를 해석할 수 없기 때문에 해당 파일만 다운로드합니다...

관련 정보