Comment 5 for bug 234609

Revision history for this message
Rui Boon (ruiboon) wrote :

Setting status to confirmed as i am able to replicate it (Test case A). (not sure if test case B produce the same result though. )

Dependency is an either-or type (php5-pgsql | php5-mysql). Therefore when user has either one installed, but has chosen a option that required the other to be needed, the webpage could not load. There was no warning from the postinst script as it uses perl (DBI) to connect to the database.

Test case:
(A) mysql
0) Ensure mysql is installed and running and php5-mysql is not installed
1) sudo apt-get install moodle
2) Select mysql and enter database details

(B) pgsql
0) Ensure pgsql is installed and running and php5-pgsql is not installed
1) sudo apt-get install moodle
2) Select mysql and enter database details

Actual result
The postinst script created a table in the database (correct behaviour).
However when going to the moodle webpage (http://localhost/moodle/admin), php error occurs. The error is caused by missing php5-mysql.

Expected result.
The postinst script created a table in the database
Moodle webpage works.