Tagged Questions
1
vote
1answer
12 views
How to tell php-fpm to send php error log to the nginx error log?
When I am using apache/mod_php, the PHP error will appear in the apache's error log.
Now, I am using php-fpm with nginx via fcgi, is it possible to have the PHP error log in the nginx error log as ...
0
votes
2answers
34 views
Can't get php-fpm with Nginx to work
Server: CentOs x86_64
/etc/php-fpm.d/webuser1.conf
[webuser1]
listen = 127.0.0.1:9001
listen.allowed_clients = 127.0.0.1
user = webuser1
group = webuser1
pm = dynamic
pm.max_children = 15
...
0
votes
1answer
29 views
Making Nginx send 4xx/5xx errors from PHP-FPM
I have Nginx setup to reverse proxy all files ending in .php. In some scripts, I check for parameters and send "406 Not Acceptable" as a generic error which needs to be picked up on jQuery/from Ajax. ...
0
votes
1answer
26 views
PHP-FPM Loading Wrong Configuration File
Value of CLI running php --ini
Configuration File (php.ini) Path: /usr/local/lib
Loaded Configuration File: /usr/local/lib/php.ini
Value of phpinfo from my nginx/php-fpm web server page:
...
0
votes
1answer
46 views
How do I set a PHP-FPM variable inside a nginx location block?
For some reason our website has one .jsphp file that needs to be handed to the PHP-FPM.
However, access will be denied because by default PHP-FPM only allows an extension of .php.
This can be solved ...
1
vote
2answers
95 views
PHP-FPM is not displayed in phpinfo()
I have installed php-fpm on Centos + Apache using this manual - http://www.howtoforge.com/using-php5-fpm-with-apache2-on-centos-6.2-p2 but PHP-FPM is not displayed in phpinfo(). And I cannot figure ...
0
votes
1answer
81 views
Apache + PHP-FPM + chroot results “File not found.” error
I want to set chroot to the DocumentRoot using PHP-FPM pools' chroot attribute. With the settings below, whatever I do I get only a "File not found." error:
/etc/php5/fpm/pool.d/example.conf
...
0
votes
0answers
30 views
nginx + php-fpm creates additional blank php session on each load
When using 'try_files' or 'rewrite' (like below) to redirect all paths to the base index.php file, it always creates a new (and blank) php session in the background whenever using session_start();.
...
0
votes
2answers
62 views
Nginx, PHP-FPM and multiple domains
I'm new to nginx and php-fpm.
My question: Do I need to create two php-fpm config files or just one?
Can both nginx config (different domain/app) point to the same php socket? If so will it cause ...
0
votes
4answers
78 views
Apache2 Proxy timeout
I have Apache2 with PHP + PHP-FPM configured according to:
http://wiki.apache.org/httpd/PHP-FPM
I am writing a script that will take a long time to execute on an internal Vhost, but keep getting ...
0
votes
0answers
42 views
One or separate pools for nginx+phpFPM
Need advise regarding pools config for server running nginx+phpFPM.
This is a dedicated low cost server - Intel Atom D425 with 2 Gb ram.
I plan to move 30 WordPress websites there, so need to ...
0
votes
1answer
33 views
Security implications of running Apache with php5-fpm as user:user
I just set up VPS to run Apache with php5-fpm which is set to run every user pool as user:user.
Reason for this is simply to allow users to actually own their own files created by various CMS ...
0
votes
1answer
30 views
php-fpm SERVER_NAME sub-domains using NGINX
In my PHP app:
die($_SERVER['SERVER_NAME']);
The request:
sub1.example.com
The result:
example.com
My NGINX config:
server
{
server_name .example.com;
access_log ...
0
votes
0answers
39 views
UBUNTU/NGINX/PHP downloading a PHP file not executing
I'm having problems with my PHP in Nginx. I have installed PHP5 and PHP5-fpm using apt-get but instead of executing PHP files, they are downloaded in my browser. I have edited
...
1
vote
1answer
124 views
php-fpm or nginx capping out?
I'm using blitz.io to basically blast my site with traffic to see how my 'learning sysadmin' holds up under load. I realize this is as effective or relevant to real-world as a sledgehammer, but I ...
0
votes
2answers
55 views
How can I set memory limit and execution timeout for a specific IP address using php-fpm and nginx?
I need to set a different timeout and execution time for a third party server that needs to import the products and prices on my database.
Right now, they are telling me the php script is timing out. ...
0
votes
1answer
83 views
nginx, php-fpm on diff server bad gateway (and security too)
This is somewhat of a multipart question.
First and foremost, I have 502 bad gateway, but I'm sure that's just because one of these lines I have below is wrong.
Second, I would love to know how I ...
0
votes
1answer
104 views
PHP-FPM Pool, Child Processes and Memory Consumption
In my PHP-FPM configuration I have 3 Pools, the eg: Config is:
;;;;;;;;;;;;;;;;;;;;;;;
; Pool 1 ;
;;;;;;;;;;;;;;;;;;;;;;;
[www1]
user = www
group = www
listen = /tmp/php-fpm1.sock;
...
0
votes
1answer
33 views
PHP-FPM as a dedicated application server?
Just wondering in terms of scalability .. do you reckon PHP-FPM should run on a standalone server or works as well if you run it with NginX on the same server?
0
votes
0answers
53 views
php-fpm taking too much memory
I am using Nginx+PHP-FPM with php 5.3.6 and it was working well for weeks.
A few days before I found out that most of the PHP-FPM children take 3MB but a few children are taking 700MB. The web ...
0
votes
1answer
102 views
How do I enable PHP’s flush() with nginx+PHP-FPM?
I’m using nginx with PHP-FPM (APC is installed).
I need PHP’s flush() to work. Is this possible?
Things I’ve tried so far:
Disabling all output buffering in php.ini, as well as output compression.
...
0
votes
1answer
91 views
White screen of death with PHP-FPM, no error logged
This is a tale of two different php files.
File 1 source:
<?php $null->test();
File 1 output:
Fatal error: Call to a member function test() on a non-object in
...
0
votes
1answer
203 views
Using Zend Optimizer+ with php-fpm + nginx
Note: I am talking about a component previously in Zend Server, but is now a standalone module and open-sourced, and will be bundle with PHP 5.5, it has performance/usability edge over the more widely ...
0
votes
1answer
390 views
Nginx and PHP-FPM 403 Forbidden
I'm using Nginx with PHP-FPM. The requested page is displayed, but firebug shows that the paths to the CSS, JS, and images are returning 403 Forbidden error which breaks the styling.
Taking a look at ...
0
votes
1answer
158 views
Nginx + PHP-FPM produce 502 bad gateway instead of fatal error?
I'm currently testing Symfony2 with Nginx and PHP-FPM. I also use Xdebug.
Symfony2 comes with a Demo bundle, I wanted to test the new handling of fatal errors which comes with Symfony 2.2.0 by ...
0
votes
2answers
116 views
PHP-FPM with apache
Is it possible to run PHP-FPM with Apache or is that a nginx only option?
Looking for ways to use apache and keep .htaccess but gain better php performance like able to take more reqs per sec.
...
1
vote
0answers
69 views
What is the correct way to log PHP script's execution time and memory usage?
I want to monitor the execution time and memory usage for my web application running on Nginx + FPM. To that end, I am generating execution time and memory data in the page footer. I can also insert ...
3
votes
1answer
290 views
Segfault PHP-FPM, Nginx, Freebsd
We are experiencing CPU shortage at high-load. It only happens at some point when online users are around 1300-1400 (according google analytics). We are receiving Empty Response in browser.
It seems ...
0
votes
1answer
32 views
Switching b/w versions of PHP on a NginX + PHP-FPM Setup
On Apache you could easily configure it through an htaccess file:
<IfModule mod_fcgid.c>
Action php-fcgi /fcgi-bin/phpcgi-starter-5.3
</IfModule>
<IfModule mod_fcgid.c>
Action ...
0
votes
1answer
73 views
Compiling / installing up-to-date nginx with fastcgi_cache on Ubuntu 12.04?
What is the recommended path to compile or install nginx with fastcgi_cache on Ubuntu 12.04 LTS precise that works with up-to-date nginx-common (read >= ver 1.2.7) packages?
Or is there a method to ...
1
vote
3answers
443 views
Error configuring and installing PHP 5.3.21 on Ubuntu 12.04
I'm trying to install PHP 5.3.21 on a Rackspace Cloud Server running Ubuntu 12.04 but I keep running into errors during configure. It keeps giving me the following error:
configure: error: Cannot ...
0
votes
2answers
188 views
Is it possible to tell nginx over fastcgi to pass a Connection: close header through unaltered?
TL;DR: How can I tell nginx from my php-fpm backend to a) send a "Connection: close" header and b) to not buffer my response?
I have a set up running php-fpm behind nginx. In general, this works very ...
1
vote
1answer
183 views
php5-fpm not responding
I've migrated to php5-fpm on nginx setup ~2 months ago. Everything was fine until a few days ago, when I noticed my php websites not responding (the browser would simply just wait for data and ...
0
votes
1answer
108 views
php script killed after 30 seconds and throwing Internal Server Error
I use php_fpm_event on my server and after 30 seconds of execution the process is being killed and I see Internal Server Error.
However I've set much larger values:
[admin]
listen = 127.0.0.1:57797
...
0
votes
3answers
467 views
Make PHP-FPM Listen at 'IPAddress:Port' Instead of '/var/run/php5-fpm.sock;'
As I was load testing my site today (using blitz.io); despite lots of RAM (more than 50%) and CPU power (over 70%) available, results showed that my site started timing out at a certain number of ...
0
votes
1answer
362 views
php-fpm Bad file descriptor errors
I'm using php-fpm with customer separate pools.
Sometimes page are freezing, then showing 500 internal server error, and I'm getting such errors in error log:
[11-Feb-2013 22:12:39] ERROR: unable to ...
0
votes
1answer
274 views
apr_socket_recv: Connection timed out (110)
I have nginx/php-fpm running but I am getting the following:
apr_socket_recv: Connection timed out (110)
This is a massive big box. 16 cores/24GB RAM
What do I need to tune to increase the allowed ...
0
votes
1answer
63 views
nginx - php-fpm: access restrictions for some php pages
I have a folder containing some PHP files served with php-fpm (fastcgi); inside tihs folder, I have a file which I want to be allowed for internal IPs and deny for external.
The problem I have is ...
0
votes
0answers
16 views
Nginx+php-fpm High consumption of cached memory [duplicate]
Possible Duplicate:
Why is Linux reporting “free” memory strangely?
Graphic memory usage:
Debian 6
# uname -srm
Linux 2.6.32-5-amd64 x86_64
# php -v
PHP 5.3.20-1~dotdeb.0 with ...
0
votes
0answers
122 views
Adding Nginx caching returns every not-found for every asset
I set Nginx and PHP-FPM for my vhosts.
I want a simple caching using Nginx. I followed this link for some tips and trick. But when I came to this part
location ~* ...
0
votes
2answers
192 views
How to install PHP FPM on CentOs 5.6
I am trying to install PHP FPM on my CentOS 5.6 server, but I wasn't able to get it to work. After downloading PHP 5.3.20 from their php.net, configuring it, making it and installing it, I got this ...
1
vote
1answer
79 views
Blank PHP pages when using php-fpm and nginx on a Debian VPS
I keep receiving a blank page whenever I try to access a PHP page on my nginx webserver on a Debian VPS. nginx is working fine; I can access any normal HTML page. PHP-FPM is at least running, as I can ...
1
vote
0answers
79 views
Nginx + PHP-FPM very slow on Mountain Lion [closed]
I have set up Nginx with PHP-FPM on my MacBook running ML. It works fine but it takes between 5 and 10 seconds to connect when I run a page in my browser. Even the following PHP script:
<?php
...
1
vote
2answers
209 views
Installing php-fpm over php version missmatched
I have PHP installed by yum from the base @updates repository on Centos 6.3:
php x86_64 5.3.3-14.el6_3 @updates 3.5 M
I would like to install php-fpm version 5.3 because our web software works ...
0
votes
1answer
46 views
Nginx - Config help for multiple sites
I have split my sites up into different configuration files to keep things more organised. This also allows me to take out individual config files and make sites unavailable.
My config file for each ...
1
vote
1answer
206 views
A stock install of Moodle doesn't seem to run on CentOS or RHEL 6.3
I've got a clean instance of CentOS and a clean instance of RHEL 6.3 - I've tried to installed Moodle on both.
Error: Database connection failed
It is possible that the database is overloaded or ...
1
vote
2answers
66 views
nginx config error - PHP files download
Whilst trying to fix a different issue, and clean up my config files, I've caused a problem. I have 2 domains binded to a site, but now, whenever I visit domain1, it downloads the php file as ...
1
vote
2answers
101 views
nginx and php-fpm - Cannot write PHP error log
I am using Nginx and PHP-FPM on Linux. I am not sure whether the issue is that PHP is not writing to the location specified in the PHP.ini, or if it just isn't working at all.
Some of the logs ...
0
votes
0answers
110 views
Handling file upload with nginx+php-fpm with accelerated file upload support
I have been trying to get accelerated file upload to work with nginx for a while now and I can't figure out what I'm doing wrong. (Basically in order to support huge uploads without increasing the ...
0
votes
1answer
95 views
How to config PHP libxml path after updated libxml from 2.2.26 to 2.9
our servers need to update the libxml2 version from 2.2.26 to 2.9 (latest version). It is no problem that we have been installed the libxml2-2.9 version on our servers. but the problem is how can we ...
