{"action":"created","issue":{"url":"https://api.github.com/repos/CachetHQ/Cachet/issues/2064","repository_url":"https://api.github.com/repos/CachetHQ/Cachet","labels_url":"https://api.github.com/repos/CachetHQ/Cachet/issues/2064/labels{/name}","comments_url":"https://api.github.com/repos/CachetHQ/Cachet/issues/2064/comments","events_url":"https://api.github.com/repos/CachetHQ/Cachet/issues/2064/events","html_url":"https://github.com/CachetHQ/Cachet/issues/2064","id":171545371,"number":2064,"title":"Trouble getting Cachet to work on custom apache/php setup -- help appreciated!","user":{"login":"jsdavis","id":9905972,"avatar_url":"https://avatars.githubusercontent.com/u/9905972?v=3","gravatar_id":"","url":"https://api.github.com/users/jsdavis","html_url":"https://github.com/jsdavis","followers_url":"https://api.github.com/users/jsdavis/followers","following_url":"https://api.github.com/users/jsdavis/following{/other_user}","gists_url":"https://api.github.com/users/jsdavis/gists{/gist_id}","starred_url":"https://api.github.com/users/jsdavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsdavis/subscriptions","organizations_url":"https://api.github.com/users/jsdavis/orgs","repos_url":"https://api.github.com/users/jsdavis/repos","events_url":"https://api.github.com/users/jsdavis/events{/privacy}","received_events_url":"https://api.github.com/users/jsdavis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-08-16T23:58:03Z","updated_at":"2016-08-17T14:16:51Z","closed_at":null,"body":"### Background Info\r\nOkay, so I understand my situation is not at all supported; really, I could just use a hint from somebody with more intimate knowledge of this software to help me figure out what's going on here.\r\n\r\nI'm interning at a company that would like to use Cachet internally; however, this company has strict security rules and heavily customizes much of their software. As a result, I am required to use an internal version of apache and php to integrate Cachet into the corporate environment. I've already gotten it set up using php56 and httpd as a proof of concept, but I'm having difficulties getting it to work on our stack.\r\n\r\n### Environment\r\n\r\nphp version --> 5.6\r\napache version --> 2.4\r\n\r\nrm -rf /bootstrap/cache/* --> Didn't help :(\r\n\r\n### The Problem\r\nAfter a few tweaks, I've been mostly successful in my efforts; however, I have two problems whose solutions I can't seem to begin to figure out:\r\n\r\n1. CSRF token validation fails for every form\r\n2. When I disable CSRF token validation (by removing the CSRF Middleware from Laravel), I cannot log in. The page displays a 404, with the URL of /auth/dashboard.\r\n\r\n### Tweaks Made\r\n1. We use an inhouse filtering solution for PHP, so we wrote a polyfill for filter_vars() that calls our inhouse solution.\r\n2. In order to install composer, I simply removed the check for the filter extension in the composer installer\r\n3. Our version of apache requires a \"DirectoryIndex index.php\" directive in the VirtualHost block\r\n\r\nThere may be other differences present, but the gist of it is that I have NO IDEA where to be looking; 2 weeks ago I'd never seen a line of PHP or apache configuration in my life, so I'm a little overwhelmed.\r\n\r\n\r\n### Expected behaviour\r\n\r\nExpecting to be taken to the admin dashboard on login\r\n\r\n### Actual behaviour\r\n\r\nBrowser attempts to redirect to /auth/dashboard and hits a 404. Laravel logs say it gets stuck at authentication, at a line where it throws a 403 error, I believe due  to invalid credentials. However, I've gotten this on 3 separate installations and I am 100% certain the credentials are valid.\r\n\r\nAgain, I get that this situation is totally unsupported since there's no way you guys can know what's different in my setup, but if I could even know where I should be looking to fix this it would be a great help."},"comment":{"url":"https://api.github.com/repos/CachetHQ/Cachet/issues/comments/240425360","html_url":"https://github.com/CachetHQ/Cachet/issues/2064#issuecomment-240425360","issue_url":"https://api.github.com/repos/CachetHQ/Cachet/issues/2064","id":240425360,"user":{"login":"GrahamCampbell","id":2829600,"avatar_url":"https://avatars.githubusercontent.com/u/2829600?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamCampbell","html_url":"https://github.com/GrahamCampbell","followers_url":"https://api.github.com/users/GrahamCampbell/followers","following_url":"https://api.github.com/users/GrahamCampbell/following{/other_user}","gists_url":"https://api.github.com/users/GrahamCampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamCampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamCampbell/subscriptions","organizations_url":"https://api.github.com/users/GrahamCampbell/orgs","repos_url":"https://api.github.com/users/GrahamCampbell/repos","events_url":"https://api.github.com/users/GrahamCampbell/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamCampbell/received_events","type":"User","site_admin":false},"created_at":"2016-08-17T14:16:51Z","updated_at":"2016-08-17T14:16:51Z","body":"Try using redis or apc."}}
{"actor":{"display_login":"GrahamCampbell"}}