Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server.modules += ( "mod_alias" )
- alias.url = ( "/phpmyadmin" => "/usr/share/webapps/phpMyAdmin/")
- # Make sure to install php and php-cgi. See:
- # https://wiki.archlinux.org/index.php/Fastcgi_and_lighttpd#PHP
- server.modules += ("mod_fastcgi")
- # FCGI server
- # ===========
- #
- # Configure a FastCGI server which handles PHP requests.
- #
- index-file.names += ("index.php")
- fastcgi.server = (
- # Load-balance requests for this path...
- ".php" => (
- # ... among the following FastCGI servers. The string naming each
- # server is just a label used in the logs to identify the server.
- "localhost" => (
- "bin-path" => "/usr/bin/php-cgi",
- "socket" => "/tmp/php-fastcgi.sock",
- # breaks SCRIPT_FILENAME in a way that PHP can extract PATH_INFO
- # from it
- "broken-scriptfilename" => "enable",
- # Launch (max-procs + (max-procs * PHP_FCGI_CHILDREN)) procs, where
- # max-procs are "watchers" and the rest are "workers". See:
- # https://redmine.lighttpd.net/projects/1/wiki/frequentlyaskedquestions#How-many-php-CGI-processes-will-lighttpd-spawn
- "max-procs" => 4, # default value
- "bin-environment" => (
- "PHP_FCGI_CHILDREN" => "1" # default value
- )
- )
- )
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement