Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

PHP-FPM support

General questions about VestaCP
Post Reply
  • Print view
Advanced search
13 posts
  • 1
  • 2
  • Next
mephivio
Posts: 198
Joined: Thu Mar 27, 2014 7:35 am

Os: Debian 8x
Web: nginx + php-fpm
PHP-FPM support
  • Quote

Post by mephivio » Thu Jun 18, 2015 9:53 pm

hi team

in your website, in the topic version history 0.9.8-14, you tell that you support PHP-FPM
Great !!! : but how to enable it ?

For existing VestaCP (and also for new install) you explain more than a week ago you were finishing a specific script... is it available ?

Despite that, nice work this new release...

thanks
JP
Top

EvilMoe
Posts: 19
Joined: Tue May 26, 2015 10:26 am

Re: PHP-FPM support
  • Quote

Post by EvilMoe » Sat Jun 20, 2015 7:25 pm

Same question
Top

Steven
Posts: 15
Joined: Mon Oct 20, 2014 7:53 pm

Re: PHP-FPM support
  • Quote

Post by Steven » Sun Jun 21, 2015 12:01 am

Web -> Edit Domain -> Web Template (Apache2) -> phpfcgid (perhaps?)

I think a lot of us are getting our knickers tied up with the impending NGINX + PHP-FPM support, however you do not necessarily have to wait for the developers to release this support. You can already do this yourself.

I have been running this control panel for a good while now and it has been very good in production with Nginx only (no apache), PHP-FPM, and MariaDB. All you have to do is install the binaries and configure your own Web Templates.
Top

EvilMoe
Posts: 19
Joined: Tue May 26, 2015 10:26 am

Re: PHP-FPM support
  • Quote

Post by EvilMoe » Sun Jun 21, 2015 7:47 am

Do you have a working template for us with FPM and seperate PHP.ini for us?


EDIT: phpfcgid is not PHP FPM, it is FCGI
Top

Steven
Posts: 15
Joined: Mon Oct 20, 2014 7:53 pm

Re: PHP-FPM support
  • Quote

Post by Steven » Sun Jun 21, 2015 10:17 am

I think first off, read this page to understand the difference between FCGI and FPM http://stackoverflow.com/questions/4526 ... gi-and-fpm

Essentially we are speaking the same language. From that page "FPM is a process manager". Hey I don't care as long as it works right?

Perhaps the developers of VestaCP misinterpreted this too, or perhaps they have really found a way to have everyones' web public directories chowned as the user:group and.. somehow managed to figure out how to allow applications like WordPress can have proper access to wp-content etc - I know I am still trying to find that sweet spot. (otherwise www-data:www-data does the trick)

Or perhaps they are onto this already, and hence why we are waiting for this. It isn't easy.

There isn't anything important required to change in the php.ini - just need your own template for nginx. Note that until the developers release a version that completely eliminates Apache - the templates will need to take full control of port 80, without any pass_proxy to apache. In other words, apache can run quite happily in the background, but it won't be used at all.

The directory of interest is: /usr/local/vesta/data/templates/web/nginx

The files ending in .tpl are templates for normal traffic on port 80.
The files ending in .stpl are templates for secure traffic on port 443.

My configuration is quite complex. However I can offer the advice that as you have nginx accepting everything on port 80, handling PHP files is simply a location block pointing to either a socket at /var/run/php5-fpm.sock or 127.0.0.1:9000.

*edit - I am happy to assist further, it is just difficult to post long and winding lengths of code. All you have to do is make sure that nginx takes over everything without passing anything to apache. Remember that nginx is in front of apache anyway - so if you've got the handlers in place to deal with the static files, PHP files, and security stuff, nothing will get passed to apache. You could already just apt-get remove apache and vestacp wouldn't complain.
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: PHP-FPM support
  • Quote

Post by imperio » Mon Jun 22, 2015 1:22 pm

Now we are testing new installer for centos 7 and php-fpm
Top

Botrax
Posts: 4
Joined: Sat Jun 20, 2015 10:34 pm

Re: PHP-FPM support
  • Quote

Post by Botrax » Sat Jun 27, 2015 8:41 pm

How is PHP-FPM enabled in Vesta CP? Support is there, but how is it used/enabled?
Default Apache template?
Default NGINX template?

how?
Top

Steven
Posts: 15
Joined: Mon Oct 20, 2014 7:53 pm

Re: PHP-FPM support
  • Quote

Post by Steven » Sun Jun 28, 2015 9:00 pm

Botrax wrote:How is PHP-FPM enabled in Vesta CP? Support is there, but how is it used/enabled?
Default Apache template?
Default NGINX template?

how?
You install this PHP yourself.

Code: Select all

sudo apt-get install php5-fpm
You create your own template for VestaCP to use. Have a look in the directories I posted above. Learn how they are constructed. You'll be looking at using port 9000 or passing queries through to a socket for PHP.
Top

mephivio
Posts: 198
Joined: Thu Mar 27, 2014 7:35 am

Os: Debian 8x
Web: nginx + php-fpm
Re: PHP-FPM support
  • Quote

Post by mephivio » Wed Jul 01, 2015 11:19 am

Hi imperio

is your next script for php-fpm is ready ?
thx

J
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: PHP-FPM support
  • Quote

Post by imperio » Wed Jul 01, 2015 12:42 pm

Ready, but not released yet
Top


Post Reply
  • Print view

13 posts
  • 1
  • 2
  • Next

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password