Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-10607

Single quote in the password to the database during Moodle installation breaks the process

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.2
    • Fix Version/s: 1.9, 2.0
    • Component/s: Installation
    • Labels:
      None
    • Environment:
      GNU/Linux Slackware 12.0: Kernel 2.6.21.5-smp, Apache 2.2.4, MySQL 5.0.37, PHP 5.2.3
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE

      Description

      I have setup a database named `moodle' which a user named `moodle' identified by password `Let's Learn!' will use.

      In one of the dialog during the installation process that asked me for the database settings, I entered `Let's Learn!' as the password.

      Later after there was a notification that `config.php' had been created successfully, the installation process stopped.

      Checking the last line in the error log, there is a line saying:
      [error] [client 127.0.0.1] PHP Parse error: syntax error, unexpected T_STRING in /var/www/htdocs/moodle/config.php on line 9

      Looking at `config.php', I found the following line:
      $CFG->dbpass = 'Let's Learn!';

      After I changed the above line to:
      $CFG->dbpass = 'Let\'s Learn!';
      I can continue the installation process by opening `index.php' once again.

        Attachments

          Activity

            People

            Assignee:
            poltawski Dan Poltawski
            Reporter:
            eus Eus
            Tester:
            Nobody
            Participants:
            Component watchers:
            Matteo Scaramuccia, Andrew Nicols, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              3/Mar/08