You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Yehuda Katz <ye...@ymkatz.net> on 2017/03/30 00:47:22 UTC

Re: [users@httpd] What is preferred PHP interface?

The Apache wiki has a rundown of options: https://wiki.apache.org/httpd/php
Plenty of people still use mod_php and it has been updated to work with
HTTPD 2.4 and PHP 7.

- Y

On Wed, Mar 29, 2017 at 8:49 PM, John Iliffe <jo...@iliffe.ca> wrote:

> Reading several sources there is conflicting information as to what is the
> preferred way to implement PHP scripts.  It appears that mod_php (how we do
> things now) is deprecated so I would like to take advantage of a server
> change to do things "right".
>
> The documentation on mod_fcgid seems to stop in 2013 with the release of
> version 2.3.9, so I assume that this is no longer considered to be a good
> approach.
>
> The link to mod_fastcgi on the Apache documentation page leads to a static
> billboard page for Chelsea Networks with no links and a last maintained
> date in 2002, so it doesn't seem to be current either.  This page says to
> use Netscape to view it (?)
>
> mod_proxy_fcgi seems to be in current use, but right up front is the caveat
> that there is no starter for the script.  My guess would be that some sort
> of a wrapper is required to insert the path to the executable, but no
> documentation has appeared so far.
>
> Using mod_proxy_fcgi also raises the issue of what to proxy to.  The PHP
> installation (version 7.1.3) includes a php-fpm module but the
> documentation for it on the PHP web site is rather sparse - ie non-
> existent.  A Google search comes up with a web site php-fpm.org, but the
> last entry on the news page is 29 Nov, 2011.  Doesn't sound like this is
> the preferred path!  The support link here says "Wiki is now offline,
> sorry.
> Use PHP 5.3.3+ now, and use php.net!".  This is a very back level of PHP!
>
> So, how is the best way to proceed?
>
> As always, thanks to those who will respond.
>
> Regards,
>
> John
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] What is preferred PHP interface?

Posted by Mitchell Krog Photography <mi...@gmail.com>.
+1 php-fpm !!!!


From: Lester Caine <le...@lsces.co.uk> <le...@lsces.co.uk>
Reply: users@httpd.apache.org <us...@httpd.apache.org>
<us...@httpd.apache.org>
Date: 30 March 2017 at 11:14:57 AM
To: users@httpd.apache.org <us...@httpd.apache.org> <us...@httpd.apache.org>
Subject:  Re: [users@httpd] What is preferred PHP interface?

On 30/03/17 02:00, John Iliffe wrote:
> Surprised that the PHP docs don't seem to have anything equivalent to
that
> Wiki.

The equivalent page for PHP is perhaps
https://secure.php.net/manual/en/install.php, but with the growing
number of alternatives to Apache it's difficult to keep everything up to
date. This is one reason php-fpm is now preferred since it essentially
separates PHP from the web server. I currently have php5.4, php5.6 and
php7 running into apache and nginx and can update one without affecting
the other.

-- 
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: [users@httpd] What is preferred PHP interface?

Posted by Lester Caine <le...@lsces.co.uk>.
On 30/03/17 02:00, John Iliffe wrote:
> Surprised that the PHP docs don't seem to have anything equivalent to that 
> Wiki.

The equivalent page for PHP is perhaps
https://secure.php.net/manual/en/install.php, but with the growing
number of alternatives to Apache it's difficult to keep everything up to
date. This is one reason php-fpm is now preferred since it essentially
separates PHP from the web server. I currently have php5.4, php5.6 and
php7 running into apache and nginx and can update one without affecting
the other.

-- 
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] What is preferred PHP interface?

Posted by John Iliffe <jo...@iliffe.ca>.
Thank you for that very fast response Yehuda.

Surprised that the PHP docs don't seem to have anything equivalent to that 
Wiki.

Regards,

John
=====================================
On Wednesday 29 March 2017 20:47:22 Yehuda Katz wrote:
> The Apache wiki has a rundown of options:
> https://wiki.apache.org/httpd/php Plenty of people still use mod_php
> and it has been updated to work with HTTPD 2.4 and PHP 7.
> 
> - Y
> 
> On Wed, Mar 29, 2017 at 8:49 PM, John Iliffe <jo...@iliffe.ca> wrote:
> > Reading several sources there is conflicting information as to what is
> > the preferred way to implement PHP scripts.  It appears that mod_php
> > (how we do things now) is deprecated so I would like to take
> > advantage of a server change to do things "right".
> > 
> > The documentation on mod_fcgid seems to stop in 2013 with the release
> > of version 2.3.9, so I assume that this is no longer considered to be
> > a good approach.
> > 
> > The link to mod_fastcgi on the Apache documentation page leads to a
> > static billboard page for Chelsea Networks with no links and a last
> > maintained date in 2002, so it doesn't seem to be current either. 
> > This page says to use Netscape to view it (?)
> > 
> > mod_proxy_fcgi seems to be in current use, but right up front is the
> > caveat that there is no starter for the script.  My guess would be
> > that some sort of a wrapper is required to insert the path to the
> > executable, but no documentation has appeared so far.
> > 
> > Using mod_proxy_fcgi also raises the issue of what to proxy to.  The
> > PHP installation (version 7.1.3) includes a php-fpm module but the
> > documentation for it on the PHP web site is rather sparse - ie non-
> > existent.  A Google search comes up with a web site php-fpm.org, but
> > the last entry on the news page is 29 Nov, 2011.  Doesn't sound like
> > this is the preferred path!  The support link here says "Wiki is now
> > offline, sorry.
> > Use PHP 5.3.3+ now, and use php.net!".  This is a very back level of
> > PHP!
> > 
> > So, how is the best way to proceed?
> > 
> > As always, thanks to those who will respond.
> > 
> > Regards,
> > 
> > John
> > 
> > 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org