I'm trying to set up nginx with PHP5 and MySQL on my production VPS. The reason I chose nginx over Apache was because the VPS isn't high spec.
nginx is installed, and is successfully serving static pages like it should.
I'm very much a NGINX and Server Admin beginner.
I used this tutorial to install NGINX / PHP / mySQL / WordPress:
C3M Digital Tutorial
In this tutorial the backend php-cgi setup is configured using fastcgi.
Alright so I will outline how everything is setup and running for me on my dedicated box. I have everything working accept eAccelerator only works on one of my PHP applications.
Apache2
I have Apache2 setup and running with virtualhosts.
So this morning I used aptitude to install a few security updates. Seemed innocent enough until stuff stopped working. Somewhere along the way, a few packages got dropped, I guess. Now PHP (specifically PHP5-FPM) doesn't think it's connected to MySQL and I have no idea why. All packages seem to be installed.
I have PHP5-CGI installed, Apache, and MYSQL installed. Prior to adding these settings, PHP5-CGI would endlessly have >15 processes, each eating up 5 mb of ram. So I added these settings to /etc/apache2/conf.d/php5-fcgid.conf and the PHP5-cgi processes were limited.
I decided to change my OP to Nginx from Litespeed because i read much about the low resource that Nginx would cost.
Im running a Wordpress site with 500 users online
My www.conf in "/etc/php5/fpm/pool.d"
pm.max_children = 200
pm.start_servers = 20
pm.min_spare_servers = 20
pm.max_spare_servers = 60
;pm.process_idle_timeout = 10s;
;pm.max_requests = 1000
Since i changed that config to hig
I have a strange problem with Ansible that I use to install / update / manage my webservers.
I have an installation script that is supposed to make sure that I always have the latest PHP5 module in my Debian 6 / Apache 2 system:
- name: install apache2 and php5
action: apt pkg=$item state=latest
with_items:
- apache2
- php5
- libapache2-mod-php5
- php5-curl
I have Nginx+php5-fpm.
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 create the php5-fpm directory. When I reboot the machine, the directory is gone.
How can I have it automatically created on boot? Or is there an other solution to this problem?