1
vote
0answers
20 views

php5-fpm doesn't create sockets for pools

I'm going off of section 3.1 of http://www.howtoforge.com/php-fpm-nginx-security-in-shared-hosting-environments-debian-ubuntu . I have created a directory in /var/run which www-data:www-data has ...
1
vote
2answers
98 views

tune up performance nginx php-fpm mysql

I am running a nginx+php-fpm+mysql on virtual server with 8 cores and 16G ram My aplication is a simple API provider server, which returns JSONs generated from mysql database on requests. Datasets are ...
0
votes
2answers
155 views

Nginx PHP-fpm permission

When i'm setting the user in nginx.conf to root root: user root root; then my website is working, but when i set it to nginx nginx i get error in the logs: connect() to ...
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
1answer
48 views

How to set umask for php-fpm in fedora 19

I cannot find where to set umask (to set proper permissions to files created by php scripts) in Fedora 19. (specifically, I want new files to have the permissions 664)
3
votes
2answers
376 views

php5-fpm maxes out all cores (nginx+php5fpm+wordpress)

We have a 16 gig linode running with 8 cpu cores and I'm trying to debug an issue that when I try a load test that the server starts to freak out around 250 requests a second on a pretty basic ...
0
votes
3answers
145 views

Reduce system load when using image processing via php-fpm/nginx

We have a PHP image api written in Code Igniter that's based on imagemagic. We have the api behind nginx/php-fpm. We know the Imagemagic part is heavy, but we try to make the overal throughput higher ...
1
vote
1answer
285 views

What is the difference between using upstream and location for php-fpm?

I've been searching around but couldn't find a straight answer, if someone could please clarify this, would be greatly appreciated, thanks! location ~ \.php$ { try_files $uri = 404; ...
-1
votes
1answer
185 views

File Permission on /var/www/html [closed]

I changed the file permission. Now I am not able to access the website. nginx + php-fpm previously, chown -R user1:user1 /var/www/site.com I read in internet, and then i changed the file ...
1
vote
1answer
111 views

Index file redirects in nginx

Scenario I have a website with the following structure: /index.html /about/index.html /contact/index.php /contact/send_email.php I would have liked to make the URL's cleaner, so I would be the ...
1
vote
2answers
898 views

How can i find out why my php5-fpm failed to start?

i get 504 gateway timeout when i try to reach my server a small check didn't find any logs on php5-fpm logs, but just to make sure, i tried to restart it. when i'm trying to restart it: sudo service ...
3
votes
2answers
193 views

PHP Upload File leads to blank page

I have the following code: <html> <body> <form action="upload_file.php" method="post" enctype="multipart/form-data"> <label for="file">Filename:</label> <input ...
-1
votes
2answers
126 views

Installing php extension with yum [closed]

I'm very new to Linux and yum. I need to install a php extension (ioncube loader) using yum, but I'm not sure how exactly this is done. I'm going off this article, which tells me I need to run the ...
-1
votes
2answers
2k views

Recommendation for PHP-FPM pm.max_children, PHP-FPM pm.start_servers and others [closed]

I have the following server: Intel® Xeon® E3-1270 v2 Single Processor - Quad Core Dedicated Server CPU Speed: 4 x 3.5 Ghz w/ 8MB Smart Cache Motherboard: SuperMicro X9SCM-F Total Cores: 4 Cores + 8 ...
0
votes
2answers
157 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
1answer
1k 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
922 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
2answers
136 views

Nginx serving off the wrong root

I have 2 sites-enabled, with server_name as follows: server_name www.mysite.com mysite.com and server_name dev.mysite.com Problem: When I access the website via its IP address, by looking at the ...
2
votes
1answer
144 views

Overhead of many php-fpm processes on Linux?

I'm migrating the configuration of a webserver that runs PHP applications using PHP-FPM behind nginx. The server has about 40-50 (and growing) vhosts on it. The server is a single CPU VM with 1GB of ...
0
votes
1answer
57 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
443 views

PHP-FPM does not automatically start after reboot

I'm running PHP-FPM and Nginx, occasionally, for whatever reason, I have to reboot the server. Once the server is running again, the nginx service automatically starts, however, PHP-FPM does not. This ...
1
vote
2answers
100 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
2k views

nginx, php5-fpm crashing

I have a big problem. I have site with nginx and php5-fpm installed it all works great but about one time(sometimes two times, or at all) in a day php5-fpm crashing. I don't know why. I tried many ...
1
vote
2answers
364 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 ...
3
votes
1answer
435 views

Installing checkinstall on x86_64 bit

I downloaded the source for check install. checkinstall-1.6.2.tar.gz. I then tar -xzvf checkinstall-1.6.2.tar.gz Then I make. It prints this error: [root@ip-50-63-180-135 checkinstall-1.6.2]# ...
2
votes
1answer
269 views

Linux Nginx + php-fpm + cron + mysqld = always out of memory

I don't get it. I have a VPS with Nginx and php-fpm and MySQL. Should be very lightweight. No Apache, right? When I reboot, it is very lightweight. ~ 50/481 MB MEM usage. Very acceptable IMO. And ...
1
vote
1answer
190 views

nginx clean url router/rewrites

im having difficulties with a relativity simple rewrite rules / router in nginx config. All I want to do is, if requested dir or file 'host/my/request/path[/[index.php]]' does not exist, rewrite to ...
0
votes
2answers
256 views

Launching FPM pool as superuser / reflecting root access

I'm building a NAS control application with PHP, that can be only accessed from the local network. I'll start it off with that PHP-FPM does not allow to launch it's pools with user root, and I have ...
5
votes
1answer
947 views

Setting $PATH for weberver user

I tried to add $PATH for all users including the webserver user (i.e. www-data) with different methods such as editing /etc/profile, /etc/environment, etc. In all cases, it works in terminal, but not ...
1
vote
1answer
311 views

PHP-FPM timezone in the log files

The PHP-FPM logs have different timezone. The time in the PHP-FPM logs is one hour behind the system time. Is there any option to configure time/zone in the PHP-FPM? System: CentOS # date Mon Jul 9 ...
2
votes
1answer
4k views

How to configure php-fpm to log logs to log files configured in nginx virtualhosts

I have Fedora 16 with nginx and php-fpm. Everything is working very good. All logs with php notice,warnig error etc. are in /var/log/php-fpm/www-error.log. Is there a way to configure php-fpm to write ...
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 ...
0
votes
1answer
37 views

On my webserver, opinion/advice on automatically adding php-fcgi users?

I am not 100% sure of how to actually add users, however I am choosing Apache over other backends finally and that may be easier. From what I can gather, adding an fcgi user would mean adding a Linux ...
0
votes
2answers
172 views

php 5.3.6 is php-fpm included?

I just did a yum install of php on amazon linux beta. (it's similar to centos, jfyi) php -v reveals its php 5.3.6. awesome so. Now I am trying to figure out if I can package install the php-fpm. ...
1
vote
0answers
643 views

Connection reset by peer

I have found this error on my NGINX error.log: 2011/05/09 23:33:52 [error] 22145#0: *1158 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: ...
0
votes
1answer
427 views

PHP-FPM wasting CPU 100%

I ran ab -n 100 -c 10 http://www.mywebsite.com/category/page to test the lighttpd-php-fpm performances. In this websites I have installed the last version of wordpress, the server is fast! I'm ...
1
vote
2answers
2k views

Nginx load balance with dedicated php-fpm server

I got server setup with nginx+php-fpm and mysql. I have another server with only installed php-fpm, so wanted to use as load balance. But when I am using this dedicated server with php-fpm as load ...
0
votes
1answer
551 views

Crazy problem with Nginx, PHP5-FPM on Ubuntu

I've been trying to get a domain from shared hosting to my new VPS. Everything was working just 100% fine, and then all of a sudden rewrites stopped working, pictures that should work started ...
2
votes
3answers
5k views

Nginx + Php5-fpm not rendering php files

I've spent hours figuring out how to install Nginx + Ruby Enterprise Edition + PHP5-fpm and MYSQL, finally it is all installed and all seems to have started fine. But for some reason php files are ...
0
votes
1answer
397 views

Why Zend Framework doesn't render layouts after migration?

I'm not sure if this question belongs here or StackOverflow... Some time ago I wrote a web app using Zend Framework and since then it ran flawlessly on a standard shared hosting (lampp stack). I ...