Installing Drupal on NethServer

Drupal will not end up as something that you can manage through the NethServer interface. But installing Drupal is easy enough to do it over the commandline.
Creating a database for Drupal on NethServer is the same as on any other distribution. You can have a look at my Moodle installation howto in this forum: the part of creating a database and database user is the same: (change moodle for drupal)
Prerequisites are that you have the database module and the webserver module installed.

quote:

Create a mysql database and user for MoodleDrupal

The password for mariadb root account is stored in /var/lib/nethserver/secrets/mysql.

cat /var/lib/nethserver/secrets/mysql

Copy the password.
Now open a mysql prompt:
mysql -u root -p
Fill in the copied password and you will be in the Mariadb prompt:
MariaDB [(none)]>
Remember, every command you give in the Mariadb prompt must end with a ;

MariaDB [(none)]> create database moodledrupal;
MariaDB [(none)]> create user ‘moodledrupal’@‘localhost’ identified by ‘chooseyourdrupalpassword’;
MariaDB [(none)]> grant all privileges on moodledrupal.* to ‘moodledrupal’@‘localhost’;
MariaDB [(none)]> flush privileges;
MariaDB [(none)]> exit
Bye

3 Likes