Questions tagged [fpm]

FastCGI Process Manager - an alternative PHP FastCGI implementation with some additional features

PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI implementation with some additional features useful for sites of any size, especially busier sites.

More information can be found on http://php-fpm.org.

503 questions
0
votes
1 answer

I have php errors when display_errors is off

I have several php errors that appear on the page as: Notice: Undefined index I have /etc/php/5.6/fpm/php.ini with display_errors = Off When I set the value to On, I find even more errors on the page. My htaccess file is empty and vHost conf is…
mbyou
  • 104
  • 1
  • 7
0
votes
0 answers

High CPU Load Average Debian

I am getting some warning from my Debian 8 server through nagios about average cpu load where top shows load average: 4.01, 3.66, 3.37 .... Sometimes increased to 5 where it shows critical. i am using php5-fpm and nginx with magento in this…
0
votes
2 answers

Using heroku-fcgi to handle files without a .php extension (Apache)

Overview I'm trying to host a few legacy PHP apps on Heroku with Apache. They all relied on the following deprecated syntax to parse any unknown file types (without the .php extension) as PHP. DefaultType application/x-httpd-php This has been…
sheng
  • 1,226
  • 8
  • 17
0
votes
2 answers

laravel 5.7 redirect with Nginx

I'm sure I'm doing something blindingly obvious.. but I can't see what I'm doing wrong here.. I have a controller function public function extsearch() { return redirect()->away('https://www.dropbox.com'); } The route is fine as I've tested it…
baradhili
  • 514
  • 1
  • 7
  • 27
0
votes
1 answer

Preload php framework and prepare database connection

Is there any way (e.g. with php-fpm) to preload a php script? We use Zend Framework and Doctrine and the initialization of the frameworks takes its time (even with opcache and apcu). So instead of initializing the framework when a HTTP request comes…
0
votes
0 answers

503 error with Symfony 4 and Debug enabled

I have an issue with my Symfony 4.1 project. My server is on PHP FPM 7.2 and Apache 2.4. When i enable the Debug component in a dev environment, i cannot access my application and i have a 503 error. On the apache server, i can see this…
jmleroux
  • 947
  • 6
  • 17
0
votes
2 answers

Handling execution time set by PHP-FPM and PHP file

I have set request_terminate_timeout directive in PHP-FPM pool configuration file which is currently 100s and I'm setting set_time_limit(600) for an individual PHP file. But the issue is that the lowest triggers first so 600s never applies which I…
revo
  • 47,783
  • 14
  • 74
  • 117
0
votes
1 answer

Get Undefined variable in Laravel blade when using PHP-FPM

I have some variables in my blade files, These variables may be empty so I use or when I trying to echo the variable . like this:
but when I run my application I got this error: ErrorException…
MajAfy
  • 3,007
  • 10
  • 47
  • 83
0
votes
0 answers

PHP-FPM + Wordpress: Debug log not working (apache)

Just like topic says. Debug log on wordpress is not working when PHP-FPM is enabled. I found below code somewhere on Stackoverflow but its not working. define('WP_DEBUG', true); if ( WP_DEBUG ) { // Enable Debug logging to the…
0
votes
1 answer

PHP-FPM long polling configuration

Let's say that I have the following configuration for php-fpm: pm = dynamic pm.start_servers = 10 pm.max_children = 400 pm.min_spare_servers = 8 pm.max_spare_servers = 16 pm.process_idle_timeout = 10s Let's also say that every user must have an…
Maurício Giordano
  • 3,116
  • 4
  • 32
  • 60
0
votes
0 answers

Making logs available to Stackdriver from a Custom Kubernetes docker container running Apache and PHP-FPM

We are running a small test cluster of Custom Kubernetes pods on Google cloud, that internally are running Apache and PHP-FPM. The Cluster has the following key config: Master version: 1.10.6-gke.2 Kubernetes alpha features: Disabled Total size: 3…
Jules Cone
  • 11
  • 3
0
votes
1 answer

File upload not working.It gives error 3 every time

Am trying to upload a file using nginx fpm but its keep giving me error 3 Here is the configuration which I set for it. Any idea or suggestion for it? I already did my homework to resolve this problem. I have checked below possibilities as…
Ankit Doshi
  • 1,164
  • 3
  • 21
  • 43
0
votes
1 answer

RPM deletes files after post install script has been run not before it

Problem: there's an RPM (created by FPM package generator) that is supposed to install a new version of our software. In it, a couple of .sh files were removed from default installation compared to the old version of this rpm. Instead, they should…
Zeks
  • 2,265
  • 20
  • 32
0
votes
2 answers

nginx doesn't serve php but downloads

I found a similar question here: Nginx serves .php files as downloads, instead of executing them But unfortunately the answer there doesn't help me. So here goes my story. What Works When I navigate to myipaddress/index.html, the welcome to nginx…
dot
  • 14,928
  • 41
  • 110
  • 218
0
votes
1 answer

Apache2 Not Running

I'm running an Apache2 LAMP server with Ubuntu 18.04 and suddenly without a warning, the Apache stops running. I tried figuring out the problem with sudo service apache2 status and it shows the following: sudo service apache2 status ●…
Anthony Kung
  • 1,025
  • 3
  • 12
  • 22