On ubuntu 10.04, I got 99 problems and wordpress w/ nginx, varnish, apc, w3tc, cdn among them.
How do I make php5-fpm work?
I dropped apache. I opted for nginx. I loaded php-fpm. Then, loaded varnish. I grabbed W3 total cache. I haven't installed memcache, apc yet. Site worked.
During the set up, first I followed lemp set up.
http://library.linode.com/lemp-guides/u ... 0.04-lucid
Quote:
apt-get install nginx
then, apt-get install php5-cli php5-cgi psmisc spawn-fcgi
Then, I found cool links. I wanted to squeeze every little ounce of performance on 512.
I used this link
http://danielmiessler.com/blog/optimizi ... -memcachedit had missing elements on the documentation, then I found this one
http://blog.nas-admin.org/?p=25Those two links are similar in content, and one seemed to fill the gap, where the other lacked.
The site works.
I really didn't get any better performance than apache, except memory and cpu cycles. Then, couple days later, the cpu went up from 10% to 60-70% on nginx. More on that later...
I needed to reboot the server anyhow. At that point, I realized the optimization never worked properly. I only realized this when I needed to reboot the server.
I wanted to go over the links, one more time. I still couldn't make it work.
Either, they are out dated, or missing sections that are obvious but I just dont know where to kick....
instead of listing every issue at once, I want to solve it one at a time.
will you join me solving this problem?
I want php5-fpm to work on ubuntu 10.04 with wordpress.Here we go... PHP5-FPM
after installing apt-get install php5-cli php5-cgi psmisc spawn-fcgi, and adding php-fpm. I realized I really needed php5-fpm. Ubuntu 10.04 doesnt support it.
so, I did a backport, I added php5-fpm to the repo.
repo links
Quote:
then, hit the
http://blog.nas-admin.org/?p=25Quote:
they are both running on the same server so we are going to adjust the php5-fpm config to use a unix socket instead. Edit the config file located at /etc/php5/fpm/pool.d/www.conf and find the below line
listen = 127.0.0.1:9000
and change it to…
;listen = 127.0.0.1:9000
listen = /var/run/php5-fpm.sock
Now we have php-fpm listening on a unix socket, lets configure nginx. Go to the directory /etc/nginx/conf.d and make a file named php5-fpm.conf and put this in there:
upstream php5-fpm-sock {
server unix:/var/run/php5-fpm.sock;
}
I dont have /etc/php5/fpm/pool.d/www.conf
I have /etc/php5/fpm/php5-fpm.conf
so, I followed those instructions on php5-fpm.conf.
service nginx restart
Code:
Restarting nginx: [emerg]: no port in upstream "php5-fpm-sock" in /etc/nginx/sites-enabled/domain.com:27
configuration file /etc/nginx/nginx.conf test failed
service php5-fpm stop
shutting down php5-fpm warning, no pid file found - php5-fpm is not running ?
service php5-fpm start
Starting php5-fpm done.... [fail]
there isnt any php5-fpm.sock over at /var/run/... /var/run/php5-fpm.sock ??? where is php5-fpm.sock?
I commented the /etc/nginx/conf.d/php5-fpm.conf file that I created....
then, on /etc/php5/fpm/php5-fpm.conf
instead allowed listen = 127.0.0.1:9000, and commented
;listen = /var/run/php5-fpm.sock
restart nginx...
nginx doesnt give errors anymore. But php5-fpm doesnt work.
How do I make php5-fpm work? Thank you.