Updated some PHP-related info in INSTALL

This commit is contained in:
Mikael Nordfeldth 2017-08-03 09:52:04 +02:00
parent 586aaa596e
commit dea9f43d85
1 changed files with 12 additions and 25 deletions

37
INSTALL
View File

@ -26,16 +26,12 @@ PHP modules
The following software packages are *required* for this software to The following software packages are *required* for this software to
run correctly. run correctly.
- PHP 5.5+ For newer versions, some functions that are used may be - PHP 5.6+ PHP7.x is also supported.
disabled by default, such as the pcntl_* family. See the - MariaDB 5+ MariaDB 10.x is also supported.
section on 'Queues and daemons' for more information. - Web server Apache, lighttpd and nginx will all work, see sample
- MariaDB 5+ GNU Social uses, by default, a MariaDB server for data configuration files in the web root. Please use PHP-FPM
storage. Versions 5.x and 10.x have both reportedly and configure mod_rewrite (or equivalent) for an optimal
worked well. It is also possible to run MySQL 5.5+. experience.
- Web server Apache, lighttpd and nginx will all work. CGI mode is
recommended and also some variant of 'suexec' (or a
proper setup php-fpm pool)
NOTE: mod_rewrite or its equivalent is extremely useful.
Your PHP installation must include the following PHP extensions for a Your PHP installation must include the following PHP extensions for a
functional setup of GNU Social: functional setup of GNU Social:
@ -49,22 +45,22 @@ functional setup of GNU Social:
- php5-mysqlnd The native driver for PHP5 MariaDB connections. If you - php5-mysqlnd The native driver for PHP5 MariaDB connections. If you
use MySQL, 'php5-mysql' or 'php5-mysqli' may be enough. use MySQL, 'php5-mysql' or 'php5-mysqli' may be enough.
Or, for PHP7, some or all of these will be necessary. PHP7 support is still Or, for PHP7, some or all of these will be necessary. PHP7 works and on
experimental and not necessarily working: the development servers we are successful running PHP7.2. This is a good
list of PHP modules you will want installed with PHP7:
php7.0-bcmath php7.0-bcmath
php7.0-curl php7.0-curl
php7.0-exif php7.0-exif
php7.0-gd php7.0-gd
php7.0-intl php7.0-intl
php7.0-mbstring php7.0-mbstring
php7.0-mysqlnd php7.0-mysql
php7.0-opcache php7.0-opcache
php7.0-readline php7.0-readline
php7.0-xmlwriter php7.0-xmlwriter
The above package names are for Debian based systems. In the case of NOTE: In Arch Linux, at least PHP5 requires manual enabling in the
Arch Linux, PHP is compiled with support for most extensions but they relevant php.ini for some modules, most notably 'gmp'.
require manual enabling in the relevant php.ini file (mostly php5-gmp).
Better performance Better performance
------------------ ------------------
@ -74,19 +70,10 @@ For some functionality, you will also need the following extensions:
- opcache Improves performance a _lot_. Included in PHP, must be - opcache Improves performance a _lot_. Included in PHP, must be
enabled manually in php.ini for most distributions. Find enabled manually in php.ini for most distributions. Find
and set at least: opcache.enable=1 and set at least: opcache.enable=1
- mailparse Efficient parsing of email requires this extension.
Submission by email or SMS-over-email uses this.
- sphinx A client for the sphinx server, an alternative to MySQL
or Postgresql fulltext search. You will also need a
Sphinx server to serve the search queries.
- gettext For multiple languages. Default on many PHP installs; - gettext For multiple languages. Default on many PHP installs;
will be emulated if not present. will be emulated if not present.
- exif For thumbnails to be properly oriented. - exif For thumbnails to be properly oriented.
You may also experience better performance from your site if you configure
a PHP cache/accelerator. Most distributions come with "opcache" support.
Enable it in your php.ini where it is documented together with its settings.
Installation Installation
============ ============