TrafeX / docker-php-nginx

Docker image with PHP-FPM 8.3 & Nginx 1.26 on Alpine Linux
https://hub.docker.com/r/trafex/php-nginx
MIT License
1.37k stars 736 forks source link

Add SimpleXML module #115

Closed nikolaev-rd closed 1 year ago

nikolaev-rd commented 1 year ago

Problem

Error occurred

2023/01/06 21:48:58 [error] 10#10: *39 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function simplexml_load_file() in /var/www/html/public/xml.php:7

when trying to use function simplexml_load_file().

Solution

Add SimpleXML module to image.

TrafeX commented 1 year ago

Hi @nikolaev-rd ,

Thank you for your contribution. The goal of this container is to provide an example with just a small selection of PHP extensions. You probably always need more or other extensions. For that you can just copy or fork this project and modify the container to your needs. That's why I won't be merging in new PHP extensions.