<div dir="ltr">example of php-fpm pool configuration<div><div>user = www-data</div><div>group = www-data</div><div>pm = dynamic</div><div>pm.max_children = 50</div><div>pm.start_servers = 20</div><div>pm.min_spare_servers = 5</div><div>pm.max_spare_servers = 35</div><div>pm.status_path = /fpm-status</div><div>ping.path = /fpm-ping</div><div>ping.response = pong</div><div>chdir = /var/www/<a href="http://test.ex.com">test.ex.com</a></div><div>catch_workers_output = yes</div><div>request_terminate_timeout = 180s</div><div>php_admin_value[error_log] = /var/log/tes2.ex.com-fpm-php-error.log</div><div>php_admin_value[max_execution_time] = 180</div><div>php_admin_flag[log_errors] = on</div><div>php_admin_value[memory_limit] = 320m</div><div>php_admin_value[error_reporting] = E_ALL</div><div>php_admin_flag[display_errors] = on</div><div>php_admin_flag[display_startup_errors] = on</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-05-11 23:26 GMT+03:00 Alex Hall <span dir="ltr"><<a href="mailto:ahall@autodist.com" target="_blank">ahall@autodist.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks for the quick response. Unfortunately, I'm not having any luck, unless I mistyped one of the rules. I also can't find where errors go. Anyone know where, or if, errors in fastcgi/php5-fpm are logged? /var/log/php5-fpm.log is empty.<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 11, 2016 at 4:09 PM, Yuriy Medvedev <span dir="ltr"><<a href="mailto:medvedev.yp@gmail.com" target="_blank">medvedev.yp@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Try my config for Osticket 1.7, nginx+php-fpm<div>I create that's config just for testing </div><div>server {<br></div><div><div>listen 80;</div><div>server_name <a href="http://test.com" target="_blank">test.com</a>;</div><div>access_log /var/log/nginx/tickets.access.log;</div><div>error_log /var/log/nginx/tickets.error.log info;</div><div>index index.php;</div><div>root /var/www/ticket;</div><div>client_max_body_size 5M;</div><div>keepalive_timeout 0;</div><div>fastcgi_read_timeout 120;</div><div>fastcgi_send_timeout 60;</div><div>index index.php index.html;</div><div>autoindex off;</div><div><br></div><div>gzip on;</div><div>gzip_types text/plain text/css application/x-javascript text/javascript application/javascript application/json application/xml text/x-component application/rss+xml text/xml;</div><div>sendfile on;</div><div>set $path_info "";</div><div><br></div><div>location ~ /include {</div><div> deny all;</div><div> return 403;</div><div>}</div><div><br></div><div>if ($request_uri ~ "^/api(/[^\?]+)") {</div><div> set $path_info $1;</div><div>}</div><div><br></div><div>location ~ ^/api/(?:tickets|tasks).*$ {</div><div> try_files $uri $uri/ /api/http.php?$query_string;</div><div>}</div><div><br></div><div>if ($request_uri ~ "^/scp/.*\.php(/[^\?]+)") {</div><div> set $path_info $1;</div><div>}</div><div><br></div><div>location ~ ^/scp/ajax.php/.*$ {</div><div> try_files $uri $uri/ /scp/ajax.php?$query_string;</div><div>}</div><div><br></div><div>location / {</div><div> try_files $uri $uri/ index.php;</div><div>}</div><div><br></div><div><br></div><div>location ~ \.php$ {</div><div> fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;</div><div> fastcgi_pass unix:/var/run/php-fpm.sock;</div><div> fastcgi_index index.php;</div><div> include fastcgi_params;</div><div> fastcgi_param PATH_INFO $path_info;</div><div> fastcgi_intercept_errors on;</div><div>}</div><div>}</div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>2016-05-11 23:03 GMT+03:00 Alex Hall <span dir="ltr"><<a href="mailto:ahall@autodist.com" target="_blank">ahall@autodist.com</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div><div>Hi all,<br></div>I'm using Nginx (obviously), but I want to try OSTicket. The only supported servers for it are, for whatever reason, Apache and IIS. I hate IIS, and I don't know how I'd run Apache and Nginx together (plus Nginx seems much simpler than Apache to me). Does anyone have OSTicket working under Nginx by any chance?<br><br>I've followed this recipe:<br><a href="https://www.nginx.com/resources/wiki/start/topics/recipes/osticket/" target="_blank">https://www.nginx.com/resources/wiki/start/topics/recipes/osticket/</a><br></div>but I can't get it to work. It hits a wall during installation, saying that it can't create configuration settings (#7). If anyone has this up and running successfully, I'd love to know how you did it. Hopefully the OSTicket team will eventually support Nginx natively, but I'm not holding my breath.<span><font color="#888888"><br clear="all"><div><div><div><br>-- <br><div><div dir="ltr"><div><div>Alex Hall<br></div>Automatic Distributors, IT department<br></div><a href="mailto:ahall@autodist.com" target="_blank">ahall@autodist.com</a><br></div></div>
</div></div></div></font></span></div>
<br></div></div>_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br></blockquote></div><br></div>
<br>_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br></blockquote></div><br><br clear="all"><br>-- <br><div><div dir="ltr"><div><div>Alex Hall<br></div>Automatic Distributors, IT department<br></div><a href="mailto:ahall@autodist.com" target="_blank">ahall@autodist.com</a><br></div></div>
</div>
</div></div><br>_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br></blockquote></div><br></div>