January 9, 2017

Installing Joomla in Debian Linux server

Many websites today use Content Management Systems (CMS) that allow you to make changes to a website without needing to touch a single line of code.

The most well know CMS are WordPress, Joomla and Drupal. All of them are free to install on your server.


How to install Joomla on Debian Linux.

1. Prequisite softwares. Make sure your server have these software installed
- MySQL (or any database)
- PHP (check using : php -version)
- Apache Web Server (or any other web server)

2. Create database for Joomla. The database will store data such as articles, menus, categories, and users.
- login to MySQL
- CREATE DATABASE DB_JOOMLA

3. Download Joomla.
- First, create a temporary directory called temp anywhere : mkdir temp
- go to into the directory : cd temp
- download Joomla to that directory : wget https://downloads.joomla.org/cms/joomla3/3-6-5/joomla_3-6-5-stable-full_package-zip?format=zip

4. Copy Joomla files into Apache Web Server and set permission
- first, create a directory under Apache Web Server : mkdir -p /var/www/html/joomla
- unzip downloaded .zip file to our folder in Apache Web Server : unzip -q Joomla_3.6.5-Stable-Full_Package.zip -d /var/www/html/joomla
- set permission for that folder appropiately :
chown -R www-data.www-data /var/www/html/joomla
chmod -R 755 /var/www/html/joomla

5. Now, we're ready to proceed with the installation of Joomla. Go to http://{your-server-ip}/joomla.
Installation page should appear. Provide the neccesary values and click next
Site Name = kwt
Description = kwt
Admin Email = mrafsyam@gmail.com
Admin Username = admin
Admin password = admin
Confirm Admin Password = admin


You should write down the admin username and password for you to login later (currently uses admin/admin)


6. In the next page, provide the database connection
Database Type = MySQLi
hostname = localhost
username = {provide a db username}
password = {password}
Database Name = db_joomla (created previoysly)
Table Prefix = jml_ (you can provide any value here)



7. Next, skip the FTP configuration step.

8. At Overview tab, select Blog English at Install Sample Data and press Install.
The installation will begin.



9. Once installation is completed, remove the installation folder.



10. Joomla is successfully installed. Go to http://{your-server-ip}/joomla/administrator/ and login as admin (check step 5). This is Joomla's Admin Panel.



11. Bravo, Joomla is installed. Go ahead and play around.
You can view your site at http://{your-server-ip}/joomla