Tagged Questions
3
votes
1answer
113 views
Apache 2.4 with PHP-FPM .htaccess redirection
I have Apache 2.4 set up with PHP-FPM on a server. To pass from Apache to PHP-FPM I use the following:
ProxyPassMatch ^/(.*\.php)$ fcgi://127.0.0.1:9001/hosting_files/site.com/admin_secure/$1
...
0
votes
1answer
66 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
96 views
I am unable to install php5-apc on my Ubuntu server
I am unable to install php5-apc.
I don't seem to get any errors.
root@applications-server-1:~# aptitude install php5-apc
The following NEW packages will be installed:
php5-apc{b}
0 packages ...
0
votes
0answers
91 views
NginX & PHP-FPM ignoring session files
I have just manually installed a Debian 6 box with nginX 1.2.0 & PHP5-FPM 5.3.20
For some reason, I cannot get sessions to work in PHP.
In /etc/php5/fpm/php.ini I have:
session.save_handler = ...
0
votes
1answer
30 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
103 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
1answer
108 views
PHP5-FPM and 'ondemand'
I've set up a server with Nginx and PHP5-FPM, and things are running fine. However, as I add more and more sites to the server I see that the memory usage steadily increases, and I've come to the ...
0
votes
1answer
256 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
0answers
103 views
Install php ID3 on Centos 6.3 Php 5.4
Is it still possible to install the ID3 tools in php5.4 on Centos6?
I tried following the instructions here
http://php.net/manual/en/id3.installation.php
but I don't really have a php/ext ...
0
votes
1answer
195 views
Nginx editing php.ini changes no reflecting
phpinfo says the file location is /etc/php5/fpm/php.ini.
Additional .ini files parsed /etc/php5/fpm/conf.d/curl.ini, /etc/php5/fpm/conf.d/gd.ini, /etc/php5/fpm/conf.d/mcrypt.ini, ...
1
vote
1answer
102 views
Set global handling for PHP scripts in NGINX + PHP-FPM
I have to define fastcgi_pass for every virtual host. How do I define it global-wise?
server {
listen 80;
server_name www.domain.tld;
location / {
root ...
0
votes
1answer
1k views
Unable to install PHP-FPM on Apache (Failed to connect to FastCGI server)
I have been having problem installing php-fpm for use with apache2-mpm-worker. This is the guide that I am following.
According to the guide's Step 5,
Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
...
3
votes
2answers
515 views
PHP-FPM chroot with chdir
I am trying to setup a site inside of a PHP-FPM chroot. My paths are as follows:
chroot = /var/www/
chdir = www/
The chroot works just fine without chdir. But when I add chdir I get this error on ...
2
votes
3answers
596 views
php-fpm version 5.4 with nginx constantly restarting
I just upgraded my php version from 5.3.x to 5.4.x and since doing this - memory has dropped signifincantly! - however, I'm constantly getting these in my php5-fpm.log:
[18-Sep-2012 15:11:34] ...
0
votes
1answer
966 views
Installing PHP-FPM (PHP 5.4) on Ubuntu with NGiNX
Here is the cmd:
pecl install apc
Result:
downloading APC-3.1.9.tgz ...
Starting to download APC-3.1.9.tgz (155,540 bytes)
.................................done: 155,540 bytes
54 source files, ...
0
votes
1answer
139 views
PHP header redirect working in nginx even output sent
note: There is a similar question but that's about Apache.
The following code
<?php
echo '.';
header('Location: http://stackoverflow.com');
is fully 'working' under nginx 0.7.67 where 'working' ...
3
votes
2answers
1k views
pecl install mongo - keeps compiling with wrong module API
Working with Ubuntu 12.04 here, nginx and php5-fpm
I had mongo working well on php 5.3, then I added the ondrej/php5 ppa and updated to php5.4. It kept GD and CURL extensions, but not mongo. I ...
0
votes
0answers
210 views
Recursive redirects with FastGI+FPM on Apache2
I am using Drupal 6 on an Apache2 server with PHP 5, Varnish 3, APC and memcache. OS is Ubuntu 12.04
I am trying to get FastCGI and PHP-FPM working with my configuration and have installed the same ...
1
vote
2answers
1k views
I/O Error with PHP5-FPM, ptrace(PEEKDATA) failed
I got a lot of these:
[NOTICE] child 19214 stopped for tracing
[NOTICE] about to trace 19214
[ERROR] ptrace(PEEKDATA) failed: Input/output error (5)
[NOTICE] finished trace of 19214
[WARNING] ...
0
votes
1answer
491 views
Setting php values in php-fpm confs instead of php.ini
I'd like to set values in php-fpm conf files what are normally set in php.ini. I'm using nginx.
I've created the following setting, but I'm not sure if this would work.
php_value[memory_limit] = 96M
...
0
votes
1answer
135 views
Deploying concrete5 on nginx
I have a concrete5 site that works 'out of the box' in apache server. However I am having a lot of trouble running it in nginx.
The following is the nginx configuration i am using:
server {
root ...
1
vote
1answer
1k views
I want to install php 5.3.9 in ubuntu 12.04 via apt-get - what repository should I add?
I want to install php 5.3.9 in ubuntu 12.04 via apt-get.
apt-cache show php5-fpm
only lists 5.3.10-1ubuntu3.1 and 5.3.10-1ubuntu3. There is a critical bug in 5.3.10 ( ...
0
votes
3answers
121 views
PHP using lots of memory/time outside of script?
I'm working with a site that was built in Drupal and generally runs well. After some optimization it takes 20-75MB of memory and 0.5-2s for most requests. But once in a while it will take 15-20s and ...
1
vote
1answer
911 views
How to free PHP-FPM memory?
There are several discussions complaining high memory usage of PHP-FPM, without any practical approach to overcome. As I explored the problem with numerous tests, the problem is related to the age of ...
1
vote
1answer
166 views
PHP 5.3.8 doesn't load module xapian.so
I have web server on fedora 16 nginx + php-fpm (PHP 5.3.8),all installed with yum from standard repo. I'm trying to use xapian.so module so I istalled php-xapian and added extension=xapian.so to my ...
1
vote
1answer
255 views
Intermittent error 404 during higher loads. (nginx/php/apc/mysql)
I have a 4 cpu core VPS with 4GB ram. It is running Ubuntu 10.04 with nginx/0.7.65, PHP 5.3.2, and MySQL. I use php5-fpm for the communication to nginx. I also have php5-apc complimenting with php ...
2
votes
0answers
469 views
PHP5-FPM does not create unix socket directory within /var/run
I've set up my php5-fpm to bind to a unix domain socket within /var/run/php5-fpm.
/etc/php5/fpm/pool.d/www.conf
listen = /var/run/php5-fpm/$pool.sock
The problem is that it will not automatically ...
1
vote
1answer
1k views
php5 fpm: how do you generate core dump from segfault?
Under load, my PHP5-fpm (on 32bit ubuntu 10.10) produces segfaults like the following:
kernel: [4881937.884863] php5-fpm[2638]: segfault at 4204eb41 ip 0832d235 sp bfcea5e0 error 4 in ...
1
vote
1answer
615 views
NGINX + PHP5-FPM segfaults under high load!
I have been dealing with this problem all day and it is driving me insane. All Google results and searches here lead to dead ends. I hope someone can work with me to provide a solution for myself ...
1
vote
0answers
539 views
FastCGI connection refused on port 9000
I have a site running PHP 5.3.2 + PHP-FPM and Nginx 0.7.65 and rebooted the server after changing the root password. The web server starts up fine, but the site doesn't come up and the only clue I ...