Erlang/OTP Forums

Author Message

<  Yaws mailing list  ~  Using a php fastcgi server to run .php files

Guest
Posted: Mon Jul 19, 2010 5:20 pm Reply with quote
Guest
Hello,

I have attached a patch that allows php scripts to be interpreted
using fastcgi php instead of cgi php (php-cgi invoked with the -b
flag). The same effect can easily be achieved by using an appmod that
wraps the php fcgi call, but IMHO it is more convenient to have this
directly in the server.

The location of the php fastcgi process can be given in the
configuration file for each <server> directive:
phpfcgi = "host:port"

If specified, it overrides the php_exe_path setting. For all <server>s
where phpfcgi is not specified, the binary specified by php_exe_path
is invoked as normal cgi.

This allows,a separate php interpreter to be used for each
<server>/vhost, allowing for privilege separation and better memory
control. Also, using fastcgi instead of cgi should make interpretation
of php files a little faster.

HC


Post received from mailinglist
Guest
Posted: Mon Jul 19, 2010 6:58 pm Reply with quote
Guest
On Mon, Jul 19, 2010 at 12:39 PM, Hans-Christian Esperer
<hc@hcesperer.org> wrote:
> Hello,
>
> I have attached a patch that allows php scripts to be interpreted
> using fastcgi php instead of cgi php (php-cgi invoked with the -b
> flag). The same effect can easily be achieved by using an appmod that
> wraps the php fcgi call, but IMHO it is more convenient to have this
> directly in the server.
>
> The location of the php fastcgi process can be given in the
> configuration file for each <server> directive:
>
Guest
Posted: Mon Jul 19, 2010 8:46 pm Reply with quote
Guest
On Mon, Jul 19, 2010 at 02:57:03PM -0400, Steve Vinoski wrote:
> On Mon, Jul 19, 2010 at 12:39 PM, Hans-Christian Esperer
[...]
> Thanks! I took a quick look and it looks straightforward, so I'll try
> to push it to github later today or early tomorrow.

Cool. Smile

I forgot to add an entry to the manual page for the configuration
option. Attached to this email.

HC


Post received from mailinglist
Guest
Posted: Tue Jul 20, 2010 4:24 pm Reply with quote
Guest
On Mon, Jul 19, 2010 at 4:45 PM, Hans-Christian Esperer
<hc@hcesperer.org> wrote:
> On Mon, Jul 19, 2010 at 02:57:03PM -0400, Steve Vinoski wrote:
>> On Mon, Jul 19, 2010 at 12:39 PM, Hans-Christian Esperer
> [...]
>> Thanks! I took a quick look and it looks straightforward, so I'll try
>> to push it to github later today or early tomorrow.
>
> Cool. Smile
>
> I forgot to add an entry to the manual page for the configuration
> option. Attached to this email.

This is helpful, thanks very much. I'm also adding some documentation
to the Yaws PDF file, so once I get that completed, I'll push it to
github.

--steve

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post received from mailinglist
Guest
Posted: Wed Jul 21, 2010 1:50 am Reply with quote
Guest
On Tue, Jul 20, 2010 at 12:23 PM, Steve Vinoski <vinoski@ieee.org> wrote:
> On Mon, Jul 19, 2010 at 4:45 PM, Hans-Christian Esperer
> <hc@hcesperer.org> wrote:
>> On Mon, Jul 19, 2010 at 02:57:03PM -0400, Steve Vinoski wrote:
>>> On Mon, Jul 19, 2010 at 12:39 PM, Hans-Christian Esperer
>> [...]
>>> Thanks! I took a quick look and it looks straightforward, so I'll try
>>> to push it to github later today or early tomorrow.
>>
>> Cool. Smile
>>
>> I forgot to add an entry to the manual page for the configuration
>> option. Attached to this email.
>
> This is helpful, thanks very much. I'm also adding some documentation
> to the Yaws PDF file, so once I get that completed, I'll push it to
> github.

OK, I've pushed the patch, though slightly modified and mixed with
some other related changes. For example, in yaws_config.erl with the
original patch applied there were now two routines for parsing
host:port strings, so I took the opportunity to refactor some of the
existing FCGI code to use the new code instead. Also, the existing
FCGI code used separate #sconf fields for host and port, which I
thought was overkill, so I modified it to use a single field storing a
{host,port} tuple instead and made the new PHP FCGI code follow suit.

In addition to the man page additions included in the patch, I also
added new documentation to the yaws.tex file. I also fixed up a number
of little editorial issues in that file.

Hans-Christian, thanks again for the contribution, we appreciate it.

--steve

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post received from mailinglist
wuji
Posted: Fri Sep 14, 2012 8:32 am Reply with quote
User Joined: 10 Aug 2012 Posts: 654
helping his terminally ill wife, Jean, end her life with an overdose overdose [h3]cheap Ralph Lauren[/h3] overdose of medication. In 1989, when Kevorkian was still practicing medicine in
Angeles, he and Humphry "quarreled right on the spot.""He came to me me [h4]cheap real jordans[/h4] me hoping that I, as head of Hemlock, would send him the
Humphry told ABCNews.com. "I said, 'No,' I don't believe there should be be cheap authentic air jordans be a clinic for assisted suicide. It should be done at home
in a hospital.""He stormed out of the room and has never spoken spoken knockoff designer *beep* spoken to me since," Humphry said.After that, Kevorkian reportedly opposed Humphry's approach,
assisted suicides should be done in a medical setting."People are aware of of [h1]buy real jordans[/h1] of euthanasia because of him," he said. "But I think he ruined
in the eyes of the medical profession.""I credit him and criticize him," him," [h4]cheap replica *beep*[/h4] him," said Humphry. "The American public and the media gave him so
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum