Upgrade PHP 7.1 to PHP 7.3 on FreeBSD

1/4/19, 7:43 AM

List all packages to a file

pkg info php71\* > /root/installed-php71.txt

cat /root/installed-php71.txt

Stop the php-fpm service before deleting the packages

service php-fpm stop

cat /root/installed-php71.txt | xargs pkg delete -fy

pkg info php71\*

pkg: No package(s) matching php71*

Install the packages

cd /usr/ports/lang/php73/ && make install clean;
cd /usr/ports/archivers/php73-phar/ && make install clean;
cd /usr/ports/converters/php73-mbstring/ && make install clean;
cd /usr/ports/databases/php73-pgsql/ && make install clean;

cd /usr/ports/devel/php73-intl/ && make install clean;
cd /usr/ports/devel/php73-json/ && make install clean;
cd /usr/ports/devel/php73-tokenizer/ && make install clean;
cd /usr/ports/ftp/php73-curl/ && make install clean;
cd /usr/ports/graphics/php73-exif/ && make install clean;
cd /usr/ports/graphics/php73-gd/ && make install clean;

cd /usr/ports/mail/php73-imap/ && make install clean;
cd /usr/ports/security/php73-filter/ && make install clean;
cd /usr/ports/security/php73-openssl/ && make install clean;
cd /usr/ports/sysutils/php73-fileinfo/ && make install clean;

cd /usr/ports/textproc/php73-ctype/ && make install clean;
cd /usr/ports/textproc/php73-dom/ && make install clean;
cd /usr/ports/textproc/php73-simplexml/ && make install clean;

cd /usr/ports/textproc/php73-xml/ && make install clean;
cd /usr/ports/textproc/php73-xmlwriter/ && make install clean;
cd /usr/ports/www/php73-opcache/ && make install clean;
cd /usr/ports/www/php73-session/ && make install clean;
cd /usr/ports/databases/pecl-redis/ && make install clean;

PHP73:
[x] Build FPM Version
[x] CLI Version


pcre2-10.31:
[x]  stack recursion 

php73-mbstring
[x] REGEX

php73-gd
[x]   TRUETYPE
pkg info php73\*

freebsd