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

Installation: may require cpanel to create database #1045

Closed
robocoder opened this issue Nov 24, 2009 · 3 comments
Closed

Installation: may require cpanel to create database #1045

robocoder opened this issue Nov 24, 2009 · 3 comments
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.

Comments

@robocoder
Copy link
Contributor

On shared hosting, the db user typically won't have create database privilege.

If database creation fails, we can offer to use the cpanel xml api.

@robocoder
Copy link
Contributor Author

We can try to auto-detect cpanel. Hints that cpanel may be present:

  • /usr/bin/spamassassin-cpanel
  • /etc/cpanel_exim_system_filter
  • $HOME/.cpanel/ e.g., dirname($_SERVER['DOCUMENT_ROOT']) . '/.cpanel'

Note: be mindful of possible open basedir restrictions.

@mattab
Copy link
Member

mattab commented Dec 8, 2009

I think if users have cpanel, it is generally easy for them to create the DB anyway. I would say wont fix except if you feel like this is an issue for many users.

@robocoder
Copy link
Contributor Author

This made a mess of databaseSetup() in Installation/Controller.php. (Deeply-nested try...catch blocks.)

Deferring...

@robocoder robocoder added this to the Future releases milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Projects
None yet
Development

No branches or pull requests

2 participants