lighttpd配置

1、lighttpd.conf

server.modules = (
"mod_access",
"mod_alias",
"mod_compress",
"mod_redirect",
"mod_fastcgi"                --------------add
# "mod_rewrite",
)

fastcgi.server =( ".php" =>
(("socket" => "/tmp/php-fastcgi.socket",
"bin-path" => "/usr/bin/php-cgi",
"bin-environment" => (
"PHP_FCGI_CHILDREN" => "16",
"PHP_FCGI_MAX_REQUESTS" => "10000"
),
"min-procs" => 1,
"max-procs" => 1,
"idle-timeout" => 20
))
)

2、

打开phpmyadmin的时候,应该会显示

Fatal error: require_once(): Failed opening required './libraries/php-gettext/gettext.inc' (include_path='.') in /var/www/phpmyadmin/libraries/select_lang.lib.php on line 395

可以这样解决:

 

sudo rm /var/www/phpmyadmin/libraries/php-gettext/*    #这一步是删除软连接
sudo ln /usr/share/php/php-gettext/* /var/www/phpmyadmin/libraries/php-gettext    #这一步是建立硬链接

你可能感兴趣的:(lighttpd配置)