lighttpd 修改 /etc/lighttpd/conf-enabled/15-fastcgi-php.conf
fastcgi.server += ( ".php" =>
((
"bin-path" => "/usr/bin/php-cgi",
"socket" => "/tmp/php.socket",
"max-procs" => 1,
"bin-environment" => (
"PHP_FCGI_CHILDREN" => "2",
"PHP_FCGI_MAX_REQUESTS" => "1000"
),
"bin-copy-environment" => (
"PATH", "SHELL", "USER"
),
"broken-scriptfilename" => "enable"
))
)
这里有一个 lighttpd 进程数量的计算公式。很适合 …
在写一个程序用到了wxWidgets、CGI、MySQL为使用UNICODE头疼了数天。得下心得如下:
考虑到以后的迁移和多语种兼容,在MySQL中全部表和列包括整个数据库均使用UNICODE。MySQL++做数据库操作。wxWidgets用的UNICODE的编译版本。CGI用的cgicc3.2.7。用户段用的 …