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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.2
    • 1.9, 2.0
    • Installation
    • None
    • GNU/Linux Slackware 12.0: Kernel 2.6.21.5-smp, Apache 2.2.4, MySQL 5.0.37, PHP 5.2.3
    • MySQL
    • MOODLE_18_STABLE
    • 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

            poltawski Dan Poltawski
            eus Eus
            Nobody Nobody
            Matteo Scaramuccia, Andrew Lyons, 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:
              3/Mar/08