php-extension

Helm + Kubernetes, load and enable extensions or modules in PHP

六月ゝ 毕业季﹏ 提交于 2021-02-19 05:59:05
问题 i've problem when i run a php deployment with kubernetes becouse don't load the modules or extensions libraries. My deployment file is this: apiVersion: apps/v1 kind: Deployment metadata: name: php labels: app: php spec: selector: matchLabels: app: php replicas: 1 template: metadata: labels: app: php spec: containers: - name: php image: php:7-fpm env: - name: PHP_INI_SCAN_DIR value: :/usr/local/etc/php/conf.custom ports: - containerPort: 9000 lifecycle: postStart: exec: command: ["/bin/sh","

PHP Windows extensions won´t load

自古美人都是妖i 提交于 2021-02-11 16:46:43
问题 I'm working on a windows server 2008 R2 machine. I have installed apache 2.2 with php 5.4.25 While trying to enable ldap support for the apache server i found out that the server does not load the extensions. I ran php_info() and this was the result Configuration File (php.ini) Path C:\Windows Loaded configuration file: "C:\php\php.ini extension_dir C:\php\ext I have changed the php.ini to load the extensions, but they are not loaded and they are not visible in the php_info dump. I tried to

PHP Windows extensions won´t load

蹲街弑〆低调 提交于 2021-02-11 16:45:14
问题 I'm working on a windows server 2008 R2 machine. I have installed apache 2.2 with php 5.4.25 While trying to enable ldap support for the apache server i found out that the server does not load the extensions. I ran php_info() and this was the result Configuration File (php.ini) Path C:\Windows Loaded configuration file: "C:\php\php.ini extension_dir C:\php\ext I have changed the php.ini to load the extensions, but they are not loaded and they are not visible in the php_info dump. I tried to

failed to install php-extention with pecl on mac( error tips:fail to mkdir /usr/include/php/ext/msgpack)

爷,独闯天下 提交于 2021-02-08 12:15:42
问题 No matter what php extention i install with sudo pecl install xxx , i was failed and got the following error tips: Is there anyone who had the same problem ? 回答1: You must run this as root if you want to install it in that location. If you cannot elevate your rights, then you need to install it elsewhere or ask your admin to do that for you. 来源: https://stackoverflow.com/questions/51484747/failed-to-install-php-extention-with-pecl-on-mac-error-tips-fail-to-mkdir-usr

failed to install php-extention with pecl on mac( error tips:fail to mkdir /usr/include/php/ext/msgpack)

不打扰是莪最后的温柔 提交于 2021-02-08 12:15:36
问题 No matter what php extention i install with sudo pecl install xxx , i was failed and got the following error tips: Is there anyone who had the same problem ? 回答1: You must run this as root if you want to install it in that location. If you cannot elevate your rights, then you need to install it elsewhere or ask your admin to do that for you. 来源: https://stackoverflow.com/questions/51484747/failed-to-install-php-extention-with-pecl-on-mac-error-tips-fail-to-mkdir-usr

Loading a PHP extension at runtime results in Uncaught Error: Call to undefined function dl()

人盡茶涼 提交于 2021-01-28 02:50:54
问题 I am using PHP 7.1.11 I am just trying this function dl() , but it shows an error. I commented php_fileinfo.dll in php.ini and restarted the Apache. I think the problem is not with .dll and so, the problem is with the dl() function. Code: <?php error_reporting(-1); echo phpversion(); echo PHP_OS; if(!extension_loaded('fileinfo')){ dl('php_fileinfo.dll'); } ... Error thrown: 7.1.11WINNT Fatal error: Uncaught Error: Call to undefined function dl() in D:\xampp\htdocs\php\1.php:7 Stack trace: #0

How to add php gd extension to Dockerfile

扶醉桌前 提交于 2020-08-24 08:23:32
问题 I'm getting this error when trying to deploy using alpine: phpoffice/phpspreadsheet 1.2.1 requires ext-gd * -> the requested PHP extension gd is missing from your system. Here's my Dockerfile: FROM php:7.2-alpine RUN apk update RUN apk add zlib-dev gd php7-gd RUN docker-php-ext-install sockets pdo_mysql zip RUN apk add --no-cache libpng libpng-dev && docker-php-ext-install gd The error is an output from a jenkins run. I think it's failing somewhere around here... build: docker run --rm --tty

How to add php gd extension to Dockerfile

北慕城南 提交于 2020-08-24 08:23:11
问题 I'm getting this error when trying to deploy using alpine: phpoffice/phpspreadsheet 1.2.1 requires ext-gd * -> the requested PHP extension gd is missing from your system. Here's my Dockerfile: FROM php:7.2-alpine RUN apk update RUN apk add zlib-dev gd php7-gd RUN docker-php-ext-install sockets pdo_mysql zip RUN apk add --no-cache libpng libpng-dev && docker-php-ext-install gd The error is an output from a jenkins run. I think it's failing somewhere around here... build: docker run --rm --tty