Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for combination of MSSQL driver and autofs filesystem for /home #995

Merged
merged 1 commit into from
Jul 7, 2018

Conversation

jamesmontalvo3
Copy link
Contributor

Make sure systemd has a valid $HOME for Apache.

Changes

Makes sure $HOME is set to a valid directory when running systemctl (re)start httpd. Without this, it appears that $HOME is set to /home by systemd. In most circumstances this has no impact, but when using the Microsoft SQL Server driver for PHP (aka SQLSRV) AND if autofs is used to manage users' home directories then a conflict can occur. SQLSRV will then look for the systemd user's odbcinst.ini file in /home/.odbcinst.ini, and because it doesn't exist autofs will attempt to mount it. Depending on autofs settings, this could lead to a very long lag (~2 minutes in one case). This autofs lag can cause systemctl (re)start httpd to timeout.

Issues

Post-merge actions

None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant