Install and Configure Joomla
Detailed Steps for Setting Up Joomla on EC2 with RDS
- Update Package List
To ensure your package list is up to date with the latest versions and dependencies
sudo apt update
- Install Apache, PHP, and Required Modules
sudo apt install -y apache2 php libapache2-mod-php php-mysql php-xml php-gd unzip
- Start and Enable Apache
sudo systemctl start apache2
sudo systemctl enable apache2
- Download Joomla
cd /var/www/html
sudo curl -L -o joomla.zip https://github.com/joomla/joomla-cms/releases/download/3.9.28/Joomla_3.9.28-Stable-Full_Package.zip
- Extract Joomla
sudo unzip joomla.zip
- Set the Correct Permissions
sudo chown -R www-data:www-data /var/www/html
sudo chmod -R 755 /var/www/html
-Remove the Default Apache index.html File
sudo rm /var/www/html/index.html
-Edit the Apache Configuration File
sudo nano /etc/apache2/mods-enabled/dir.conf
Ensure index.php
is listed before index.html
so that PHP files are prioritized.
The line should look like this:
DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm
Save and exit the file (Ctrl+O, Enter, Ctrl+X).
-Restart Apache
sudo systemctl restart apache2
- Complete Joomla Installation
- Navigate to your EC2 instance’s public IP address in your web browser.
- Follow the Joomla installation wizard.
Select Default English(GB) Sample Data
Make sure to remove “installation” folder
Login to your Joomla application .
Create and post a sample Blog