Advertisement
Guest User

Untitled

a guest
Oct 30th, 2014
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. server.modules += ( "mod_alias" )
  2. alias.url = ( "/phpmyadmin" => "/usr/share/webapps/phpMyAdmin/")
  3. # Make sure to install php and php-cgi. See:
  4. # https://wiki.archlinux.org/index.php/Fastcgi_and_lighttpd#PHP
  5.  
  6. server.modules += ("mod_fastcgi")
  7.  
  8. # FCGI server
  9. # ===========
  10. #
  11. # Configure a FastCGI server which handles PHP requests.
  12. #
  13. index-file.names += ("index.php")
  14. fastcgi.server = (
  15. # Load-balance requests for this path...
  16. ".php" => (
  17. # ... among the following FastCGI servers. The string naming each
  18. # server is just a label used in the logs to identify the server.
  19. "localhost" => (
  20. "bin-path" => "/usr/bin/php-cgi",
  21. "socket" => "/tmp/php-fastcgi.sock",
  22. # breaks SCRIPT_FILENAME in a way that PHP can extract PATH_INFO
  23. # from it
  24. "broken-scriptfilename" => "enable",
  25. # Launch (max-procs + (max-procs * PHP_FCGI_CHILDREN)) procs, where
  26. # max-procs are "watchers" and the rest are "workers". See:
  27. # https://redmine.lighttpd.net/projects/1/wiki/frequentlyaskedquestions#How-many-php-CGI-processes-will-lighttpd-spawn
  28. "max-procs" => 4, # default value
  29. "bin-environment" => (
  30. "PHP_FCGI_CHILDREN" => "1" # default value
  31. )
  32. )
  33. )
  34. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement