MediaCMS is an open-source, powerful, and easy-to-use Content Management System (CMS) designed specifically for media-focused websites. In this tutorial, we'll walk you through the installation of MediaCMS on MXLinux Latest.
Before we begin, there are a few things you need to have in place:
The first step is to make sure your server is up to date. Run the following command to update the system packages:
sudo apt update && sudo apt upgrade -y
MediaCMS requires some dependencies to work correctly. Install the required packages using the following command:
sudo apt-get install -y curl git unzip zip php7.4 php7.4-fpm php7.4-mysql php7.4-zip php7.4-gd php7.4-curl php7.4-xml php7.4-mbstring php7.4-bcmath nginx mariadb-server
The next step is to download the latest version of MediaCMS from the official website. Run the following command to download the package:
wget https://github.com/mediacms-io/mediacms/releases/latest/download/mediacms.zip
Unzip the downloaded package and move the MediaCMS files to your webserver root directory with the following commands:
unzip mediacms.zip
sudo mv mediacms /var/www/html/
Grant permissions to the MediaCMS folder using the following command:
sudo chmod -R 755 /var/www/html/mediacms/
Create an Nginx server block for MediaCMS with the following command:
sudo nano /etc/nginx/sites-available/mediacms
Then, paste in the following Nginx configuration template:
server {
listen 80;
server_name your_domain.com;
root /var/www/html/mediacms/public;
index index.php;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
}
location ~ /\.ht {
deny all;
}
}
Save and close the file.
Enable the Nginx server block by creating a symlink:
sudo ln -s /etc/nginx/sites-available/mediacms /etc/nginx/sites-enabled/
Reload Nginx for the changes to take effect:
sudo systemctl reload nginx
Create a new database and user for MediaCMS using the following commands:
sudo mysql -u root -p
CREATE DATABASE mediacms;
CREATE USER 'mediacms'@'localhost' IDENTIFIED BY 'your_password';
GRANT ALL ON mediacms.* TO 'mediacms'@'localhost';
FLUSH PRIVILEGES;
exit
Copy the mediacms/.env.example
file to .env
using the following command:
cd /var/www/html/mediacms
cp .env.example .env
Open the .env
file using a text editor and configure the following parameters:
APP_URL=http://your_domain.com
DB_HOST=localhost
DB_DATABASE=mediacms
DB_USERNAME=mediacms
DB_PASSWORD=your_password
Save and close the file.
Open your web browser and navigate to http://your_domain.com/install
. Follow the prompts to complete the installation process.
Once installation is complete, log in to MediaCMS using the admin credentials you created during installation.
That's it! You have successfully installed MediaCMS on MXLinux Latest.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!