Install Apache, Php
sudo apt install apache2
sudo apt install php php-common libapache2-mod-php php-cli php-fpm php-mysql php-json php-opcache php-gmp php-curl php-intl php-mbstring php-xmlrpc php-gd php-xml php-zip
php -v
/etc/php/7.2/apache2/php.ini
edit php.ini:
memory_limit = 512M
upload_max_filesize = 256M
post_max_size = 256M
max_execution_time = 300
output_buffering = off
date.timezone = Asia/Kolkata
Install and Config
sudo apt install -y mariadb-server mariadb-client
mysql_secure_installation
mysql -u root -p
CREATE DATABASE joomla;
GRANT ALL PRIVILEGES ON joomla.* TO 'joomla'@'localhost' IDENTIFIED
BY '123Joomla';
FLUSH PRIVILEGES;
exit
Install Joomla
wget https://downloads.joomla.org/cms/joomla4/4-0-3/Joomla_4-0-3-Stable-Full_Package.zip
apt install unzip -y
sudo unzip Joomla_4-0-3-Stable-Full_Package.zip -d /var/www/html/joomla
sudo chown -R www-data: /var/www/html/joomla
Configure Apache for Joomla
nano /etc/apache2/sites-available/joomla.conf
#paste
ServerAdmin admin@exampla.com
DocumentRoot /var/www/html/joomla/
ServerName exampla.com
ServerAlias www.exampla.com
Options FollowSymlinks
AllowOverride All
Require all granted
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
a2ensite joomla.conf
systemctl restart apache2