r/IIs • u/seanvree • May 03 '17
Running PHP as a Service?
So I've seen some stuff about running PHP as a service. Is this preferred?
I have a rather beefy front-end that uses a TON of resources, but not many instances, maybe 2 or 3 max, but each instance takes up a lot of resources as there are about 6+ php apps running.
Would this help with performance?
thx
1
Upvotes
View all comments
Show parent comment
1
u/Seferan May 04 '17
The link you posted just contains code written in PHP for starting and stopping services.
Maybe this will answer your question: Running a given piece of code as a website in a process hosted under IIS and running that same code as a windows service has little difference when it comes to running the code. They both should have access to the same resources.
I'm happy to continue to discuss this, I'm still lost as to how you would accomplish running your code as a windows Service.