How to Install Nucleus CMS in Linux

Nucleus CMS is a free, open-source software designed for managing blogs and web content. Nucleus CMS is Written in PHP. It allows users to easily create, organize, and publish their posts, making it suitable for both beginners and experienced users. One of the main advantages of Nucleus CMS is its lightweight design, which ensures fast performance without unnecessary features. It supports multiple authors and offers customizable templates and plugins, allowing users to tailor their websites to their liking.

Nucleus CMS works on various operating systems, including Windows, macOS, and Linux. Installing it on Linux is particularly beneficial due to its strong security, stability, and performance. In this tutorial, we’ll provide a step-by-step process for installing Nucleus CMS on Linux. 

Installing Nucleus CMS in Linux

Nucleus CMS is an open-source content management system (CMS) designed for managing web content, including blogs. To install Nucleus CMS on Linux, first, update the system repositories to get the latest package information and security updates:

sudo apt update

After this, make sure you meet the pre-requisites and then go through the following steps to install Nucleus CMS on Linux:

Step 1: Install LAMP Stack

Let’s proceed to install the essential components needed for setting up Nucleus CMS on Linux:

sudo apt install apache2 mysql-server php libapache2-mod-php php-mysql -y
install lamp stack

Step 2: Start and Enable Apache

Now execute the below-provided command to start the Apache server:

sudo systemctl start apache2

After this, enable Apache as well using the systemctl command as follows:

sudo systemctl enable apache2
enable apache

Step 3: Start and Enable MySQL

After starting and enabling Apache, you must also start the MySQL, which can be done using the following command:

sudo systemctl start mysql

Next, you need to enable MySQL which can be done by running the following command:

sudo systemctl enable mysql
enable mysql

Step 4: Database Creation For Nucleus CMS

Now, access MySQL and then set up a new database for Nucleus CMS:

sudo mysql -u root -p
access mysql

After logging into MySQL, you can create a new database with the following command:

CREATE DATABASE db_name;
create database

Also, you need to create a new user for your database which can be done by executing the command below:

CREATE USER 'user_name'@'localhost' IDENTIFIED BY 'password';
create user

Next, give the new user full access to the database you just created:

GRANT ALL PRIVILEGES ON databse_name.* TO 'user_name'@'localhost';
grant all privileges

Refresh the privileges to make sure MySQL applies the changes you made:

FLUSH PRIVILEGES;

Finally, exit the MySQL database:

EXIT;
flush privileges

Step 5: Download Nucleus CMS 

Once the database is set up, run the wget command to download Nucleus CMS from the official website:

wget https://github.com/Inventua/nucleus-core/releases/download/v2.0.0/Nucleus.2.0.0.0.Install-linux_x64.zip
download nucleus cms

Extract the Nucleus CMS downloaded file with the command below:

unzip Nucleus.2.0.0.0.Install-linux_x64.zip
extract nucleus cms

Step 6: Configure Apache for Nucleus CMS 

Now create an Apache configuration file for Nucleus CMS:

sudo nano /etc/apache2/sites-available/nucleus.conf

In this file, add the following code to configure Apache for Nucleus CMS:

<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot /var/www/html/nucleus
    ServerName domainName
    <Directory /var/www/html/nucleus>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Step 7: Enable Nucleus CMS Site

Next, enable the Nucleus CMS configuration to allow Apache to serve the site upon receiving requests:

sudo a2ensite nucleus.conf
enable nucleus cms

Now enable the mod_rewrite to ensure the proper functioning of Nucleus CMS. It enhances URL management, supports custom routing, and improves SEO capabilities: 

sudo a2enmod rewrite

Once the module is enabled, be sure to restart Apache for the changes to take effect:

sudo systemctl restart apache2

Step 8: Install Nucleus CMS Linux

Finally, enter the IP address or domain name you configured for Nucleus CMS in your web browser:

http://your-domain-name/nucleus/install/
nucleus cms installation page

Specify the login details and follow the on-screen prompts to finish the installation on Linux:

mysql login data

Congratulations on your successful installation! You’ll now see a welcome page that highlights best practices for using Nucleus CMS effectively:

nucleus cms

That sums up the installation process for Nucleus CMS on Linux.

Conclusion

Nucleus CMS provides a feature-rich solution for managing web content. Nucleus CMS is a great option for both beginners and advanced users. Its lightweight structure, multi-author support, and customizable features provide a seamless user experience. In this article, we’ve explained a step-by-step process for installing and successfully setting up Nucleus CMS on Linux.

Ultahost offers a comprehensive and flexible solution for managed PHP hosting at competitive prices. You can count on exceptional reliability and performance. With Ultahost, you can set up a fast PHP server in seconds! Enjoy the ease of creating and launching your PHP applications and websites on our high-performance servers.

FAQ

What is Nucleus CMS?
What are the main features of Nucleus CMS?
Can I use Nucleus CMS on Windows or macOS?
What are the benefits of installing Nucleus CMS on Linux?
Is LAMP stack a prerequisite for Nucleus CMS?
How to create a database for Nucleus CMS?
How do I download and install Nucleus CMS?

Related Post

Nohup Command in Linux

The Nohup command, which stands for "no hang up," is a ...

How to Check Disk Free Space on Linux

Checking and managing free space on your system disk is...

Exploring Linux cut Command with Examples

The Linux cut command is a powerful utility that allows...

How to Check Linux Version

Linux is an open-source operating system that offers a ...

How to Fix Update and Upgrade Issues in Kali

Kali Linux is a powerful and versatile operating system...

How to Install October CMS on Linux

October CMS is a flexible, open-source content manageme...

Leave a Comment