BSD Ports

www/mod_php81 8.1.32 DragonFly

PHP Scripting Language (8.1.X branch)

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
PHP301
Categories
devel, www
Package size
1596.6 KiB, 5583.1 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.

Install

Binary package:

pkg install mod_php81

From DPorts:

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

Dependencies

Run dependencies 5
Required by 1

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>

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

===>   NOTICE:

This port is deprecated; you may wish to reconsider installing it:

Upstream EOL reaches on 2025-12-31.

It is scheduled to be removed on or after 2025-12-31.