
次のようにソースからPHP 7.3.27を構築しました。
./configure --with-config-file-path=/etc/php7/cli \
--with-config-file-scan-dir=/etc/php7/cli \
--with-openssl \
--with-bz2 \
--with-zlib \
--with-bz2 \
--with-sodium \
--with-xsl \
--with-readline \
--enable-sockets \
--enable-soap \
--enable-mbstring \
--enable-ftp \
--enable-calendar \
--enable-bcmath \
--enable-pcntl \
--prefix=$HOME/bin/php-latest
実行してmake && make install
apache2 を再起動します。
しかし、実行すると、php -v
古いPHPバージョンは引き続き表示されます。
PHP CLIのバージョンを変更するにはどのような手順がありませんか?