Skip to main content

Use drupal 🧢

·214 words·2 mins· loading · loading · · ·
SIRPS
Author
SIRPS
Interested in Electronic Devices and Computers
Table of Contents

Why drupal ??
#

Wordpress

prepearing
#

install php , composer , nginx
#

j@jnix:~/D/drupal
» composer -V
Composer version 2.8.1 2024-10-04 11:31:01
PHP version 8.2.25 (/nix/store/wz7b567a9mbqfm6rbxxnv6f8hdbqy8b4-php-with-extensions-8.2.25/bin/php)
Run the "diagnose" command to get more detailed diagnostics output.
j@jnix:~/D/drupal
» mysql -V
mysql  Ver 15.1 Distrib 10.11.10-MariaDB, for Linux (x86_64) using readline 5.1

composer create-project drupal/recommended-project drupal(site_name)

j@jnix:~/D/drupal
» ll
-rw-r--r--      357 B  j  users Nov 21 22:29:11 2024   .editorconfig
-rw-r--r--    4222 KB  j  users Nov 21 22:29:11 2024   .gitattributes
-rw-r--r--    3477 KB  j  users Nov 12 18:49:41 2024   composer.json
-rw-r--r--  170940 KB  j  users Nov 12 18:49:41 2024 󰈡  composer.lock
drwxr-xr-x    4096 KB  j  users Nov 21 22:29:11 2024   vendor
drwxr-xr-x    4096 KB  j  users Nov 21 22:29:11 2024   web

cd drupal
composer install

mysql settings
#

MariaDB [(none)]> create database drupal_db;
Query OK, 1 row affected (0.000 sec)

MariaDB [(none)]> create user 'drupaluser'@'localhost' identified by 'm';
Query OK, 0 rows affected (0.016 sec)

MariaDB [(none)]> grant all privileges on drupal_db.* to 'drupaluser'@'localhost';
Query OK, 0 rows affected (0.003 sec)

MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.000 sec)

MariaDB [(none)]> show databases;
+--------------------+
| Database           |
+--------------------+
| drupal_db          |
| information_schema |
| mysql              |
| performance_schema |
| sys                |
| test               |
+--------------------+