What's new

Help with nginx

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

rod

Occasional Visitor
Hi

I have changed from lighttp to nginx, and owncloud 8 works good, in fact, I don't see anymore the cpu graph in 100%.

I am starting php-cgi manually from command line with:
Code:
nohup php-cgi -b 127.0.0.1:9000 &
And it works... but from time to time the bind dissapears on his own, and I have to log in to the shell and start it again, the same way. Also, if I reset the router, obviously, it also dies.

But I want that to start automatically, and I cant seem to find a small and working file to put in init.d. The ones that I googled are huge, full of options and conditions, suited for full fledged linux distros.

On the other hand, looking inside some of the files in init.d is not enough, they are like 3-9 liners but can't figure out how to create a similar one for php-cgi.

So please, can anybody point me to a working init.d file, or to a automatic way to start/stop php for nginx.

Thanks a lot.

UPDATE: I have changed to php-fpm, and started to use a linux file sock instead of 128.0.0.1:9000, and everything works well with owncloud 8.02... still don't know how to create a init.d for the php-fmp

I am using AndreyPopov's fork of merlins build with entware installed.
 
Last edited:
Found a working init.d script

In the php.net web was the info I needed.

We didn't have the file in our entware installation, but found one in github, placed it in init.d folder, changed its name to S79php-fpm, changed the 3 lines as stated, matching my instalation, and set excecute bits. Now I can start/stop php-fpm gracefully and, most important, it starts up after restart.
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top