-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
Contao 4 on IIS can't connect to database #1324
Comments
|
Did you check the log files? |
|
I tried, but there are no log files. |
|
Please try it in debug mode ( |
|
I can confirm that any error regarding the database connection in the install tool will not be logged or displayed anywhere, even in the dev environment. There will be no log entry and Symfony's profiler will also show no reason for the failed connection. This should definitely be changed. It's important to know the actual error text and code of the failed connection attempt in order to figure out the problem. |
|
Okay, well I guess I have more issues then that. I believe I was getting the "Could not connect to database" error because I had gone through a domain to the install. When I try to go through localhost, I can't login. (To the contao install) On a fresh install of 4.5.3 (manual or composer) I type my password in and it just reloads the page and continues to ask for the password. It doesn't say invalid password or anything like that.
|
|
An update... Depreciations
Then under errors and info it shows this
Now it's also printing this in the log:
|
|
Well I have figured out finally why it wouldn't connect... I browsed the "main page" and saw something about pdo connection. So I checked my php settings and pdo_mysql was disabled. Now, I have yet another problem. When using the app.php the backend theme won't display, however when using the app_dev.php it shows? There's no css at all. It does give a contao message saying that javascript is disabled, but it isn't. There are no error logs either. At least I'm getting closer though :) |
|
Okay, another update on the css... Maybe I should post it in a new issue, because it seems to be related to Contao 4.5, as I've put Contao 4.4 on and it's all working now. :D |
Fixed in contao/installation-bundle@9ca96ed. |
Description ----------- Fixes #1205 <img width="550" alt="" src="https://user-images.githubusercontent.com/1192057/74481571-43b0e380-4eb3-11ea-9bfa-3a5eb743441a.png"> Commits ------- 42f85a4e Sort the back end menu items alphabetically by label (see #1205)
I'm trying to run Contao 4 on IIS and get it to connect to a database on a different machine. I can connect to it when running MAMP on my Mac.
I can also connect to the database server from the same machine I'm trying to install Contao 4 on, with an older version of Contao.
I would like Contao to show or log why it can't connect to the database.
The text was updated successfully, but these errors were encountered: