LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-24-2012, 04:48 AM   #1
mh77
LQ Newbie
 
Registered: Sep 2012
Posts: 2

Rep: Reputation: Disabled
Amazon Linux + Apache + PHP-FPM = Confusion!


I have a server running Amazon Linux 2012.03 and Apache 2.2.22 (among other things). I use it as a server to host some simple websites through VirtualHosts, including some Wordpress websites. I've installed PHP 5.3.15, and APC to speed things up. Then I read about PHP-FPM and it seemed like a way to increase speed some more, so I wanted to install it. After reading around 8 different guides or so, the confusion has only gotten bigger and bigger.

I think that part of the confusion is the different distro's and their differences in how certain things work/need to be set up, but also the fact that PHP-FPM is now part of PHP as I understand. The documentation about FPM on the PHP website is... not much and confusing as well. And of course I'm missing some fundamentals that makes me not understand or misunderstand things I read. Oh and finally, a lot of guides focus on the combination of nginx and FPM, but I want to keep Apache as I'm still learning something new about that every day

How far I've gotten: I've installed PHP-FPM and it's running, I see 6 php-fpm processes running when I use top. I've altered the config to have it use a socket as well (from one of the guides I found). However, I don't have the feeling that php-fpm is actually being used. I read that a phpinfo file should output something FPM related instead at Server API, instead of Apache 2.0 Handler as it does now. So one thing I would like to learn is how to know if FPM is correctly set up, and actually being used.

I'm not sure, but from the guides I've read, I get the idea that part of the challenge is that I'm using VirtualHosts. Some guides say that lines need to be added to each VirtualHost block, something like FastCGIExternalServer, but my Apache doesn't recognize that. Probably because FastCGI isn't loaded. Then I look into that and some guides don't talk about FastCGI at all. Others mention fcgi, but I'm not sure if this is the same thing. So another thing I would like to learn is the difference/relation between CGI, FastCGI (, fcgi?) and FPM, as I always thought that FPM was a 'better' alternative to FastCGI, which is a better alternative to CGI?

TL;DR version:
- My goal is to have FPM being used by my Apache VirtualHosts
- I want to learn how to know if FPM is correctly set up/being used
- I want to learn the difference/relation between CGI, FastCGI, fcgi and FPM

I hope you guys can help me! Let me know which information you need. Thanks in advance!
 
Old 09-25-2012, 05:02 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Not really the kind of answer you'd expect but if that's compatible with your clients I would install PHP 5.4.7 in the hope that FPM be better integrated with it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Configuring A LEMP System (Linux, nginx, MySQL, PHP-FPM) For Maximum Performance LXer Syndicated Linux News 0 09-23-2012 12:21 PM
request shipping php-fpm with php in -current repo cowyn Slackware 1 04-03-2011 05:29 PM
apache with php/suexec/fpm/fastcgi? hoodez Linux - Server 0 07-23-2010 01:26 AM
LXer: Installing Nginx With PHP 5.3 And PHP-FPM On Ubuntu Lucid Lynx (10.04) LXer Syndicated Linux News 0 06-14-2010 11:42 PM
LXer: Installing PHP 5.3, Nginx And PHP-fpm On Ubuntu/Debian LXer Syndicated Linux News 0 02-10-2010 05:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration