Web server to run PHP + Erlang

I want to run PHP and Erlang on a web server. Apache is excluded due to the fact that the Erlang process for the backend will need to process about 3,000 requests at a time. So definitely something with a smaller memory size like lighttpd ...

Which one do you recommend? And why?

+4
source share
3 answers

Erlang has a built-in web server:

http://yaws.hyber.org/

What you can use. It should be really really fast.

If you want to open Erlang on the Internet, Yaws is the way to go (just learning Erlang, so this may not be true)

change

After digging a bit, I found that the Erlang (Yaws) web server MAY run PHP scripts. So your answer is the Erlang web server!

http://yaws.hyber.org/cgi.yaws

+4
source

It is difficult to answer this question without additional information. What do you want to use erlang and php for? Is php your frontend for the erlang backend process? Or is erlang going to make part of the interface as well?

I have seen people doing great with nginx before erlang and fastcgi. You can run php via fastcgi when nginx is redirecting. Without additional information, it would be difficult to say more.

+3
source

Launch your php interface with anything (hopefully, hopefully) and contact your erlang as a backend.

Reading:

http://www.erlang-factory.com/upload/presentations/117/Todd-Lipcon-ErlangFactoryLondon2009-BuildingMulti-LanguageWebArchitecturesusingErlangandThrift.pdf

It mainly discusses how to run the php interface, because it is good that lines and template designers get it with the erlang backend, because it is good at concurrency, etc. Then he glues it all together with the economical

best quote

Where PHP sucks, where Erlang excels! I And vice versa!

0
source

All Articles