LINUX, FOSS AND LIBRARY TECHNOLOGY ENTHUSIAST

Sunday, January 26, 2020

Install Joomla CMS on Debian

0 comments
Joomla is a free and open-source content management system (CMS) for publishing web content, developed by Open Source Matters, Inc. It is built on a model–view–controller web application framework that can be used independently of the CMS. Joomla is written in PHP, uses object-oriented programming techniques and software design patterns, stores data in a MySQL, MS SQL, or PostgreSQL database, and includes features such as page caching, RSS feeds, printable versions of pages, news flashes, blogs, search, and support for language internationalization. 

Install LAMP stack

If you are installing Joomla on your Koha server you don't need to install a LAMP stack, already has it.  If you are installing in a fresh OS/server Install LAMP stack. from here make sure to install PHP version 7.3 from here. These commands can also be used for installing Joomla in Ubuntu.

Create a Joomla directory in the webroot

sudo mkdir /var/www/html/joomla

change into Joomla directory

cd /var/www/html/joomla

Download latest Joomla ( Click here for stable release)

sudo wget https://downloads.joomla.org/cms/joomla3/3-9-14/Joomla_3-9-14-Stable-Full_Package.zip?format=zip

Install Unzip if not,

sudo apt-get install unzip

Unzip Joomla package ( You need to change Joomla version name according to the stable version)

sudo unzip Joomla_3-9-14-Stable-Full_Package.zip?format=zip

Remove Zip file

sudo rm -rf Joomla_3-9-14-Stable-Full_Package.zip?format=zip

Fix website-access issues

sudo mv htaccess.txt .htaccess

Execute the command below in order to change the ownership of the Joomla files to the Apache www-data user.

sudo chown -R www-data.www-data /var/www/html/joomla

Change mode

sudo chmod -R 755 /var/www/html/joomla

Create a Joomla database

sudo mysql -uroot -p  (provide MySQL root password)

CREATE DATABASE joomla;
GRANT ALL PRIVILEGES on joomla.* to 'joomla'@'localhost' identified by 'joomla123';
FLUSH PRIVILEGES;
QUIT;

Restart Apache2

sudo service apache2 restart

Visit: http://127.0.0.1/joomla

Database Configuration Details

Database Type : MSQLi
Host Name : localhost
Username joomla
Password joomla123
Database Name : joomla

Follow onscreen instructions/wizard providing website name, administrative email id, username and password, etc.

No comments:

Post a Comment