Add new comment

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Submitted by Raffael (not registered) on Wed, 2009-01-14 18:31.

Thank You for the guide, but instead of spawn-cgi from lighttpd I would use php-fpm which uses resources much better than spawn-cgi. You can get php-fpm at THIS website and a simple guide how to install it, is HERE

The only problem is that there is no repo package with php-fpm so You have to compile php from source (well, it's not that hard).

Using a php-caching module can also help a lot. I prefer XCache but APC and eAccelerator would also cope quite well.

There is also one more thing, You shouldn't use nginx as root process (same with spawn-cgi). You can define the name of the user and group for the process (and it's children) in nginx.conf. Parent nginx process will be root but children will be working with the given user/group. Typical name for the user and group is www-data or nobody/nogroup.

Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.

Reply

*
*
The content of this field is kept private and will not be shown publicly.


*

  • Images can be added to this post.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <div>
  • Lines and paragraphs break automatically.