openSUSE - ソースから最新のPHPをインストールする

openSUSE - ソースから最新のPHPをインストールする

PHP 7.2.5があり、最新のPHPにアップグレードする必要があります。

まず、次のように実行して古いPHPを消去しました。apt-get purge php7

それから私はPHP-7.3.7 ダウンロード私のWebサーバーに抽出して実行し、実行して./configure && make && make installapache2を再起動しました。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を解釈できないため、そのファイルのみをダウンロードします。

ベストアンサー1

おすすめ記事