1) Overview
This guide shows you how to set up Joomla 6 both locally (for development) and on a live server (for production). We’ll create a database, copy files, and complete the Joomla web installer, then lock things down with essential security steps.
Tip: Always prototype locally first. You’ll build faster and avoid breaking a live site.
2) Requirements
Server software
- Web server: Apache or Nginx
- PHP: 8.0+ with common extensions (json, mbstring, xml, zip, gd)
- Database: MySQL 5.6+/MariaDB 10.1+ or PostgreSQL 11+
You’ll need
- Latest Joomla package: downloads.joomla.org
- Local stack: XAMPP (Win/Linux) or MAMP (macOS)
- FTP client (live): FileZilla or host File Manager
- Text editor: VS Code, Sublime, etc.
3) Local install (XAMPP/MAMP)
3.1 Download and start services
- Install XAMPP or MAMP.
- Start Apache (or Nginx) and MySQL.
3.2 Create a database
- Open http://localhost/phpmyadmin.
- Create database, e.g. joomla6_db (utf8mb4, collation utf8mb4_unicode_ci).
- Local defaults: user root, password blank (unless you set one).
3.3 Place Joomla files
- Find the document root:
- XAMPP: .../xampp/htdocs/
- MAMP: .../MAMP/htdocs/
- Create folder joomla6 and extract the Joomla ZIP into it.
- Visit http://localhost/joomla6.
4) Run the web installer (local)
- Site setup
- Site name, admin email
- Admin username and a strong password
- Database
- Type: MySQLi
- Host: localhost
- User: root (or your user)
- Password: (blank unless set)
- Database: joomla6_db
- Table prefix: leave default or randomize
- Install → wait for completion.
After install, click “Remove installation folder” when prompted.
Admin login: http://localhost/joomla6/administrator
5) Live server prep (cPanel/Plesk)
5.1 Check hosting
- PHP 8.0+ and MySQL/MariaDB available
- File manager and database tools in your control panel
5.2 Create DB and user
- In cPanel: MySQL® Databases → New database (e.g. acct_joomla6).
- Create a DB user and strong password.
- Assign user to database with ALL PRIVILEGES.
5.3 Upload files
- Target directory:
- Main domain: public_html/
- Subfolder: public_html/joomla6/
- Upload the Joomla ZIP and extract in place (faster via File Manager), or FTP all extracted files.
6) Run the web installer (live)
- Open your domain, e.g. https://example.com or /joomla6.
- Site setup: site name, admin email, username, strong password.
- Database:
- Type: MySQLi
- Host: often localhost (check host docs)
- User: your DB user
- Password: your DB user password
- Database: your DB name
- Click Install Joomla.
Very important on live servers: delete the installation folder immediately when prompted.
Admin login: https://example.com/administrator
7) Post‑installation hardening
- Change the default admin user to a unique username.
- Enable HTTPS and force SSL (Global Configuration → Server).
- Set file permissions (typical: files 644, folders 755).
- Configure SEO URLs: enable URL rewriting and rename htaccess.txt → .htaccess.
- Install and enable a backup extension; set scheduled backups.
- Set up a staging site for future updates.
8) Troubleshooting
- Blank page / 500 error: Check PHP error log; verify PHP 8+ and extensions.
- Database connection failed: Re‑check DB name, user, password, host.
- Installation folder not removed: Delete the installation directory manually.
- Pretty URLs don’t work: Enable mod_rewrite and use .htaccess.