I have a dev and a testing environment that (ostensibly) are set up the same, but code that works on the dev server doesn't work on the test server. I've narrowed it down to memcached. The dev environment is using memcached and that works fine; but there is no session storage on the test server using the memcached driver in the application's config file. If I change the test server to use Laravel's native file driver, all the session-based code works like a charm; change it back to using memcached, and session data is not persisted. The code is identical; both environments are cloned from the same repo at the same commit. Output from phpinfo()
in both environments is nearly identical, aside from the server URL and referrer path differences you would expect from running the script on different servers. It just seems like memcached isn't running/working on the test server, and I'm not familiar enough with how it works to know why not or how to troubleshoot. Anyone have any hints or things to try? Could it be a permissions problem? Is there a config file I need to change on the test server to match what's on dev? (The phpinfo()
output for the memcached section is exactly the same for both servers.)
Server setup:
- Dev: Debian 7.4 Wheezy
- Test: Debian 7.5 Wheezy
- PHP (both): 5.4.27-1~dotdeb.1
- Apache (both): 2.2.22