installphp.info


← Back to home page

Install PHP 8.1 on Debian 12

Warning! This version of PHP is outdated.

PHP 8.1 reached end of active support on 25 Nov 2023. As of today, PHP 8.1 is only receiving security related updates through 31 Dec 2025, at which point it will be considered end-of-life and receive no further updates. It's strongly recommended to upgrade to the latest version of PHP before then.

Installing PHP 8.1 on Debian 12

Prerequisites

  • Debian 12 (Bookworm) installed and updated
  • Root or sudo access to the system
  • Terminal access

Installation

  1. Update the package list:

    sudo apt update
  2. Install PHP 8.1 and common extensions:

    sudo apt install php8.1 php8.1-cli php8.1-common php8.1-curl php8.1-mbstring php8.1-mysql php8.1-xml
  3. Install additional PHP extensions as needed:

    sudo apt install php8.1-gd php8.1-zip php8.1-intl

Verification

  1. Check the PHP version:

    php -v

    This should display PHP 8.1.x information.

  2. Verify installed PHP modules:

    php -m

    This will list all installed PHP modules.

  3. Create a PHP info file:

    echo "
    
    
    PHP 8.3.6 - phpinfo()
    
    PHP logo

    PHP Version 8.3.6

    System Linux projects 6.8.0-41-generic #41-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 2 20:41:06 UTC 2024 x86_64
    Build Date Sep 30 2024 15:17:17
    Build System Linux
    Server API FPM/FastCGI
    Virtual Directory Support disabled
    Configuration File (php.ini) Path /etc/php/8.3/fpm
    Loaded Configuration File /etc/php/8.3/fpm/php.ini
    Scan this dir for additional .ini files /etc/php/8.3/fpm/conf.d
    Additional .ini files parsed /etc/php/8.3/fpm/conf.d/10-opcache.ini, /etc/php/8.3/fpm/conf.d/10-pdo.ini, /etc/php/8.3/fpm/conf.d/15-xml.ini, /etc/php/8.3/fpm/conf.d/20-calendar.ini, /etc/php/8.3/fpm/conf.d/20-ctype.ini, /etc/php/8.3/fpm/conf.d/20-curl.ini, /etc/php/8.3/fpm/conf.d/20-dom.ini, /etc/php/8.3/fpm/conf.d/20-exif.ini, /etc/php/8.3/fpm/conf.d/20-ffi.ini, /etc/php/8.3/fpm/conf.d/20-fileinfo.ini, /etc/php/8.3/fpm/conf.d/20-ftp.ini, /etc/php/8.3/fpm/conf.d/20-gd.ini, /etc/php/8.3/fpm/conf.d/20-gettext.ini, /etc/php/8.3/fpm/conf.d/20-iconv.ini, /etc/php/8.3/fpm/conf.d/20-igbinary.ini, /etc/php/8.3/fpm/conf.d/20-mbstring.ini, /etc/php/8.3/fpm/conf.d/20-pdo_pgsql.ini, /etc/php/8.3/fpm/conf.d/20-pdo_sqlite.ini, /etc/php/8.3/fpm/conf.d/20-pgsql.ini, /etc/php/8.3/fpm/conf.d/20-phar.ini, /etc/php/8.3/fpm/conf.d/20-posix.ini, /etc/php/8.3/fpm/conf.d/20-readline.ini, /etc/php/8.3/fpm/conf.d/20-redis.ini, /etc/php/8.3/fpm/conf.d/20-shmop.ini, /etc/php/8.3/fpm/conf.d/20-simplexml.ini, /etc/php/8.3/fpm/conf.d/20-sockets.ini, /etc/php/8.3/fpm/conf.d/20-sqlite3.ini, /etc/php/8.3/fpm/conf.d/20-sysvmsg.ini, /etc/php/8.3/fpm/conf.d/20-sysvsem.ini, /etc/php/8.3/fpm/conf.d/20-sysvshm.ini, /etc/php/8.3/fpm/conf.d/20-tokenizer.ini, /etc/php/8.3/fpm/conf.d/20-xmlreader.ini, /etc/php/8.3/fpm/conf.d/20-xmlwriter.ini, /etc/php/8.3/fpm/conf.d/20-xsl.ini, /etc/php/8.3/fpm/conf.d/20-zip.ini
    PHP API 20230831
    PHP Extension 20230831
    Zend Extension 420230831
    Zend Extension Build API420230831,NTS
    PHP Extension Build API20230831,NTS
    Debug Build no
    Thread Safety disabled
    Zend Signal Handling enabled
    Zend Memory Manager enabled
    Zend Multibyte Support provided by mbstring
    Zend Max Execution Timers disabled
    IPv6 Support enabled
    DTrace Support disabled
    Registered PHP Streamshttps, ftps, compress.zlib, php, file, glob, data, http, ftp, phar, zip
    Registered Stream Socket Transportstcp, udp, unix, udg, ssl, tls, tlsv1.0, tlsv1.1, tlsv1.2, tlsv1.3
    Registered Stream Filterszlib.*, string.rot13, string.toupper, string.tolower, convert.*, consumed, dechunk, convert.iconv.*
    Zend logo This program makes use of the Zend Scripting Language Engine:
    Zend Engine v4.3.6, Copyright (c) Zend Technologies with Zend OPcache v8.3.6, Copyright (c), by Zend Technologies

    Configuration

    calendar

    Calendar support enabled

    cgi-fcgi

    php-fpm active
    DirectiveLocal ValueMaster Value
    cgi.discard_pathOffOff
    cgi.fix_pathinfoOnOn
    cgi.force_redirectOnOn
    cgi.nphOffOff
    cgi.redirect_status_envno valueno value
    cgi.rfc2616_headersOffOff
    fastcgi.error_headerno valueno value
    fastcgi.loggingOnOn
    fpm.configno valueno value

    Core

    PHP Version 8.3.6
    DirectiveLocal ValueMaster Value
    allow_url_fopenOnOn
    allow_url_includeOffOff
    arg_separator.input&&
    arg_separator.output&&
    auto_append_fileno valueno value
    auto_globals_jitOnOn
    auto_prepend_fileno valueno value
    browscapno valueno value
    default_charsetUTF-8UTF-8
    default_mimetypetext/htmltext/html
    disable_classesno valueno value
    disable_functionsno valueno value
    display_errorsOffOff
    display_startup_errorsOffOff
    doc_rootno valueno value
    docref_extno valueno value
    docref_rootno valueno value
    enable_dlOffOff
    enable_post_data_readingOnOn
    error_append_stringno valueno value
    error_logno valueno value
    error_log_mode06440644
    error_prepend_stringno valueno value
    error_reporting2252722527
    expose_phpOffOff
    extension_dir/usr/lib/php/20230831/usr/lib/php/20230831
    fiber.stack_sizeno valueno value
    file_uploadsOnOn
    hard_timeout22
    highlight.comment#FF8000#FF8000
    highlight.default#0000BB#0000BB
    highlight.html#000000#000000
    highlight.keyword#007700#007700
    highlight.string#DD0000#DD0000
    html_errorsOnOn
    ignore_repeated_errorsOffOff
    ignore_repeated_sourceOffOff
    ignore_user_abortOffOff
    implicit_flushOffOff
    include_path.:/usr/share/php.:/usr/share/php
    input_encodingno valueno value
    internal_encodingno valueno value
    log_errorsOnOn
    mail.add_x_headerOffOff
    mail.force_extra_parametersno valueno value
    mail.logno valueno value
    mail.mixed_lf_and_crlfOffOff
    max_execution_time3030
    max_file_uploads2020
    max_input_nesting_level6464
    max_input_time6060
    max_input_vars10001000
    max_multipart_body_parts-1-1
    memory_limit128M128M
    open_basedirno valueno value
    output_buffering40964096
    output_encodingno valueno value
    output_handlerno valueno value
    post_max_size8M8M
    precision1414
    realpath_cache_size4096K4096K
    realpath_cache_ttl120120
    register_argc_argvOffOff
    report_memleaksOnOn
    report_zend_debugOffOff
    request_orderGPGP
    sendmail_fromno valueno value
    sendmail_path/usr/sbin/sendmail -t -i/usr/sbin/sendmail -t -i
    serialize_precision-1-1
    short_open_tagOffOff
    SMTPlocalhostlocalhost
    smtp_port2525
    sys_temp_dirno valueno value
    syslog.facilityLOG_USERLOG_USER
    syslog.filterno-ctrlno-ctrl
    syslog.identphpphp
    unserialize_callback_funcno valueno value
    upload_max_filesize2M2M
    upload_tmp_dirno valueno value
    user_dirno valueno value
    user_ini.cache_ttl300300
    user_ini.filename.user.ini.user.ini
    variables_orderGPCSGPCS
    xmlrpc_error_number00
    xmlrpc_errorsOffOff
    zend.assertions-1-1
    zend.detect_unicodeOnOn
    zend.enable_gcOnOn
    zend.exception_ignore_argsOnOn
    zend.exception_string_param_max_len00
    zend.max_allowed_stack_size00
    zend.multibyteOffOff
    zend.reserved_stack_size00
    zend.script_encodingno valueno value
    zend.signal_checkOffOff

    ctype

    ctype functions enabled

    curl

    cURL support enabled
    cURL Information 8.5.0
    Age 10
    Features
    AsynchDNS Yes
    CharConv No
    Debug No
    GSS-Negotiate No
    IDN Yes
    IPv6 Yes
    krb4 No
    Largefile Yes
    libz Yes
    NTLM Yes
    NTLMWB No
    SPNEGO Yes
    SSL Yes
    SSPI No
    TLS-SRP Yes
    HTTP2 Yes
    GSSAPI Yes
    KERBEROS5 Yes
    UNIX_SOCKETS Yes
    PSL Yes
    HTTPS_PROXY Yes
    MULTI_SSL No
    BROTLI Yes
    ALTSVC Yes
    HTTP3 No
    UNICODE No
    ZSTD Yes
    HSTS Yes
    GSASL No
    Protocols dict, file, ftp, ftps, gopher, gophers, http, https, imap, imaps, ldap, ldaps, mqtt, pop3, pop3s, rtmp, rtmpe, rtmps, rtmpt, rtmpte, rtmpts, rtsp, scp, sftp, smb, smbs, smtp, smtps, telnet, tftp
    Host x86_64-pc-linux-gnu
    SSL Version OpenSSL/3.0.13
    ZLib Version 1.3
    libSSH Version libssh/0.10.6/openssl/zlib
    DirectiveLocal ValueMaster Value
    curl.cainfono valueno value

    date

    date/time support enabled
    timelib version 2022.10
    "Olson" Timezone Database Version 0.system
    Timezone Database internal
    Default timezone UTC
    DirectiveLocal ValueMaster Value
    date.default_latitude31.766731.7667
    date.default_longitude35.233335.2333
    date.sunrise_zenith90.83333390.833333
    date.sunset_zenith90.83333390.833333
    date.timezoneUTCUTC

    dom

    DOM/XML enabled
    DOM/XML API Version 20031129
    libxml Version 2.9.14
    HTML Support enabled
    XPath Support enabled
    XPointer Support enabled
    Schema Support enabled
    RelaxNG Support enabled

    exif

    EXIF Support enabled
    Supported EXIF Version 0220
    Supported filetypes JPEG, TIFF
    Multibyte decoding support using mbstring enabled
    Extended EXIF tag formats Canon, Casio, Fujifilm, Nikon, Olympus, Samsung, Panasonic, DJI, Sony, Pentax, Minolta, Sigma, Foveon, Kyocera, Ricoh, AGFA, Epson
    DirectiveLocal ValueMaster Value
    exif.decode_jis_intelJISJIS
    exif.decode_jis_motorolaJISJIS
    exif.decode_unicode_intelUCS-2LEUCS-2LE
    exif.decode_unicode_motorolaUCS-2BEUCS-2BE
    exif.encode_jisno valueno value
    exif.encode_unicodeISO-8859-15ISO-8859-15

    FFI

    FFI support enabled
    DirectiveLocal ValueMaster Value
    ffi.enablepreloadpreload
    ffi.preloadno valueno value

    fileinfo

    fileinfo support enabled
    libmagic 543

    filter

    Input Validation and Filtering enabled
    DirectiveLocal ValueMaster Value
    filter.defaultunsafe_rawunsafe_raw
    filter.default_flagsno valueno value

    ftp

    FTP support enabled
    FTPS support enabled

    gd

    GD Support enabled
    GD headers Version 2.3.3
    GD library Version 2.3.3
    FreeType Support enabled
    FreeType Linkage with freetype
    GIF Read Support enabled
    GIF Create Support enabled
    JPEG Support enabled
    PNG Support enabled
    WBMP Support enabled
    XPM Support enabled
    XBM Support enabled
    WebP Support enabled
    BMP Support enabled
    TGA Read Support enabled
    DirectiveLocal ValueMaster Value
    gd.jpeg_ignore_warningOnOn

    gettext

    GetText Support enabled

    hash

    hash support enabled
    Hashing Engines md2 md4 md5 sha1 sha224 sha256 sha384 sha512/224 sha512/256 sha512 sha3-224 sha3-256 sha3-384 sha3-512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru snefru256 gost gost-crypto adler32 crc32 crc32b crc32c fnv132 fnv1a32 fnv164 fnv1a64 joaat murmur3a murmur3c murmur3f xxh32 xxh64 xxh3 xxh128 haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5
    MHASH support Enabled
    MHASH API Version Emulated Support

    iconv

    iconv support enabled
    iconv implementation glibc
    iconv library version 2.39
    DirectiveLocal ValueMaster Value
    iconv.input_encodingno valueno value
    iconv.internal_encodingno valueno value
    iconv.output_encodingno valueno value

    igbinary

    igbinary support enabled
    igbinary version 3.2.13
    igbinary APCu serializer ABI 0
    igbinary session support yes
    DirectiveLocal ValueMaster Value
    igbinary.compact_stringsOnOn

    json

    json support enabled

    libxml

    libXML support active
    libXML Compiled Version 2.9.14
    libXML Loaded Version 20914
    libXML streams enabled

    mbstring

    Multibyte Support enabled
    Multibyte string engine libmbfl
    HTTP input encoding translation disabled
    libmbfl version 1.3.2
    mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.
    Multibyte (japanese) regex support enabled
    Multibyte regex (oniguruma) version 6.9.9
    DirectiveLocal ValueMaster Value
    mbstring.detect_orderno valueno value
    mbstring.encoding_translationOffOff
    mbstring.http_inputno valueno value
    mbstring.http_outputno valueno value
    mbstring.http_output_conv_mimetypes^(text/|application/xhtml\+xml)^(text/|application/xhtml\+xml)
    mbstring.internal_encodingno valueno value
    mbstring.languageneutralneutral
    mbstring.regex_retry_limit10000001000000
    mbstring.regex_stack_limit100000100000
    mbstring.strict_detectionOffOff
    mbstring.substitute_characterno valueno value

    openssl

    OpenSSL support enabled
    OpenSSL Library Version OpenSSL 3.0.13 30 Jan 2024
    OpenSSL Header Version OpenSSL 3.0.13 30 Jan 2024
    Openssl default config /usr/lib/ssl/openssl.cnf
    DirectiveLocal ValueMaster Value
    openssl.cafileno valueno value
    openssl.capathno valueno value

    pcre

    PCRE (Perl Compatible Regular Expressions) Support enabled
    PCRE Library Version 10.42 2022-12-11
    PCRE Unicode Version 14.0.0
    PCRE JIT Support enabled
    PCRE JIT Target x86 64bit (little endian + unaligned)
    DirectiveLocal ValueMaster Value
    pcre.backtrack_limit10000001000000
    pcre.jitOnOn
    pcre.recursion_limit100000100000

    PDO

    PDO support enabled
    PDO drivers pgsql, sqlite

    pdo_pgsql

    PDO Driver for PostgreSQL enabled
    PostgreSQL(libpq) Version 16.4

    pdo_sqlite

    PDO Driver for SQLite 3.x enabled
    SQLite Library 3.45.1

    pgsql

    PostgreSQL Support enabled
    PostgreSQL (libpq) Version 16.4
    Multibyte character support enabled
    Active Persistent Links 0
    Active Links 0
    DirectiveLocal ValueMaster Value
    pgsql.allow_persistentOnOn
    pgsql.auto_reset_persistentOffOff
    pgsql.ignore_noticeOffOff
    pgsql.log_noticeOffOff
    pgsql.max_linksUnlimitedUnlimited
    pgsql.max_persistentUnlimitedUnlimited

    Phar

    Phar: PHP Archive support enabled
    Phar API version 1.1.1
    Phar-based phar archives enabled
    Tar-based phar archives enabled
    ZIP-based phar archives enabled
    gzip compression enabled
    bzip2 compression disabled (install ext/bz2)
    Native OpenSSL support enabled
    Phar based on pear/PHP_Archive, original concept by Davey Shafik.
    Phar fully realized by Gregory Beaver and Marcus Boerger.
    Portions of tar implementation Copyright (c) 2003-2009 Tim Kientzle.
    DirectiveLocal ValueMaster Value
    phar.cache_listno valueno value
    phar.readonlyOnOn
    phar.require_hashOnOn

    posix

    POSIX support enabled

    random

    Version 8.3.6

    readline

    Readline Support enabled
    Readline library EditLine wrapper
    DirectiveLocal ValueMaster Value
    cli.pagerno valueno value
    cli.prompt\b \> \b \>

    redis

    Redis Supportenabled
    Redis Version 5.3.7
    Redis Sentinel Version 0.1
    Available serializers php, json, igbinary
    Available compression lzf, zstd, lz4
    DirectiveLocal ValueMaster Value
    redis.arrays.algorithmno valueno value
    redis.arrays.authno valueno value
    redis.arrays.autorehash00
    redis.arrays.connecttimeout00
    redis.arrays.consistent00
    redis.arrays.distributorno valueno value
    redis.arrays.functionsno valueno value
    redis.arrays.hostsno valueno value
    redis.arrays.index00
    redis.arrays.lazyconnect00
    redis.arrays.namesno valueno value
    redis.arrays.pconnect00
    redis.arrays.previousno valueno value
    redis.arrays.readtimeout00
    redis.arrays.retryinterval00
    redis.clusters.authno valueno value
    redis.clusters.cache_slots00
    redis.clusters.persistent00
    redis.clusters.read_timeout00
    redis.clusters.seedsno valueno value
    redis.clusters.timeout00
    redis.pconnect.connection_limit00
    redis.pconnect.echo_check_liveness11
    redis.pconnect.pool_detect_dirty00
    redis.pconnect.pool_patternno valueno value
    redis.pconnect.pool_poll_timeout00
    redis.pconnect.pooling_enabled11
    redis.session.lock_expire00
    redis.session.lock_retries1010
    redis.session.lock_wait_time20002000
    redis.session.locking_enabled00

    Reflection

    Reflection enabled

    session

    Session Support enabled
    Registered save handlers files user redis rediscluster
    Registered serializer handlers php_serialize php php_binary igbinary
    DirectiveLocal ValueMaster Value
    session.auto_startOffOff
    session.cache_expire180180
    session.cache_limiternocachenocache
    session.cookie_domainno valueno value
    session.cookie_httponlyOffOff
    session.cookie_lifetime00
    session.cookie_path//
    session.cookie_samesiteno valueno value
    session.cookie_secureOffOff
    session.gc_divisor10001000
    session.gc_maxlifetime14401440
    session.gc_probability00
    session.lazy_writeOnOn
    session.namePHPSESSIDPHPSESSID
    session.referer_checkno valueno value
    session.save_handlerfilesfiles
    session.save_path/var/lib/php/sessions/var/lib/php/sessions
    session.serialize_handlerphpphp
    session.sid_bits_per_character55
    session.sid_length2626
    session.upload_progress.cleanupOnOn
    session.upload_progress.enabledOnOn
    session.upload_progress.freq1%1%
    session.upload_progress.min_freq11
    session.upload_progress.namePHP_SESSION_UPLOAD_PROGRESSPHP_SESSION_UPLOAD_PROGRESS
    session.upload_progress.prefixupload_progress_upload_progress_
    session.use_cookiesOnOn
    session.use_only_cookiesOnOn
    session.use_strict_modeOffOff
    session.use_trans_sidOffOff

    shmop

    shmop support enabled

    SimpleXML

    SimpleXML support enabled
    Schema support enabled

    sockets

    Sockets Support enabled

    sodium

    sodium support enabled
    libsodium headers version 1.0.18
    libsodium library version 1.0.18

    SPL

    SPL support enabled
    Interfaces OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject
    Classes AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, CallbackFilterIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveCallbackFilterIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHeap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedValueException

    sqlite3

    SQLite3 support enabled
    SQLite Library 3.45.1
    DirectiveLocal ValueMaster Value
    sqlite3.defensiveOnOn
    sqlite3.extension_dirno valueno value

    standard

    Dynamic Library Support enabled
    Path to sendmail /usr/sbin/sendmail -t -i
    DirectiveLocal ValueMaster Value
    assert.activeOnOn
    assert.bailOffOff
    assert.callbackno valueno value
    assert.exceptionOnOn
    assert.warningOnOn
    auto_detect_line_endingsOffOff
    default_socket_timeout6060
    fromno valueno value
    session.trans_sid_hostsno valueno value
    session.trans_sid_tagsa=href,area=href,frame=src,form=a=href,area=href,frame=src,form=
    unserialize_max_depth40964096
    url_rewriter.hostsno valueno value
    url_rewriter.tagsform=form=
    user_agentno valueno value

    sysvmsg

    sysvmsg support enabled

    sysvsem

    sysvsem support enabled

    sysvshm

    sysvshm support enabled

    tokenizer

    Tokenizer Support enabled

    xml

    XML Support active
    XML Namespace Support active
    libxml2 Version 2.9.14

    xmlreader

    XMLReader enabled

    xmlwriter

    XMLWriter enabled

    xsl

    XSL enabled
    libxslt Version 1.1.39
    libxslt compiled against libxml Version 2.9.14
    EXSLT enabled
    libexslt Version 0.8.21

    Zend OPcache

    Opcode Caching Up and Running
    Optimization Enabled
    SHM Cache Enabled
    File Cache Disabled
    JIT Disabled
    Startup OK
    Shared memory model mmap
    Cache hits 1210272
    Cache misses 3555
    Used memory 98368752
    Free memory 35848976
    Wasted memory 0
    Interned Strings Used memory 8388600
    Interned Strings Free memory 8
    Cached scripts 3545
    Cached keys 6773
    Max keys 16229
    OOM restarts 0
    Hash keys restarts 0
    Manual restarts 0
    Start time 2024-11-21T06:18:31+0000
    Last restart time none
    Last force restart time none
    DirectiveLocal ValueMaster Value
    opcache.blacklist_filenameno valueno value
    opcache.dups_fixOffOff
    opcache.enableOnOn
    opcache.enable_cliOffOff
    opcache.enable_file_overrideOffOff
    opcache.error_logno valueno value
    opcache.file_cacheno valueno value
    opcache.file_cache_consistency_checksOnOn
    opcache.file_cache_onlyOffOff
    opcache.file_update_protection22
    opcache.force_restart_timeout180180
    opcache.huge_code_pagesOffOff
    opcache.interned_strings_buffer88
    opcache.jitno valueno value
    opcache.jit_bisect_limit00
    opcache.jit_blacklist_root_trace1616
    opcache.jit_blacklist_side_trace88
    opcache.jit_buffer_size00
    opcache.jit_debug00
    opcache.jit_hot_func127127
    opcache.jit_hot_loop6464
    opcache.jit_hot_return88
    opcache.jit_hot_side_exit88
    opcache.jit_max_exit_counters81928192
    opcache.jit_max_loop_unrolls88
    opcache.jit_max_polymorphic_calls22
    opcache.jit_max_recursive_calls22
    opcache.jit_max_recursive_returns22
    opcache.jit_max_root_traces10241024
    opcache.jit_max_side_traces128128
    opcache.jit_max_trace_length10241024
    opcache.jit_prof_threshold0.0050.005
    opcache.lockfile_path/tmp/tmp
    opcache.log_verbosity_level11
    opcache.max_accelerated_files1000010000
    opcache.max_file_size00
    opcache.max_wasted_percentage55
    opcache.memory_consumption128128
    opcache.opt_debug_level00
    opcache.optimization_level0x7FFEBFFF0x7FFEBFFF
    opcache.preferred_memory_modelno valueno value
    opcache.preloadno valueno value
    opcache.preload_userno valueno value
    opcache.protect_memoryOffOff
    opcache.record_warningsOffOff
    opcache.restrict_apino valueno value
    opcache.revalidate_freq22
    opcache.revalidate_pathOffOff
    opcache.save_commentsOnOn
    opcache.use_cwdOnOn
    opcache.validate_permissionOffOff
    opcache.validate_rootOffOff
    opcache.validate_timestampsOnOn

    zip

    Zip enabled
    Zip version 1.22.3
    Libzip version 1.7.3
    BZIP2 compression Yes
    XZ compression No
    ZSTD compression No
    AES-128 encryption Yes
    AES-192 encryption Yes
    AES-256 encryption Yes

    zlib

    ZLib Support enabled
    Stream Wrapper compress.zlib://
    Stream Filter zlib.inflate, zlib.deflate
    Compiled Version 1.3
    Linked Version 1.3
    DirectiveLocal ValueMaster Value
    zlib.output_compressionOffOff
    zlib.output_compression_level-1-1
    zlib.output_handlerno valueno value

    Additional Modules

    Module Name

    Environment

    VariableValue
    USER www-data
    HOME /var/www

    PHP Variables

    VariableValue
    $_SERVER['USER']www-data
    $_SERVER['HOME']/var/www
    $_SERVER['HTTP_CF_IPCOUNTRY']US
    $_SERVER['HTTP_CDN_LOOP']cloudflare; loops=1
    $_SERVER['HTTP_CF_CONNECTING_IP']3.12.152.102
    $_SERVER['HTTP_USER_AGENT']Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])
    $_SERVER['HTTP_ACCEPT']*/*
    $_SERVER['HTTP_CF_VISITOR']{"scheme":"https"}
    $_SERVER['HTTP_X_FORWARDED_PROTO']https
    $_SERVER['HTTP_CF_RAY']8e5f0f71ff5022e5-ORD
    $_SERVER['HTTP_X_FORWARDED_FOR']3.12.152.102
    $_SERVER['HTTP_ACCEPT_ENCODING']gzip, br
    $_SERVER['HTTP_CONNECTION']Keep-Alive
    $_SERVER['HTTP_HOST']installphp.info
    $_SERVER['SCRIPT_FILENAME']/var/www/html/installphp.info/index.php
    $_SERVER['REDIRECT_STATUS']200
    $_SERVER['SERVER_NAME']installphp.info
    $_SERVER['SERVER_PORT']80
    $_SERVER['SERVER_ADDR']49.13.92.168
    $_SERVER['REMOTE_USER']no value
    $_SERVER['REMOTE_PORT']35082
    $_SERVER['REMOTE_ADDR']172.71.254.226
    $_SERVER['SERVER_SOFTWARE']nginx/1.24.0
    $_SERVER['GATEWAY_INTERFACE']CGI/1.1
    $_SERVER['REQUEST_SCHEME']http
    $_SERVER['SERVER_PROTOCOL']HTTP/1.1
    $_SERVER['DOCUMENT_ROOT']/var/www/html/installphp.info
    $_SERVER['DOCUMENT_URI']/index.php
    $_SERVER['REQUEST_URI']/install-php-8.1-on-debian-12-bookworm
    $_SERVER['SCRIPT_NAME']/index.php
    $_SERVER['CONTENT_LENGTH']no value
    $_SERVER['CONTENT_TYPE']no value
    $_SERVER['REQUEST_METHOD']GET
    $_SERVER['QUERY_STRING']no value
    $_SERVER['FCGI_ROLE']RESPONDER
    $_SERVER['PHP_SELF']/index.php
    $_SERVER['REQUEST_TIME_FLOAT']1732175127.5231
    $_SERVER['REQUEST_TIME']1732175127

    PHP Credits

    PHP Group
    Thies C. Arntzen, Stig Bakken, Shane Caraveo, Andi Gutmans, Rasmus Lerdorf, Sam Ruby, Sascha Schumann, Zeev Suraski, Jim Winstead, Andrei Zmievski
    Language Design & Concept
    Andi Gutmans, Rasmus Lerdorf, Zeev Suraski, Marcus Boerger
    PHP Authors
    ContributionAuthors
    Zend Scripting Language Engine Andi Gutmans, Zeev Suraski, Stanislav Malyshev, Marcus Boerger, Dmitry Stogov, Xinchen Hui, Nikita Popov
    Extension Module API Andi Gutmans, Zeev Suraski, Andrei Zmievski
    UNIX Build and Modularization Stig Bakken, Sascha Schumann, Jani Taskinen, Peter Kokot
    Windows Support Shane Caraveo, Zeev Suraski, Wez Furlong, Pierre-Alain Joye, Anatol Belski, Kalle Sommer Nielsen
    Server API (SAPI) Abstraction Layer Andi Gutmans, Shane Caraveo, Zeev Suraski
    Streams Abstraction Layer Wez Furlong, Sara Golemon
    PHP Data Objects Layer Wez Furlong, Marcus Boerger, Sterling Hughes, George Schlossnagle, Ilia Alshanetsky
    Output Handler Zeev Suraski, Thies C. Arntzen, Marcus Boerger, Michael Wallner
    Consistent 64 bit support Anthony Ferrara, Anatol Belski
    SAPI Modules
    ContributionAuthors
    Apache 2.0 Handler Ian Holsman, Justin Erenkrantz (based on Apache 2.0 Filter code)
    CGI / FastCGI Rasmus Lerdorf, Stig Bakken, Shane Caraveo, Dmitry Stogov
    CLI Edin Kadribasic, Marcus Boerger, Johannes Schlueter, Moriyoshi Koizumi, Xinchen Hui
    Embed Edin Kadribasic
    FastCGI Process Manager Andrei Nigmatulin, dreamcat4, Antony Dovgal, Jerome Loyet
    litespeed George Wang
    phpdbg Felipe Pena, Joe Watkins, Bob Weinand
    Module Authors
    ModuleAuthors
    BC Math Andi Gutmans
    Bzip2 Sterling Hughes
    Calendar Shane Caraveo, Colin Viebrock, Hartmut Holzgraefe, Wez Furlong
    COM and .Net Wez Furlong
    ctype Hartmut Holzgraefe
    cURL Sterling Hughes
    Date/Time Support Derick Rethans
    DB-LIB (MS SQL, Sybase) Wez Furlong, Frank M. Kromann, Adam Baratz
    DBA Sascha Schumann, Marcus Boerger
    DOM Christian Stocker, Rob Richards, Marcus Boerger
    enchant Pierre-Alain Joye, Ilia Alshanetsky
    EXIF Rasmus Lerdorf, Marcus Boerger
    FFI Dmitry Stogov
    fileinfo Ilia Alshanetsky, Pierre Alain Joye, Scott MacVicar, Derick Rethans, Anatol Belski
    Firebird driver for PDO Ard Biesheuvel
    FTP Stefan Esser, Andrew Skalski
    GD imaging Rasmus Lerdorf, Stig Bakken, Jim Winstead, Jouni Ahto, Ilia Alshanetsky, Pierre-Alain Joye, Marcus Boerger, Mark Randall
    GetText Alex Plotnick
    GNU GMP support Stanislav Malyshev
    Iconv Rui Hirokawa, Stig Bakken, Moriyoshi Koizumi
    IMAP Rex Logan, Mark Musone, Brian Wang, Kaj-Michael Lang, Antoni Pamies Olive, Rasmus Lerdorf, Andrew Skalski, Chuck Hagenbuch, Daniel R Kalowsky
    Input Filter Rasmus Lerdorf, Derick Rethans, Pierre-Alain Joye, Ilia Alshanetsky
    Internationalization Ed Batutis, Vladimir Iordanov, Dmitry Lakhtyuk, Stanislav Malyshev, Vadim Savchuk, Kirti Velankar
    JSON Jakub Zelenka, Omar Kilani, Scott MacVicar
    LDAP Amitay Isaacs, Eric Warnke, Rasmus Lerdorf, Gerrit Thomson, Stig Venaas
    LIBXML Christian Stocker, Rob Richards, Marcus Boerger, Wez Furlong, Shane Caraveo
    Multibyte String Functions Tsukada Takuya, Rui Hirokawa
    MySQL driver for PDO George Schlossnagle, Wez Furlong, Ilia Alshanetsky, Johannes Schlueter
    MySQLi Zak Greant, Georg Richter, Andrey Hristov, Ulf Wendel
    MySQLnd Andrey Hristov, Ulf Wendel, Georg Richter, Johannes Schlüter
    OCI8 Stig Bakken, Thies C. Arntzen, Andy Sautins, David Benson, Maxim Maletsky, Harald Radi, Antony Dovgal, Andi Gutmans, Wez Furlong, Christopher Jones, Oracle Corporation
    ODBC driver for PDO Wez Furlong
    ODBC Stig Bakken, Andreas Karajannis, Frank M. Kromann, Daniel R. Kalowsky
    Opcache Andi Gutmans, Zeev Suraski, Stanislav Malyshev, Dmitry Stogov, Xinchen Hui
    OpenSSL Stig Venaas, Wez Furlong, Sascha Kettler, Scott MacVicar, Eliot Lear
    Oracle (OCI) driver for PDO Wez Furlong
    pcntl Jason Greene, Arnaud Le Blanc
    Perl Compatible Regexps Andrei Zmievski
    PHP Archive Gregory Beaver, Marcus Boerger
    PHP Data Objects Wez Furlong, Marcus Boerger, Sterling Hughes, George Schlossnagle, Ilia Alshanetsky
    PHP hash Sara Golemon, Rasmus Lerdorf, Stefan Esser, Michael Wallner, Scott MacVicar
    Posix Kristian Koehntopp
    PostgreSQL driver for PDO Edin Kadribasic, Ilia Alshanetsky
    PostgreSQL Jouni Ahto, Zeev Suraski, Yasuo Ohgaki, Chris Kings-Lynne
    Pspell Vlad Krupin
    random Go Kudo, Tim Düsterhus, Guilliam Xavier, Christoph M. Becker, Jakub Zelenka, Bob Weinand, Máté Kocsis, and Original RNG implementators
    Readline Thies C. Arntzen
    Reflection Marcus Boerger, Timm Friebe, George Schlossnagle, Andrei Zmievski, Johannes Schlueter
    Sessions Sascha Schumann, Andrei Zmievski
    Shared Memory Operations Slava Poliakov, Ilia Alshanetsky
    SimpleXML Sterling Hughes, Marcus Boerger, Rob Richards
    SNMP Rasmus Lerdorf, Harrie Hazewinkel, Mike Jackson, Steven Lawrance, Johann Hanne, Boris Lytochkin
    SOAP Brad Lafountain, Shane Caraveo, Dmitry Stogov
    Sockets Chris Vandomelen, Sterling Hughes, Daniel Beulshausen, Jason Greene
    Sodium Frank Denis
    SPL Marcus Boerger, Etienne Kneuss
    SQLite 3.x driver for PDO Wez Furlong
    SQLite3 Scott MacVicar, Ilia Alshanetsky, Brad Dewar
    System V Message based IPC Wez Furlong
    System V Semaphores Tom May
    System V Shared Memory Christian Cartus
    tidy John Coggeshall, Ilia Alshanetsky
    tokenizer Andrei Zmievski, Johannes Schlueter
    XML Stig Bakken, Thies C. Arntzen, Sterling Hughes
    XMLReader Rob Richards
    XMLWriter Rob Richards, Pierre-Alain Joye
    XSL Christian Stocker, Rob Richards
    Zip Pierre-Alain Joye, Remi Collet
    Zlib Rasmus Lerdorf, Stefan Roehrich, Zeev Suraski, Jade Nicoletti, Michael Wallner
    PHP Documentation
    Authors Mehdi Achour, Friedhelm Betz, Antony Dovgal, Nuno Lopes, Hannes Magnusson, Philip Olson, Georg Richter, Damien Seguy, Jakub Vrana, Adam Harvey
    Editor Peter Cowburn
    User Note Maintainers Daniel P. Brown, Thiago Henrique Pojda
    Other Contributors Previously active authors, editors and other contributors are listed in the manual.
    PHP Quality Assurance Team
    Ilia Alshanetsky, Joerg Behrens, Antony Dovgal, Stefan Esser, Moriyoshi Koizumi, Magnus Maatta, Sebastian Nohn, Derick Rethans, Melvyn Sopacua, Pierre-Alain Joye, Dmitry Stogov, Felipe Pena, David Soria Parra, Stanislav Malyshev, Julien Pauli, Stephen Zarkos, Anatol Belski, Remi Collet, Ferenc Kovacs
    Websites and Infrastructure team
    PHP Websites Team Rasmus Lerdorf, Hannes Magnusson, Philip Olson, Lukas Kahwe Smith, Pierre-Alain Joye, Kalle Sommer Nielsen, Peter Cowburn, Adam Harvey, Ferenc Kovacs, Levi Morrison
    Event Maintainers Damien Seguy, Daniel P. Brown
    Network Infrastructure Daniel P. Brown
    Windows Infrastructure Alex Schoenmaker
    Debian Packaging
    Ondřej Surý

    PHP License

    This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE

    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact [email protected].

    " | sudo tee /var/www/html/info.php
  4. Access the PHP info file in a web browser:

    Open http://your_server_ip/info.php to view detailed PHP configuration information.