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 error with external databases #494

Closed
joooseb opened this issue Jan 9, 2020 · 8 comments
Closed

Installation error with external databases #494

joooseb opened this issue Jan 9, 2020 · 8 comments
Labels
Milestone

Comments

@joooseb
Copy link
Contributor

joooseb commented Jan 9, 2020

Describe the bug
There is not a way to configure external databases from installer, so Laravel throw an error trying to get a field "default theme from setting" in SQL database.
The unique way to avoid the error is configuring the external database parameters into laravel config file (because there's not a .env with configs). But new error appear (404 not found)... no way to run installer.

Version
7.0.0-beta.2

To Reproduce
Steps to reproduce the behavior:

  1. Go to phpvms url
  2. See error

Expected behavior
Installer views and logic.

Example:
http://www.dutchairwaysva.com/phpvms

@nabeelio
Copy link
Owner

nabeelio commented Jan 9, 2020

I wonder if this is related to #491. But I'm not 100% what you mean, if you enter the hostname and port properly, it should just work. Is the remote port open?

Trying to go to: http://www.dutchairwaysva.com/phpvms/install

It looks like URL rewrite isn't configured

@nabeelio nabeelio added the bug label Jan 9, 2020
@joooseb
Copy link
Contributor Author

joooseb commented Jan 9, 2020

No, isn't related to these issue, remote port is open and credentials in config/database.php has been entered properly. I will look the url rewrite, could it be the error there and laravel log file too.

@nabeelio
Copy link
Owner

nabeelio commented Jan 9, 2020

Yeah, I was gonna ask for the Laravel log next. There's nothing that I'm aware of that should block a remote DB - that's how I test it infact, with the included docker-compose file - the database is running in a separate container, and it connects to it through its hostname

@web541
Copy link
Contributor

web541 commented Jan 9, 2020

Not sure if this helps, but it looks like it could be a URL rewrite issue as the installer can be viewed by adding the /public to the end which you shouldn't have to do now.

http://www.dutchairwaysva.com/phpvms/public/install

@joooseb
Copy link
Contributor Author

joooseb commented Jan 10, 2020

Not sure if this helps, but it looks like it could be a URL rewrite issue as the installer can be viewed by adding the /public to the end which you shouldn't have to do now.

http://www.dutchairwaysva.com/phpvms/public/install

it works, but I changed the url setting in index.php to public/ and no lucky and in boostratp/app.php changed to phpvms/public and no lucky too with http://www.dutchairwaysva.com/phpvms/install but now the styles load correctly

@nabeelio
Copy link
Owner

nabeelio commented Jan 10, 2020 via email

@nabeelio
Copy link
Owner

Can you try this, if you're on Apache: #411 (comment)

@nabeelio nabeelio added this to the 7.0.0 milestone Jan 16, 2020
@nabeelio
Copy link
Owner

I'm going to close this for now. Also, I'm going to put a note on the docs that running phpVMS in a subfolder isn't going to work very well, especially under cPanel. The best way is to create a subdomain, and have that point to the /public folder. I'll create instructions on the docs site for this.

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

No branches or pull requests

3 participants