JanTvrdik / PhpVersionSwitcher

Simple and straightforward C# app for switching PHP versions
35 stars 4 forks source link

Add support for FastCGI #1

Closed hrach closed 10 years ago

hrach commented 10 years ago

Currectly I am using nginx & php-fpm. Both are not services. Would be nice, if there would be option to start/stop/restart php-fpm, not apache. (nginx is irrelevant in that case.)

JanTvrdik commented 10 years ago

And how do to start / stop php-fpm if it is not a service?

hrach commented 10 years ago

sth like http://nginxtray.codeplex.com/SourceControl/latest#trunk/NginxTray/frmStartup.cs

JanTvrdik commented 10 years ago

So just kill the process and start it over. Ok.

hrach commented 10 years ago

(nginx is irrelevant in that case.)

but if it would replace also functionality of nginx tray,.... :) :heart:

JanTvrdik commented 10 years ago

Are you sure that you use php-fpm on Windows? NginxTray seems to be working with PHP FastCGI

hrach commented 10 years ago

Oh man, seems you are right. I lived in the darkness.

JanTvrdik commented 10 years ago

Could you try the latest release?

Set HttpServerServiceName to empty string, HttpServerProcessPath to path to nginx binary and FastCgiAddress to sth like 127.0.0.1:9999

JanTvrdik commented 10 years ago

I have fixed few issue and released second beta.

hrach commented 10 years ago

Thanks a lot! :) Seems to be working. I have another issue #5, but probably not related.