Last active
February 12, 2022 07:47
-
-
Save amekusa/e31f9a8ff71400d8e5f4f2bbefe9e07a to your computer and use it in GitHub Desktop.
PHP Good Practice
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; Custom PHP Settings | |
| ; --------------------- ---- -- - | |
| ; Place this file in: /etc/php/conf.d | |
| ;memory_limit = 128M | |
| memory_limit = 512M | |
| ; Fix "JIT compilation failed" in PHP 7.3 | |
| pcre.jit=0 | |
| ; ---- Extensions ---- | |
| ; Exif API | |
| extension=exif | |
| ; Graphics API | |
| ; $ pacman -S php-gd | |
| extension=gd | |
| ; MySQL API | |
| ; $ pacman -S mariadb | |
| extension=mysqli | |
| extension=pdo_mysql | |
| ; SQLite API | |
| ; $ pacman -S php-sqlite | |
| extension=sqlite3 | |
| extension=pdo_sqlite | |
| ; XMLRPC API | |
| ;extension=xmlrpc | |
| ; Charset conversion API (required for Nextcloud) | |
| extension=iconv | |
| ; i18n module (required for Nextcloud) | |
| ; $ pacman -S php-intl | |
| extension=intl | |
| ; OPCache | |
| zend_extension=opcache | |
| [opcache] | |
| opcache.enable = 1 | |
| opcache.interned_strings_buffer = 8 | |
| opcache.max_accelerated_files = 10000 | |
| opcache.memory_consumption = 128 | |
| opcache.save_comments = 1 | |
| opcache.revalidate_freq = 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment