This guide installs Drupal using Composer (recommended by Drupal).
composer create-project drupal/recommended-project drupal-site
cd drupal-site
The document root will be in the web/ directory.
sudo mysql -u root -p
CREATE DATABASE drupal_db CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
CREATE USER 'drupal_user'@'localhost' IDENTIFIED BY 'StrongPassword123!';
GRANT ALL PRIVILEGES ON drupal_db.* TO 'drupal_user'@'localhost';
FLUSH PRIVILEGES;
EXIT;
Point your web server to the web/ directory and open:
http://example.com
Follow the web installer to set the admin account and site details.
Check the Drupal installation guide or reach out via our contact page.