FPM

mysqli not found in (php-fpm) docker container

99封情书 提交于 2021-02-07 14:27:10
问题 I'm running php:7-fpm in a docker container that is used by my nginx web server. Everything is working nicely except for when I'm trying to instantiate a mysqli connection in my PHP code. I receive the following error: "NOTICE: PHP message: PHP Fatal error: Uncaught Error: Class 'Listener\mysqli' not found in index.php:104 Here's my Dockerfile for building the image, where I explicitly install the mysqli extension: FROM php:7-fpm RUN docker-php-ext-install mysqli It appears to be installed

PATH_INFO in $_SERVER always empty - NGINX + FPM 7.3 + Ubuntu 18.04

自古美人都是妖i 提交于 2021-01-29 11:23:23
问题 I am deploying my web application at DigitalOcean. My environment is: Ubuntu 18.04, PHP + FPM 7.3, NGINX. My routing system is based on the $_SERVER PATH_INFO, but it only returns empty, so I can't access my routes. I already researched the solution and none of StackOverflow worked for me. My default file in /etc/nginx/sites-enabled is: server { listen 80; listen [::]:80; root /usr/share/nginx/my-site/public; index index.php index.html index.htm; server_name localhost; location / { try_files

where is php-fpm getting its config values on osx

梦想与她 提交于 2021-01-27 04:07:17
问题 I'm trying to php-fpm on my osx by running: php-fpm -t and I get this error: [30-Dec-2017 13:36:12] ERROR: failed to open error_log (/usr/var/log/php-fpm.log): No such file or directory (2) [30-Dec-2017 13:36:12] ERROR: failed to post process the configuration [30-Dec-2017 13:36:12] ERROR: FPM initialization failed i don't have that file nor can I create it - even when using sudo: $:/usr $ sudo mkdir var Password: mkdir: var: Operation not permitted so my next big move is to find where

where is php-fpm getting its config values on osx

坚强是说给别人听的谎言 提交于 2021-01-27 04:07:11
问题 I'm trying to php-fpm on my osx by running: php-fpm -t and I get this error: [30-Dec-2017 13:36:12] ERROR: failed to open error_log (/usr/var/log/php-fpm.log): No such file or directory (2) [30-Dec-2017 13:36:12] ERROR: failed to post process the configuration [30-Dec-2017 13:36:12] ERROR: FPM initialization failed i don't have that file nor can I create it - even when using sudo: $:/usr $ sudo mkdir var Password: mkdir: var: Operation not permitted so my next big move is to find where

Why is the opcache not flushed?

感情迁移 提交于 2021-01-04 07:33:42
问题 I use the guzzlehttp/guzzle package in Laravel 8 . After upgrading to PHP 8 , I get: Symfony\Component\ErrorHandler\Error\FatalError: Invalid opcode 117/2/0. in file ../vendor/defuse/php-encryption/src/Core.php on line 412 nginx config: server { listen 80; root /var/www/finex_production/public/; index index.php; server_name ff.loc; location / { try_files $uri $uri/ /index.php?$query_string; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/var/run/php/php8.0-fpm.sock

Why is the opcache not flushed?

对着背影说爱祢 提交于 2021-01-04 07:33:19
问题 I use the guzzlehttp/guzzle package in Laravel 8 . After upgrading to PHP 8 , I get: Symfony\Component\ErrorHandler\Error\FatalError: Invalid opcode 117/2/0. in file ../vendor/defuse/php-encryption/src/Core.php on line 412 nginx config: server { listen 80; root /var/www/finex_production/public/; index index.php; server_name ff.loc; location / { try_files $uri $uri/ /index.php?$query_string; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/var/run/php/php8.0-fpm.sock

FPM - Setting up libfaketime

我们两清 提交于 2020-06-17 09:12:10
问题 I'm running an apache2 server on Ubuntu 18.04 with PHP running as FPM server. I want to use libfaketime (https://github.com/wolfcw/libfaketime) to have a fake time for the server that I can set. I added the following lines to the /etc/apache2/envvars file: export FAKETIME="$(cat /var/www/.faketimerc)" export LD_PRELOAD="/usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1" The file /var/www/.faketimerc contains the fake time I want to use. These settings lead to the right date in the header in

Laravel Valet logs

元气小坏坏 提交于 2020-06-01 04:04:30
问题 I'm using laravel valet to serve sites in my local dev env, which is great. However, there's only one file in the expected location of ~/.valet/Log : ➜ ls ~/.valet/Log nginx-error.log I've tinkered with php-fpm log settings and the nginx log settings, but I'm not sure that I'm even using the right config files, since I suspect that valet installs its own version of PHP and nginx. Can any one tell me where the php / nginx config files for valet would be found, and what specific settings to

Laravel Valet logs

前提是你 提交于 2020-06-01 04:04:11
问题 I'm using laravel valet to serve sites in my local dev env, which is great. However, there's only one file in the expected location of ~/.valet/Log : ➜ ls ~/.valet/Log nginx-error.log I've tinkered with php-fpm log settings and the nginx log settings, but I'm not sure that I'm even using the right config files, since I suspect that valet installs its own version of PHP and nginx. Can any one tell me where the php / nginx config files for valet would be found, and what specific settings to

Laravel Valet logs

不打扰是莪最后的温柔 提交于 2020-06-01 04:04:06
问题 I'm using laravel valet to serve sites in my local dev env, which is great. However, there's only one file in the expected location of ~/.valet/Log : ➜ ls ~/.valet/Log nginx-error.log I've tinkered with php-fpm log settings and the nginx log settings, but I'm not sure that I'm even using the right config files, since I suspect that valet installs its own version of PHP and nginx. Can any one tell me where the php / nginx config files for valet would be found, and what specific settings to