🛠️ Step 2: Install Drupal 10 Using Composer
Open your terminal (or Command Prompt in Windows):
composer create-project drupal/recommended-project drupal10
This will create a new folder drupal10/ with all the necessary files.
📁 Step 3: Set File Permissions
For Linux/macOS:
cd drupal10
mkdir -p web/sites/default/files
cp web/sites/default/default.settings.php web/sites/default/settings.php
chmod 644 web/sites/default/settings.php
chmod -R 775 web/sites/default/files
For Windows (XAMPP), ensure sites/default folder is writable.
⚙️ Step 4: Set Up a Local Web Server
🧪 Option A: Use PHP Built-in Server
php -S localhost:8888 -t web
Visit: http://localhost:8888
🧪 Option B: XAMPP
Move the entire drupal10/ folder into htdocs/.
Go to: http://localhost/drupal10/web
💾 Step 5: Create a Database
Create a new empty database using phpMyAdmin or MySQL CLI:
CREATE DATABASE drupal10;
Note the database name, username, and password for the installer.
🌐 Step 6: Run the Installer in Browser
Open your browser and go to:
http://localhost/drupal10/web
Then:
Choose installation language
Select Standard profile
Enter your database credentials
Set up your admin username/password
🧹 Final Step: Secure Permissions
For production or security:
chmod 444 web/sites/default/settings.php
✅ Done!
Drupal 10 is now installed.
No comments:
Post a Comment