{"action":"closed","issue":{"url":"https://api.github.com/repos/DocCyblade/tkl-mayan-edms/issues/14","repository_url":"https://api.github.com/repos/DocCyblade/tkl-mayan-edms","labels_url":"https://api.github.com/repos/DocCyblade/tkl-mayan-edms/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/DocCyblade/tkl-mayan-edms/issues/14/comments","events_url":"https://api.github.com/repos/DocCyblade/tkl-mayan-edms/issues/14/events","html_url":"https://github.com/DocCyblade/tkl-mayan-edms/issues/14","id":182405779,"number":14,"title":"Running php-fastcgi under supervisord instead of systemd","user":{"login":"DocCyblade","id":9731860,"avatar_url":"https://avatars.githubusercontent.com/u/9731860?v=3","gravatar_id":"","url":"https://api.github.com/users/DocCyblade","html_url":"https://github.com/DocCyblade","followers_url":"https://api.github.com/users/DocCyblade/followers","following_url":"https://api.github.com/users/DocCyblade/following{/other_user}","gists_url":"https://api.github.com/users/DocCyblade/gists{/gist_id}","starred_url":"https://api.github.com/users/DocCyblade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DocCyblade/subscriptions","organizations_url":"https://api.github.com/users/DocCyblade/orgs","repos_url":"https://api.github.com/users/DocCyblade/repos","events_url":"https://api.github.com/users/DocCyblade/events{/privacy}","received_events_url":"https://api.github.com/users/DocCyblade/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/DocCyblade/tkl-mayan-edms/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":{"login":"DocCyblade","id":9731860,"avatar_url":"https://avatars.githubusercontent.com/u/9731860?v=3","gravatar_id":"","url":"https://api.github.com/users/DocCyblade","html_url":"https://github.com/DocCyblade","followers_url":"https://api.github.com/users/DocCyblade/followers","following_url":"https://api.github.com/users/DocCyblade/following{/other_user}","gists_url":"https://api.github.com/users/DocCyblade/gists{/gist_id}","starred_url":"https://api.github.com/users/DocCyblade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DocCyblade/subscriptions","organizations_url":"https://api.github.com/users/DocCyblade/orgs","repos_url":"https://api.github.com/users/DocCyblade/repos","events_url":"https://api.github.com/users/DocCyblade/events{/privacy}","received_events_url":"https://api.github.com/users/DocCyblade/received_events","type":"User","site_admin":false},"assignees":[{"login":"DocCyblade","id":9731860,"avatar_url":"https://avatars.githubusercontent.com/u/9731860?v=3","gravatar_id":"","url":"https://api.github.com/users/DocCyblade","html_url":"https://github.com/DocCyblade","followers_url":"https://api.github.com/users/DocCyblade/followers","following_url":"https://api.github.com/users/DocCyblade/following{/other_user}","gists_url":"https://api.github.com/users/DocCyblade/gists{/gist_id}","starred_url":"https://api.github.com/users/DocCyblade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DocCyblade/subscriptions","organizations_url":"https://api.github.com/users/DocCyblade/orgs","repos_url":"https://api.github.com/users/DocCyblade/repos","events_url":"https://api.github.com/users/DocCyblade/events{/privacy}","received_events_url":"https://api.github.com/users/DocCyblade/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/DocCyblade/tkl-mayan-edms/milestones/2","html_url":"https://github.com/DocCyblade/tkl-mayan-edms/milestones/beta-v0.1","labels_url":"https://api.github.com/repos/DocCyblade/tkl-mayan-edms/milestones/2/labels","id":2053237,"number":2,"title":"beta-v0.1","description":"Beta 1","creator":{"login":"DocCyblade","id":9731860,"avatar_url":"https://avatars.githubusercontent.com/u/9731860?v=3","gravatar_id":"","url":"https://api.github.com/users/DocCyblade","html_url":"https://github.com/DocCyblade","followers_url":"https://api.github.com/users/DocCyblade/followers","following_url":"https://api.github.com/users/DocCyblade/following{/other_user}","gists_url":"https://api.github.com/users/DocCyblade/gists{/gist_id}","starred_url":"https://api.github.com/users/DocCyblade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DocCyblade/subscriptions","organizations_url":"https://api.github.com/users/DocCyblade/orgs","repos_url":"https://api.github.com/users/DocCyblade/repos","events_url":"https://api.github.com/users/DocCyblade/events{/privacy}","received_events_url":"https://api.github.com/users/DocCyblade/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":2,"state":"open","created_at":"2016-10-06T19:34:35Z","updated_at":"2016-10-12T13:58:24Z","due_on":"2016-10-31T00:00:00Z","closed_at":null},"comments":8,"created_at":"2016-10-12T00:18:53Z","updated_at":"2016-10-12T13:58:24Z","closed_at":"2016-10-12T13:58:24Z","body":"I am having more issues getting the PHP cgi server working under systemd (I still don't like it, give me systemV back) than it took to get mayan actually running. Systemd kept failing to start and troubleshooting systemd is like well one of the more harder things. Anyway, Mayan already uses Supervisord to run it's processes, so I googled and there are people running php-fastcgi and nginx out there. So I gave it a go and well. It just works, and the logging seems to be a bit better.\r\n\r\nSo with that all said, I have it working great that is all the mayan EDMS and Adminer via Nginx via php-fastcgi being monitored by supervisord. Below is my config files. \r\n\r\n**/etc/supervisor/conf.d/php-fastcgi.conf**\r\n```\r\n[fcgi-program:php-cgi]\r\ncommand=/usr/bin/php-cgi -q -b /var/run/nginx/php-fastcgi.sock\r\nsocket=unix:///var/run/nginx/php-fastcgi.sock\r\nprocess_name=%(program_name)s\r\nuser=www-data\r\nnumprocs=1\r\npriority=999\r\nautostart=true\r\nautorestart=true\r\nstartsecs=1\r\nstartretries=3\r\nexitcodes=0,2\r\nstopsignal=QUIT\r\nstopwaitsecs=10\r\nredirect_stderr=true\r\nstdout_logfile=/var/log/supervisor/php.log\r\nstdout_logfile_maxbytes=10MB\r\nstdout_logfile_backups=10\r\nenvironment=PHP_FCGI_CHILDREN=2,PHP_FCGI_MAX_REQUESTS=1000\r\n```\r\n\r\nand \r\n\r\n**/etc/nginx/sites-enabled/adminer**\r\n```\r\nserver {\r\n\r\n    listen 12322 ssl;\r\n    include /etc/nginx/include/ssl;\r\n    root /usr/share/adminer/adminer/;\r\n\r\n    error_log /var/log/nginx/adminer-error.log;\r\n    location / {\r\n        index index.php;\r\n        try_files $uri $uri/ /index.php?$args;\r\n    }\r\n\r\n    location ~ .php$ {\r\n        fastcgi_param HTTPS on;\r\n        include /etc/nginx/include/php;\r\n        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\r\n    }\r\n\r\n    location /adminer {\r\n        alias /usr/share/adminer/adminer/;\r\n    }\r\n\r\n    location /adminer-editor {\r\n        alias /usr/share/adminer/editor/;\r\n    }\r\n\r\n    location /externals {\r\n        alias /usr/share/adminer/externals/;\r\n    }\r\n\r\n}\r\n\r\n```\r\n\r\n**/etc/nginx/fastcgi_params**\r\n\r\n```\r\n\r\nfastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;\r\n\r\nfastcgi_param  QUERY_STRING       $query_string;\r\nfastcgi_param  REQUEST_METHOD     $request_method;\r\nfastcgi_param  CONTENT_TYPE       $content_type;\r\nfastcgi_param  CONTENT_LENGTH     $content_length;\r\n\r\nfastcgi_param  SCRIPT_NAME        $fastcgi_script_name;\r\nfastcgi_param  REQUEST_URI        $request_uri;\r\nfastcgi_param  DOCUMENT_URI       $document_uri;\r\nfastcgi_param  DOCUMENT_ROOT      $document_root;\r\nfastcgi_param  SERVER_PROTOCOL    $server_protocol;\r\n\r\nfastcgi_param  GATEWAY_INTERFACE  CGI/1.1;\r\nfastcgi_param  SERVER_SOFTWARE    nginx/$nginx_version;\r\n\r\nfastcgi_param  REMOTE_ADDR        $remote_addr;\r\nfastcgi_param  REMOTE_PORT        $remote_port;\r\nfastcgi_param  SERVER_ADDR        $server_addr;\r\nfastcgi_param  SERVER_PORT        $server_port;\r\nfastcgi_param  SERVER_NAME        $server_name;\r\n\r\nfastcgi_param  HTTP_PROXY         \"\";\r\n\r\n# PHP only, required if PHP was built with --enable-force-cgi-redirect\r\nfastcgi_param  REDIRECT_STATUS    200;\r\n\r\n```\r\n\r\n\r\n"}}
{"actor":{"display_login":"DocCyblade"}}