Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Requirements on Docker #347

Open
sh-at-bergnet-de opened this issue Aug 3, 2023 · 1 comment
Open

Question: Requirements on Docker #347

sh-at-bergnet-de opened this issue Aug 3, 2023 · 1 comment

Comments

@sh-at-bergnet-de
Copy link

I have written an app with an Excel output. When I use it with DDEV (PHP 8.2, MariaDB 10.6, otherwise default settings) everything works as desired.
However, if I start the app with Docker there are problems opening it in MS Excel. However, 7zip can unzip the file and alternative programs open the file without problems.

The Docker image is based on php:8.2-apache . I suspect an external dependency, so I compared the loaded modules and adjusted some, e.g. bz2, unfortunately without success. In the following list modules that are loaded in DDEV but Docker are not marked with a dot / plus-sign. Maybe someone here has an idea what I need to adjust to make it work?

[PHP Modules]

  • apcu
  • bcmath
    bz2
  • calendar
    core
    ctype
    curl
    date
    dom
  • exif
  • FFI
    fileinfo
    filter
    ftp
  • gd
  • gettext
    hash
    iconv
  • igbinary
  • imagick
    intl
    json
  • ldap
    libxml
    mbstring
  • memcached
  • msgpack
    mysqli
    mysqlnd
    openssl
    pcntl
    pcre
    PDO
    pdo_mysql
  • pdo_pgsql
    pdo_sqlite
  • pgsql
    Phar
    posix
    random
    readline
  • redis
    reflection
    session
  • shmop
    SimpleXML
  • soap
  • sockets
    sodium
    SPL
    sqlite3
    standard
  • sysvmsg
  • sysvsem
  • sysvshm
    tokenizer
  • uploadprogress
    xml
    xmlreader
  • xmlrpc
    xmlwriter
  • xsl
  • Zend OPcache
    zip
    zlib

[Zend Modules]

  • Zend OPcache
@mk-j
Copy link
Owner

mk-j commented Aug 3, 2023

"if I start the app with Docker there are problems opening it in MS Excel".
An xlsx file is just a zip file. Open your xlsx/zip file in a hex editor or text editor and see if there are any php errors before the PK \x50\x4b\x03\x04 header. Its usually php.ini settings like display_errors=On or a /tmp dir issue that corrupt these files.

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

No branches or pull requests

2 participants