Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Both sides next revision
code:php-fpm [2014/08/15 02:10]
::ffff:83.133.179.144 removed
— (current)
Line 1: Line 1:
-====== php ====== 
-                                                                                                                                                  
-add php fpm service as user //ntmr// 
-  
-  
-  adduser --system --home /devnull --no-create-home --group --disabled-login --gecos "ntmr" ntmr 
-  
-===== fpm config ===== 
-  
-<file init /etc/php5/fpm/pool.d/ntmr.conf> 
-[notomorrow.de] 
-  
-user = ntmr 
-group = ntmr 
-listen = '/tmp/php-fpm-ntmr.sock' 
-pm = dynamic 
-pm.max_children = 5 
-pm.start_servers = 2 
-pm.min_spare_servers = 1 
-pm.max_spare_servers = 3 
-  
-</file> 
-  
-===== nginx config ===== 
-  
-<file nginx /etc/nginx/inc/ntmr.php.inc> 
-location ~ \.php$ { 
-  fastcgi_split_path_info ^(.+\.php)(/.+)$; 
-  include        fastcgi_params; 
-  
-  fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name; 
-  
-  fastcgi_intercept_errors on; 
-  fastcgi_pass unix:/tmp/php-fpm-ntmr.sock; 
-} 
-</file> 
-  
-  
-==== sample host ==== 
-<file /etc/nginx/conf.d/ntmr.conf> 
-        root   /srv/ntmr; 
-        index  index.php index.html; 
-         
-         location / { 
-           try_files $uri $uri/index.php; } 
-              
-        include        conf.d/ntmr.php.inc; 
-  
-        ssl on; 
-        ssl_certificate  /etc/nginx/keys/mail.ntmr.crt; 
-        ssl_certificate_key /etc/nginx/keys/mail.ntmr.key;                                                                                     
-  
-        ssl_session_timeout  5m; 
-        ssl_protocols  SSLv2  TLSv1; 
-        ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP; 
-        ssl_prefer_server_ciphers   on; 
-  
-</file> 
-  
-===== php-apps ===== 
-  * [[dokuwiki]] 
  

Log In