Skip to content

fix: enhance phpinfo caddy snippet output bystripping the html stuff#730

Merged
lgersman merged 3 commits intodevelopfrom
fix/caddy-phpinfo
Feb 2, 2026
Merged

fix: enhance phpinfo caddy snippet output bystripping the html stuff#730
lgersman merged 3 commits intodevelopfrom
fix/caddy-phpinfo

Conversation

@lgersman
Copy link
Contributor

@lgersman lgersman commented Jan 29, 2026

Description

caddy phpinfo output is now only the text instead of html :

PHP 8.3.30 - phpinfo()
PHP Version 8.3.30
System Linux c192b8f66d3f 6.14.0-37-generic #37~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 20 10:25:38 UTC 2 x86_64 
Build Date Jan 16 2026 23:26:22 
Build System Linux - Docker 
Build Provider https://github.com/docker-library/php 
Configure Command  './configure'  '--build=x86_64-linux-gnu' '--sysconfdir=/usr/local/etc' '--with-config-file-path=/usr/local/etc/php' '--with-config-file-scan-dir=/usr/local/etc/php/conf.d' '--enable-option-checking=fatal' '--with-mhash' '--with-pic' '--enable-mbstring' '--enable-mysqlnd' '--with-password-argon2' '--with-sodium=shared' '--with-pdo-sqlite=/usr' '--with-sqlite3=/usr' '--with-curl' '--with-iconv' '--with-openssl' '--with-readline' '--with-zlib' '--disable-phpdbg' '--with-pear' '--with-libdir=lib/x86_64-linux-gnu' '--disable-cgi' '--with-apxs2' 'build_alias=x86_64-linux-gnu' 
Server API Apache 2.0 Handler 
Virtual Directory Support disabled 
Configuration File (php.ini) Path /usr/local/etc/php 
Loaded Configuration File /usr/local/etc/php/php.ini 
Scan this dir for additional .ini files /usr/local/etc/php/conf.d 
Additional .ini files parsed /usr/local/etc/php/conf.d/docker-php-ext-bcmath.ini,
/usr/local/etc/php/conf.d/docker-php-ext-exif.ini,
/usr/local/etc/php/conf.d/docker-php-ext-gd.ini,
/usr/local/etc/php/conf.d/docker-php-ext-imagick.ini,
/usr/local/etc/php/conf.d/docker-php-ext-intl.ini,
/usr/local/etc/php/conf.d/docker-php-ext-mysqli.ini,
/usr/local/etc/php/conf.d/docker-php-ext-opcache.ini,
/usr/local/etc/php/conf.d/docker-php-ext-sodium.ini,
/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini,
/usr/local/etc/php/conf.d/docker-php-ext-zip.ini,
/usr/local/etc/php/conf.d/error-logging.ini,
/usr/local/etc/php/conf.d/opcache-recommended.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.*, convert.iconv.*, string.rot13, string.toupper, string.tolower, convert.*, consumed, dechunk
This program makes use of the Zend Scripting Language Engine:Zend Engine v4.3.30, Copyright (c) Zend Technologies
    with Zend OPcache v8.3.30, Copyright (c), by Zend Technologies
    with Xdebug v3.5.0, Copyright (c) 2002-2025, by Derick Rethans
...

Checklist

  • Acceptance Criteria are fulfilled (or there is no ticket)
  • tests added if necessary
  • docs added if necessary

manual testing

  • done / trivial change (docs, ...)
  • requested
    Please replace this line with instructions on how to test your changes

Reviewer checklist

  • if requested manual testing done
  • sufficient tests
  • sufficient docs
  • general Code Review

@lgersman lgersman merged commit 30918e1 into develop Feb 2, 2026
4 checks passed
@lgersman lgersman deleted the fix/caddy-phpinfo branch February 2, 2026 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants