1
vote
1answer
33 views

nginx 404 instead of 403 for empty directory

I have the following config for my nginx server: server { listen 80 default_server; server_name example.com www.example.com; root /var/www/example.com/web; index index.php ...
-1
votes
1answer
130 views

Getting “The page you are looking for is temporarily unavailable. Please try again later”

I have a vps running Ubuntu+LEMP+Varnish. Everything was fine untill I updated the server software. Now I am getting "The page you are looking for is temporarily unavailable. Please try again later" ...
0
votes
0answers
6 views

how to deal with php5-fpm variable appended with REDIRECT_

we are using php5-fpm on a debian wheezy (php5.4), since we used fpm (with libmodfastcgi), all variable added to any .htaccess is prepended with REDIRECT_ . is there any tips to avoid that ? thanks ...
0
votes
0answers
119 views

Either, nginx+php-fpm bad config or nginx+php-fpm cannot handle high query?

I have wordpress installed in my server configured(hopefully with nginx+php-fpm+mariaDB). I am trying to import using wordpress importer a 1.5MB xml file. Everytime I try to upload it using the ...
-1
votes
1answer
37 views

Can't seem to install PHP-FPM5?

I am reading some advice on the internet for a solution to another issue I have. It requires me to change the listen to /var/run/php5-fpm/php5-fpm.sock. I however don't have that folder.. I have a ...
0
votes
2answers
82 views

Php file are not parsed by fastcgi in nginx

I m new to nginx my server block is server { listen 25552; server_name *.example.com; root /usr/share/myPackage; rewrite ^/$ /index.php permanent; location ~ ...
1
vote
0answers
38 views

How can I get openSSL to run on my web server with a PHP5-FPM chroot?

On my web server, I changed the chroot to only have access to the root of my website's home directory as opposed to the rest of the file system, for security purposes. However, I've noticed that since ...
0
votes
1answer
127 views

nginx - CPU usage goes to 100% and php5-fpm stops when processing concurrent requests

I am processing php file with nohup command so that it should run in background. But when I process more than 20 nohup commands then cpu usage goes to 100% and php5-fpm crashes results in connect() ...
0
votes
1answer
41 views

Installing php5-fpm but missing www.conf on ubuntu

I am installing php5-fpm on my ubuntu system but could not able to find www.conf file under pool.d directory. In my /etc/php5/fpm folder, there are only 2 directories - conf.d and pool.d Command ...
1
vote
2answers
451 views

php5-fpm optimization for long polling

I'm designing a chat application in PHP. I use nginx with php-fpm environment. The problem is, that after several clients connected, PHP scripts are getting very slow. I have just several (5-10) ...
0
votes
1answer
409 views

PHP-FPM save sessions in memcached

I'm trying to switch my session_handler to memcached, I'm not sure if it worked, it does not look like it did. vi /etc/php5/fpm/php.ini session.save_handler = memcached session.save_path = ...
2
votes
1answer
735 views

nginx / php-fpm error logging

I'm trying to figure out where the PHP errors are going in my setup. I'm running nginx as the reverse proxy to PHP-FPM, but I'm not seeing the various E_NOTICE or E_WARNING messages my app is ...
0
votes
0answers
84 views

FastCGI sent in stderr: “Primary script unknown” file not found

I have installed nginx and php (fpm). static files are being served fine. I created a simple info.php <?php phpinfo(); I browse to my url http://xx.xx.xx.xx/info.php and see a: File not found. ...
1
vote
0answers
94 views

(111 connection refused) while connecting to upstream

I have a ubuntu 13.10 server with nginx and php5-fpm installed, the server has just been started and as such i am sure it is not a buffer or connection overload issue. I have set the site config in ...
1
vote
1answer
100 views

Rewrite file extensions in NGiNX

I'm looking to show a file like domain.com/login instead of domain.com/login.php My NGiNX site config is: #02API server { # listen 80 deferred; # for Linux # listen 80 accept_filter=httpready; ...
0
votes
1answer
531 views

“php5-fpm: unrecognized service” and other issues after reverting from PPA

Added a repository so that I could move from PHP 5.3 to 5.5 easily in Ubuntu 12.04.3 LTS. After adding the PPA and following most of the suggestions here http://askubuntu.com/a/109544 it seemed that ...
0
votes
2answers
61 views

Nginx not passing uri to php5-fpm, instead serving as text file

as stated above the uri isn't being passed to nginx. I've included the entire "try" block to show this. location / { # First attempt to serve request as file, then # as directory, then fall ...
0
votes
0answers
45 views

Tweak Nginx and PHP-FPM for memroy usage

I switched to nginx to help me with less memory on VPS and High and speedy performance at the same time. But Now I have a problem of memory usage? Even If I add more memory to my VPS at the end of a ...
0
votes
0answers
59 views

nginx + “filename part could not be saved, because the source file could not be read” error?

I am delivering ~ 100-300mb files using the following php code from my nginx setup : header("Pragma: public"); // required header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, ...
0
votes
1answer
221 views

php-fpm unable to restart because of another FPM instance

/etc/init.d/php-fpm restart Stopping php-fpm: [FAILED] Starting php-fpm: [10-Oct-2013 21:24:37] ERROR: An another FPM instance seems to already listen on ...
1
vote
1answer
911 views

Apache 2.4: mod_php vs php-fpm performance

There are plenty of old benchmarks on Apache mod_php vs nginx with php-fpm However, with version 2.4, Apache can use php-fpm. Are there any sensible benchmarks comparing mod_php with php-fpm (both ...
-3
votes
1answer
250 views

Make: *** [processor.out.c] Error 1

CentOS PHP-FPM './configure' '--enable-fpm' '--with-libdir=lib64' '--with-bz2' '--with-curl=/usr/local/lib' '--with-gd' '--with-gettext' '--with-jpeg-dir=/usr/local/lib' ...
0
votes
2answers
73 views

Running multiple versions of PHP under Apache, but requiring modules from .deb file

I have a setup where I've unfortunately hit a version limit between a library package required for an application, and my version of PHP. I'm now running PHP 5.4, but the module is only compatible ...
1
vote
1answer
153 views

Identify Long Running or Slow PHP Scripts

I have web server that is getting around 25K visits a day up at yougetsignal.com. Sometimes the site feels a bit sluggish. I am hosting it on nginx with php5-fpm. Is there a way for me to see a list ...
0
votes
1answer
249 views

php5-fpm pm ondemand and still memory problems

After switching pm from dynamic to ondemand I'm having less problems with memory usage on my 1GB VPS, but it seems that under some high load situations the server still gets stuck. It's an VMWare VPS ...
0
votes
1answer
111 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: ...
5
votes
1answer
893 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
796 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
211 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
1answer
53 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
277 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 ...
1
vote
1answer
866 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 ...
1
vote
1answer
3k 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
548 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
144 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
5k 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
873 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
1k 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
1k 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
307 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' ...
7
votes
2answers
4k 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 ...
1
vote
1answer
5k 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
2k 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
232 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
2k 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
165 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 ...
2
votes
1answer
2k 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
216 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
375 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 ...
3
votes
0answers
1k 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 ...