Joomla LOMP Marketplace App
Version: 4.2.2 | OS: Ubuntu 20.04
Overview
OpenLiteSpeed (OLS) is the open-source edition of LiteSpeed Web Server, delivering high performance with HTTP/3 support. The Joomla LOMP (Linux, OpenLiteSpeed, MariaDB, PHP) stack offers a scalable and accelerated platform optimized for hosting Joomla websites.
Included Software
- Joomla - 4.2.2
- OpenLiteSpeed - 1.7.16
- MariaDB - 10.3.37
- LSPHP - 8.0
- phpMyAdmin - 5.2.0
- Postfix - 3.4.13
- Certbot - 0.40.0
Getting Started
Firewall & Access
Ensure the following ports are allowed:
Port | Service | Purpose |
---|---|---|
22 | SSH (rate limited) | Secure server access |
80 | HTTP | Web access |
443 | HTTPS | Secure web access |
7080 | LiteSpeed Admin UI | Web server admin panel |
Initial Deployment
Upon initial deployment:
mysql_secure_installation
is run- Joomla DB user is created
- OpenLiteSpeed admin password is set
- Joomla is configured to connect to the database
You will be disconnected with the message:
Please wait until the installation is completed....
Connection to $IPADDRESS closed.
Wait at least 2 minutes before logging in.
Accessing the Instance
- Login via SSH as
ubuntu
- Switch to root:
sudo su -
Upon first login:
- You will be prompted to enter a domain name
- This domain must have an A record pointing to your instance's IP
- To cancel, press Ctrl+C; the script will run again on next login
Joomla Web Installer
After setup, access Joomla at:
http://$IPADDRESS
or
http://yourdomain.com
Complete installation using the Joomla web interface.
Stored Credentials & Paths
- MariaDB root password:
/root/.mariadb_root_password
- Joomla DB info:
/root/.joomla_database_details
- phpMyAdmin access:
http://$IPADDRESS/phpmyadmin
- phpMyAdmin config:
/etc/phpmyadmin/
- Joomla config file:
/var/www/html/configuration.php
- Web root:
/var/www/html
- OpenLiteSpeed Admin Password:
/root/.Litespeed_Admin_Password
- OLS Admin Panel:
http://$IPADDRESS:7080
MariaDB Notes
- Login:
mysql
- User
dbadmin
: password-authenticated with full access - Root user uses
unix_socket
; password login is not recommended
SSL Setup with Certbot
- Ensure DNS A records are pointed correctly
- Run:
certbot certonly -d example.com -d www.example.com -w /var/www/html/
- Enable HTTP to HTTPS redirection:
- Edit:
/usr/local/lsws/conf/vhosts/joomla/vhconf.conf
Modify the rewrite
block:
rewrite {
enable 1
autoLoadHtaccess 1
rules <<<END_rules
RewriteCond %{SERVER_PORT} ^80$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
END_rules
}
- Restart OpenLiteSpeed:
/usr/local/lsws/bin/lswsctrl fullrestart
Postfix Configuration
- Set hostname:
hostnamectl set-hostname your.hostname.com
- Ensure DNS A and PTR records are configured
- Update
/etc/postfix/main.cf
:
myhostname = your.hostname.com
- Restart Postfix:
systemctl restart postfix
- Test email:
echo "Postfix test" | mail -s "Subject" test@gmail.com
Emails may initially go to spam until IP reputation improves.
Best Practices
- Change default admin credentials immediately
- Configure regular database and file backups
- Secure OpenLiteSpeed with strong passwords and firewall rules
- Use HTTPS and ensure Certbot auto-renewal is set up
For assistance, contact Cloud4India Support.