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

Socket syntax unclear for dbhost variable #11740

Open
DataGhost opened this issue Apr 15, 2024 · 1 comment
Open

Socket syntax unclear for dbhost variable #11740

DataGhost opened this issue Apr 15, 2024 · 1 comment

Comments

@DataGhost
Copy link

Thanks for helping improve our documentation!

  • There is always room for improvement!
  • All contributions (changes and change ideas) - from the largest to the tiniest - help make Nextcloud better and easier to use!

The current documentation has a slight oversight when using unix sockets for the database connection https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#dbhost
It looks like specifying 'dbhost' => '/path/to/socket' should be sufficient but that actually results in an internal server error with "Name or service not known" in the logs (or sometimes not, somehow). The correct syntax appears to be 'dbhost' => 'localhost:/path/to/socket' or even 'dbhost' => ':/path/to/socket' though I am not sure the latter syntax is portable across all databases.


Notes

  • Please be patient: this is a large open source project that is overseen by a mixture of volunteers and non-volunteers which are all ultimately busy.
  • If your suggestion is a troubleshooting scenario or one you're not 100% certain about, please post for feedback on the Nextcloud Help Forum first.
    • Then return here to bring back your experience to help improve the documentation for clarity, etc. (and link back to the forum discussion in your report!)

Protip: If you want to help move things along (or just help out in other ways too) here are some suggestions:

  • Look for areas where you can assist - even seemingly unrelated areas - because doing so frees up resources for your favorite topics and ideas.
  • Submit a proposed change - that attempts to addresses your issue - as a pull request.
  • Participate in a discussion on some other unresolved submitted idea ("issues") to help move it along.
  • Post a comment or review on someone else's proposed change ("pull request") to help move it along.
@joshtrichards
Copy link
Member

👍 The examples here are a bit vague too as far as UNIX sockets go: https://docs.nextcloud.com/server/latest/admin_manual/configuration_database/linux_database_configuration.html

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

No branches or pull requests

2 participants