Solved Cannot install php83-fpm

# uname -a
FreeBSD myserv 15.0-RELEASE FreeBSD 15.0-RELEASE releng/15.0-n280995-7aedc8de6446 GENERIC amd64

# pkg update -f
All repositories are up to date.

# pkg install php83
The most recent versions of packages are already installed

# pkg install php83-fpm
pkg: No packages available to install matching 'php83-fpm' have been found in the repositories
 
Good question. Had the same.

The default for php is 83,
https://github.com/freebsd/freebsd-ports/blob/2025Q4/Mk/bsd.default-versions.mk

pkg search . | grep -i fpm
nfpm-2.41.3_8 Simple deb, rpm and apk packager written in Go
php-fpm_exporter-2.2.0_28 Export php-fpm metrics in Prometheus format
phpfpm_exporter-0.6.1_20 Export php-fpm metrics in Prometheus format
phpfpmtop-0.2_18 Top-inspired processviewer for PHP-FPM
rubygem-fpm-1.16.0 Build packages for multiple platforms with great ease and sanity
 
I installed and use php85. On 16.0-CURRENT trying to install php83 looks like it would install fine alongside:
Code:
New packages to be INSTALLED:
    libargon2: 20190702_1 [FreeBSD-ports]
    php83: 8.3.29 [FreeBSD-ports]

PHP-FPM is included in php85 (iirc 84 too):
Code:
pkg info -l 'php85' | grep 'php-fpm'

    /usr/local/sbin/php-fpm
 
I think php-fpm is already part of php or php-extensions ...
Install them and check if you find php-fpm in /usr/local/etc/rc.d

Good call. It looks like php_fpm is already part of php-extensions.
The directions that I following said to do this:

# service php-fpm star

But what I needed to do was:

# service php_fpm star

Did you see the difference? I missed it: php-fpm vs php_fpm.

I need to learn to do more than follow directions.
 
I need to learn to do more than follow directions.
If you can't find the name, or it tells you "service does not exist" or something similar, look in /usr/local/etc/rc.d/, those service scripts are stored there.

Before the service(8) command existed you typically started a service with /usr/local/etc/rc.d/someservice start. You can still start services that way.
 
Back
Top