How to Install Orchard CMS with LAMP Stack on AlmaLinux 8
Orchard Core is an open-source modular and multi-tenant application framework built with ASP.NET Core, and a content management system (CMS) built on top of that framework. In this article, we are going to learn how to install Orchard CMS on AlmaLinux 8. So, let’s get started.
Checkout the Orchard CMS Project Here.
Try this wiki on our VPS. Starting at just $5/month with 24x7 In-house customer support.
Pre-requisites :
-
A system with AlmaLinux 8 installed and running.
-
root
access to the system. -
Docker installed and running, for this, you can refer to one of our guides on installing the Docker on AlmaLinux 8.
- LAMP Stack installed and running, for this, you can refer to one of our guides on installing the LAMP Stack (Apache, MariaDB, and PHP).
Once you're all set, we'll proceed with Orchard CMS installation and configuration.
Create Database
Let us begin with creating a Database and a user. We will then grant the required privileges to the user so it can interact with the Database.
mysql -u root
CREATE DATABASE ccpresta;
CREATE USER 'ccpresta'@'localhost' IDENTIFIED BY 'UYGVc%$#Erfgt*&^%4';
GRANT ALL PRIVILEGES ON ccpresta.* TO 'ccpresta'@'localhost';
FLUSH PRIVILEGES;
quit
The above commands will give complete access to ccpresta Database to the user
ccpresta
.We would suggest using a strong and long password.
Configure PHP Settings for Orchard CMS
Configure PHP Memory Limit, Post max size, and Upload max filesize. You can change the limit as per your need.
sed -i 's/memory_limit = .*/memory_limit = 256M/' /etc/php/7.4/apache2/php.ini
sed -i 's/post_max_size = .*/post_max_size = 64M/' /etc/php/7.4/apache2/php.ini
sed -i 's/upload_max_filesize = .*/upload_max_filesize = 64M/' /etc/php/7.4/apache2/php.ini
Enable Apache module if not already enabled then restart the Web Server.
a2enmod php7.4
systemctl restart apache2
Enable http and https ( 80/443/8080 ):
To enable http and https connection through the firewall, follow the commands:
firewall-cmd --zone=public --permanent --add-port 8080/tcp
firewall-cmd --zone=public --permanent --add-port 80/tcp
firewall-cmd --zone=public --permanent --add-port 443/tcp
firewall-cmd --reload
Install Orchard CMS using Docker
Let's install Orchard CMS using below command:
docker run --name orchardcms -p 8080:80 orchardproject/orchardcore-cms-linux:latest
Configuring Orchard CMS
Now open the IP address from your browser, this will redirect you to configuring the final parts of the Orchard CMS installation.
http://dev1.domainhere.info:8080
Replace the
dev1.domainhere.info
with the actual IP or domain configured on the server.
Input the Database details which was configured earlier. Follow the below steps:
Now you have successfully installed Orchard CMS with LAMP Stack on AlmaLinux 8.
CrownCloud - Get a SSD powered KVM VPS at $4.5/month!
Use the code WELCOME
for 10% off!
1 GB RAM / 25 GB SSD / 1 CPU Core / 1 TB Bandwidth per month
Available Locations: LAX | MIA | ATL | FRA | AMS