Just as an FYI. Could it be stated for windows (or all OSs) in the documentation that the /tmp folder needs to be created on the drive that apache is installed on. This is an issue because by default windows does not have a tmp folder in the root of the drive. Another solution would be to make a config option for the location. If someone would like I could take a stab at coding that option.
Another option would be to put this under the logs sub-directory like many other Apache MM-like usages do.
This appears to be a duplicate of 20242.
*** Bug 20242 has been marked as a duplicate of this bug. ***
No, we're trying to deprecate the usage of the logs dir for anything but logging. It should use the localstatedir, it being, after all, local state.
Where is localstatedir and is it in fact guaranteed to exist (like the logs dir is)? [For now I've patched my Apache 2.0.46 to put this in logs, until a better home which is guaranteed to exist "out-of-the-box" (without additional configuration) can be found for it.]
Additionally: Whatever localstatedir is supposed to be, using a hard-coded absolute path is a non-starter. Why? Though it is certainly not recommended, there are times where one must run 2 Apache's on one system (and even on one drive on Windows). Thus the path use should be configurable or relative to the Apache installation directory. The latter is easy and relatively foolproof. If 'logs' is verboten, then how about introducing a standard 'tmp' directory in the Apache layout (complete with proper permission assignment in the binary installer, etc) and using it? Until that's done, I'll stick with using logs...
Created attachment 6969 [details] mod_ldap shared mem location patch
this patch add a new directice LDAPSharedMemCache. with it you can specify the location of the shared mem cache within your httpd.conf
enabling the PatchAvailable keyword updated doc on submitting patches is at http://httpd.apache.org/dev/patches.html
Does the LDAPSharedCacheFile directive solve this problem?
Yes the directive fixes the problem