Greetings PW community - I've got a site that I inherited, but brought it down to a local dev server (Ubuntu) in order to make changes before pushing those to the live version. I have the database connection setup and content displays as expected however I can't login.
Admin url changed (to clients name )
Initial scenario: I can access the admin login page just fine, however when I was submitting the request I was receiving the CSRF login error ("This request was aborted because it appears to be forged"), so I went and found the login troubleshooting guide: https://processwire.com/docs/tutorials/troubleshooting-guide/page2. I took the following steps to debug:
Verified that there is enough space left on HD to create the session file.
Verified that the /site/assets/ subfolders exist and set permissions to 777 for testing
Verified config.php is set to at least 644 (it is 777 now on my dev box for testing purposes)
Disabled CSRF, session fingerprinting & session challenge in config.php
I have installed an original copy of ProcessWire 3.0.33's index.php
After this, I stopped getting the forged attempt error, but now it was processing the login form submission and coming back to the login page w/o any errors or success message. So I enabled some logging:
Enabled debug in config.php (not receiving any on screen errors)
Tailed apache error logs
Through tailing the logs I found that it was having an issue with sendmail (trying to use it, but sendmail wasn't installed). So I installed sendmail and configured it. Now it takes forever (approx. 4.5 minutes) to processes, and I'm not receiving any errors in the apache logs, and no errors are reported on screen when it finally completes/timesout.