Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Trying to do a clean install of Drupal 7.8 on a VM with Centos 5.6 64-bit, PHP 5.3.3, MySQL 5.0.77, pdo_mysql 5.0.77.
I have created the database, database user and granted permissions, and updated the relevant info in settings.php.
Here is what I see when I visit the site (or index.php):
Error
The website encountered an unexpected error. Please try again later.
Error messagePDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table '[databasename].semaphore' doesn't exist: SELECT expire, value FROM {semaphore} WHERE name = :name; Array ( [:name] => variable_init ) in lock_may_be_available() (line 167 of /var/www/[drupaldir]/includes/lock.inc).
This additional PHP error also shows up with error reporting (and in the httpd error log):
Fatal error: require() [<a href='function.require'>function.require</a>]: Cannot redeclare class queryconditioninterface in /var/www/[drupaldir]/includes/database/database.inc on line 1741
(See also this thread for more such reports: http://drupal.org/node/1280552.)
Comments
Comment #1
matthewv789 CreditAttribution: matthewv789 commented(considering several other reports with the same version and that this is preventing installation, should this be considered major?)
Comment #2
catchDuplicate of #728702: Visiting index.php should redirect to install.php if settings.php already has database credentials but database is empty..
Comment #3
matthewv789 CreditAttribution: matthewv789 commentedThanks. I tried that, and one of the errors goes away. But now I get this:
When I re-copied my settings.php from default.settings.php, it let me go through the installation process until after choosing the installation profile and language and trying to set db information (that is, at /install.php?profile=standard&locale=en), then gave the above error.
I also nuked the whole Drupal directory and untarred it again, with the same results.
Could it be something wrong with the PDO installation? Or is it earlier in the process than that, since it should be at "Verify requirements"? A phphinfo() call shows:
Note: I'm also getting a slew of the following warnings in a red box on each page of install.php, but I wasn't assuming they were related to the DB problems, and they aren't preventing going to the next screen. But noting here just in case:
(repeats about 22 times...)
Comment #4
matthewv789 CreditAttribution: matthewv789 commentedRe-opening since we're still having problems - maybe better to keep history together, and in case there is some common thread of these seemingly-disparate errors?
I tried with 7.7 and got the same problems, so we're suspecting something wrong with our Apache/PHP/PDO/MySQL installation, but not sure what it might be yet.
Comment #5
matthewv789 CreditAttribution: matthewv789 commentedOK, for completeness sake, my additional problems were caused by having:
apc.include_once_override = 1
instead of:
apc.include_once_override = 0
in my php.ini.
Now working fine.
Comment #6
drupal a11y CreditAttribution: drupal a11y commentedIn my case of a D7.12 the error was due to an older "settings.php" and a missing "hash salt" e.g. "$drupal_hash_salt = '-_FeMq3qssldi3TN2nH1L7T-4moRb8r_Nepj3wXxsCY';".