Tumblelog by Soup.io
Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.

June 04 2011

04:57

nginx+PHP的多域名配置

有朋友问如何配置nginx,支持多个域名。就有了这篇文章。

(...)
Read the rest of nginx+PHP的多域名配置 (169 words)


© David for 空想枫, 2011. | Permalink | No comment | Add to del.icio.us
Post tags: nginx, php, php-fpm


May 11 2011

03:58

September 19 2010

06:27

升级到lighttpd 1.4.28-1碰到的问题

昨天在VPS上执行apt-get update,apt-get upgrade 升级时,在提示是否替换lighttpd的配置时全选yes后,出现所有网站无法访问,报403错误的问题。

检查lighttpd替换的配置,发现/etc/lighttpd/conf-available/fastcgi.conf 少了.php文件的部分。在新的配置文件里加入如下内容:

fastcgi.server    = ( “.php” =>
((
“bin-path” => “/usr/bin/php5-cgi”,
“socket” => “/tmp/php.socket”,
“max-procs” => 2,
“idle-timeout” => 20,
“bin-environment” => (
“PHP_FCGI_CHILDREN” => “4″,
“PHP_FCGI_MAX_REQUESTS” => “10000″
),
“bin-copy-environment” => (
“PATH”, “SHELL”, “USER”
),
“broken-scriptfilename” => “enable”
))
)

重启lighttpd后,故障排除。

Related posts:

  1. 试用Lighttpd
  2. Linux VPN安装
  3. 让BT下载机上的文件共享出来
  4. Debian下Tomcat的安装
  5. Trac+Subversion 配置指南


© David for 空想枫, 2010. | Permalink | No comment | Add to del.icio.us
Post tags: lighttpd, php


Older posts are this way If this message doesn't go away, click anywhere on the page to continue loading posts.
Could not load more posts
Maybe Soup is currently being updated? I'll try again automatically in a few seconds...
Just a second, loading more posts...
You've reached the end.