Hello,
I'm trying to install drupal 7 by a script. In fact accordingly to drupal doc it is possible to make a non interactive installation of the CMS by calling install_drupal($settings) function.
So far I ain't get anywhere, I just found a script on internet that is supposed to do exaclty so but I have DB connexion errors when I try it. I tried to debug the script but it's way to long, really not easy to find the error.
This is the script :
<?php
$settings = array(
# First, tell Drupal you are not using the interactive installer.
'interactive' => FALSE,
# This part is required for multisite support. The keys
# you put here overwrite the $_SERVER array, allowing Drupal
# to find a site path (in this case, localhost.my.site, my.site etc.
'server' => array(
'HTTP_HOST' => 'localhost',
'SCRIPT_NAME' => '/my/site',
),
# Next, choose the profile and locale Drupal should use.
# The profile must be in a ./profiles/$profile/ folder.
'parameters' => array(
'profile' => 'expert',
'locale' => 'en',
),
# This is the data that will be submitted to the various
# forms in the installation wizard.
'forms' => array(
# Database configuration.
'install_settings_form' => array(
'driver' => 'mysql',
'database' => 'db_name',
'username' => 'db_user',