Hi,

I am trying to install Drupal using the Simple install of Drupal on XAMPP directions.

I followed all of the instructions to the letter several times but when I get to the "Select installation profile" part I get this error after stage 2 "Choose language" after pressing the save and continue button:

Fatal error: Interface 'DatabaseStatementInterface' not found in C:\xampp\htdocs\drupal\includes\database\prefetch.inc on line 22

Background: I think I have everything downloaded,
I have set up the database in phpmyadmin,
I have Apache and MySQL running,
I have copied the settings.php file,

....and everything seems ok until I get to stage 2 when I get the above error message.

Is there another file that I must amend to complete the installation?

Comments

bitradiator’s picture

Check the permissions of your settings.php file. During install it needs to be writable by others so that your database information can be recorded.

AdrupalCMS’s picture

Thank you for your reply bitradiator.
Changing settings of the settings.php file.

Could you tell me which of the settings I need to change?
I presume it needs some "extra" code adding to the file settings.php. and where in the script would I need to add it?

This would be a good walkthrough/record for others with the same problem as it isn't an obvious error for those following the drupal.org instructions.

Thanks for helping out.

AdrupalCMS’s picture

Following on I have changed the settings.php file script with:

$base_url = 'http://localhost/drupal'; // NO trailing slash!
$db_url = 'mysql://root:admin@localhost/drupal';

and installation still stalls at stage 2.
I have also made both files writeable, right-click, properties.

I should have also said that I am not uploading to a server but trying to instal Drupal 7 to my own computer using a XAMPP stack.

bitradiator’s picture

Installation guide
File/folder permissions and more on permissions.
Settings.php and more settings.php.

*AMP installations are all pretty much the same.