BSD Ports

www/mod_php85 8.5.12_2 DragonFly

PHP Scripting Language (8.5.X branch)

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
PHP301
Categories
devel, www
Package size
2762.0 KiB, 10302.8 KiB installed

Description

PHP, which stands for "PHP: Hypertext Preprocessor" is a widely-used Open Source general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. Its syntax draws upon C, Java, and Perl, and is easy to learn. The main goal of the language is to allow web developers to write dynamically generated webpages quickly, but you can do much more with PHP.

In the other systems

The newest version among them is 8.5.12, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlywww/mod_php858.5.12_2 newestnone known-[email protected]-
FreeBSDwww/mod_php858.5.12_2 newestnone known-[email protected]-
MidnightBSDwww/mod_php85 behind since 2026-11-11no data--2026-11-04
HardenedBSDwww/mod_php858.5.12_2 newestno data-[email protected]-
GhostBSDwww/mod_php858.5.12_2 newestno data-[email protected]-

Version history 1

  1. 8.5.12

Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.

Install

Binary package:

pkg install mod_php85

From DPorts:

cd /usr/dports/www/mod_php85 && make install clean

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 4

Configuration

No options to configure.

Service scripts
none

Message after installing

******************************************************************************

Consider switching to php-fpm and mod_fast_cgi as per Apache httpd project
recommendation. See https://cwiki.apache.org/confluence/display/HTTPD/PHP-FPM

******************************************************************************

If you are building PHP-based ports in poudriere(8) or Synth with ZTS enabled,
add WITH_MPM=event to /etc/make.conf to prevent build failures.

******************************************************************************

Make sure index.php is part of your DirectoryIndex.

You should add the following to your Apache configuration file:

<FilesMatch "\.php$">
    SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
    SetHandler application/x-httpd-php-source
</FilesMatch>

******************************************************************************