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

Install fails when MySQL "NOT OK" even if other DB present #4240

Closed
rcubetrac opened this issue Jun 18, 2013 · 4 comments
Closed

Install fails when MySQL "NOT OK" even if other DB present #4240

rcubetrac opened this issue Jun 18, 2013 · 4 comments

Comments

@rcubetrac
Copy link

Reported by cepheid on 18 Jun 2013 00:30 UTC as Trac ticket #1489178

On a system with PHP v5.2.x, the installer's MySQL check will always return "NOT OK" since PHP v5.3.x is required. However, if another DB is available (e.g. sqlite), the installation should be able to proceed. It does not -- the installer will claim that the error must be fixed before proceeding.

This occurs because installer/check.php (line 142) registers a failure ($RCI->fail) for MySQL. Then, installation is blocked if ANY failures exist (check.php, lines 237-242). However, the installer itself specifically says only ONE of the DB methods must be available... it should not fail simply because MySQL isn't available, if another DB method (e.g. sqlite) is available.

A workaround is to edit installer/rc_install.php and comment out the pdo_mysql check (line 54). This will allow the installer to proceed. This is, of course, not the correct solution. The optimal solution is to modify check.php so that it will error out only if MySQL fails AND no other DB solution is available. That is, if ANY DB solution is available, there should not be a failure.

I can provide a screenshot if necessary.

(Note: I have verified on my own system that installation and operation proceed just fine with the workaround above. I am using sqlite3 with php v5.2.x.)

Migrated-From: http://trac.roundcube.net/ticket/1489178

@rcubetrac
Copy link
Author

Milestone changed by @alecpl on 18 Jun 2013 06:14 UTC

later => 1.0-beta

@rcubetrac
Copy link
Author

Comment by @alecpl on 18 Jun 2013 11:55 UTC

Fixed in e7fa2ce.

@rcubetrac
Copy link
Author

Status changed by @alecpl on 18 Jun 2013 11:55 UTC

new => closed

@rcubetrac
Copy link
Author

Milestone changed by @alecpl on 18 Jun 2013 11:55 UTC

1.0-beta => 0.9.3

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

1 participant