Skip to content

Instantly share code, notes, and snippets.

@amekusa
Last active February 12, 2022 07:47
Show Gist options
  • Select an option

  • Save amekusa/e31f9a8ff71400d8e5f4f2bbefe9e07a to your computer and use it in GitHub Desktop.

Select an option

Save amekusa/e31f9a8ff71400d8e5f4f2bbefe9e07a to your computer and use it in GitHub Desktop.
PHP Good Practice
; 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