How to Install Concrete CMS with Nginx on Ubuntu 24.04
Setup Let’s Encrypt SSL/TLS for Concrete
Let’s Encrypt secures your Concrete CMS website by enabling HTTPS encryption for all visitor connections. Install the Certbot tool on your Ubuntu server and configure your Nginx blocks to request a free SSL certificate. This protects user passwords and form data from being intercepted on the network. Keeping your Concrete CMS site secure is important, so let’s set up an SSL/TLS certificate using Let’s Encrypt with Nginx on Ubuntu. This process encrypts the connection between your visitors and your website, making it safe. We’ll guide you through the steps to get HTTPS working. Please read the post below for additional resources on installing and creating Let’s Encrypt SSL certificates for Nginx. How to set up Let’s Encrypt SSL certificate for Nginx on Ubuntu Linux Once you have restarted the Nginx web server, open your browser and browse to the server hostname or IP address defined in the Nginx server block.http://concrete.example.comA Concrete installation wizard page should appear. Select the installation language and continue to the next page.




Conclusion
Concrete CMS is now fully installed and ready to use on your Ubuntu 24.04 server with Nginx and MariaDB. You have completed the web server setup, database creation, PHP installation, and file configuration. You can now open your domain in a web browser to finish the final website setup steps. You’ve now successfully set up Concrete CMS on Ubuntu using Nginx and MariaDB. This guide covered installing Nginx for better performance, setting up MariaDB for reliable data storage, and configuring PHP-FPM. Following these steps ensures your Concrete CMS site is ready to go.- Installing Nginx as the web server improves performance, security, and efficiency when hosting Concrete CMS.
- Integration with the MariaDB database server ensures reliable data storage for the Concrete application.
- PHP-FPM installation allows for seamless execution of the PHP-based Concrete CMS.
- Securing the Concrete site with Let’s Encrypt SSL/TLS certificates enhances its security and user trust.
Download Concrete files
Concrete CMS installation files must be downloaded directly to your Ubuntu server directory before you run the web setup. Grab the latest version from the official website and extract the archive into your Nginx web root folder. This places all necessary application scripts where the web server can read them. Now it’s time to get the Concrete CMS files onto your Ubuntu server. You can download the latest version directly from the Concrete website. We’ll show you how to download the files to a temporary directory and then move them to the correct folder for Nginx. To always install the latest version, check the Concrete’s download page. If a new version is available, replace the version number in the link below. First, navigate to the /tmp/ directory and download Concrete files. After unzipping the file, move the content into the Concrete folder in the Nginx root directory. The final step is to change the permissions. This will allow the Nginx web server to safely interact with the files, ensuring a secure environment for your Concrete installation.cd /tmp wget --trust-server-names https://www.concretecms.org/application/files/6517/1693/2287/concrete-cms-9.3.2.zip unzip concrete-*.zip sudo cp -rf concrete-cms-9.3.2 /var/www/concrete sudo chown -R www-data:www-data /var/www/concreteOnce you have completed all the above steps, continue configuring the Nginx web server below to serve the Concrete content. Run the commands below to create a Nginx server block file for Concrete.
sudo nano /etc/nginx/sites-available/concrete.confThen, copy and paste the content block below into the Nginx server block.
server {
listen 80;
listen [::]:80;
root /var/www/concrete;
index index.php;
server_name concrete.example.com;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ .php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php8.3-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
Save the file.
Then, run the commands below to enable the virtual host and restart the Nginx server.
sudo ln -s /etc/nginx/sites-available/concrete.conf /etc/nginx/sites-enabled/ sudo systemctl restart nginx.service
Setup Let’s Encrypt SSL/TLS for Concrete
Let’s Encrypt secures your Concrete CMS website by enabling HTTPS encryption for all visitor connections. Install the Certbot tool on your Ubuntu server and configure your Nginx blocks to request a free SSL certificate. This protects user passwords and form data from being intercepted on the network. Keeping your Concrete CMS site secure is important, so let’s set up an SSL/TLS certificate using Let’s Encrypt with Nginx on Ubuntu. This process encrypts the connection between your visitors and your website, making it safe. We’ll guide you through the steps to get HTTPS working. Please read the post below for additional resources on installing and creating Let’s Encrypt SSL certificates for Nginx. How to set up Let’s Encrypt SSL certificate for Nginx on Ubuntu Linux Once you have restarted the Nginx web server, open your browser and browse to the server hostname or IP address defined in the Nginx server block.http://concrete.example.comA Concrete installation wizard page should appear. Select the installation language and continue to the next page.




Conclusion
Concrete CMS is now fully installed and ready to use on your Ubuntu 24.04 server with Nginx and MariaDB. You have completed the web server setup, database creation, PHP installation, and file configuration. You can now open your domain in a web browser to finish the final website setup steps. You’ve now successfully set up Concrete CMS on Ubuntu using Nginx and MariaDB. This guide covered installing Nginx for better performance, setting up MariaDB for reliable data storage, and configuring PHP-FPM. Following these steps ensures your Concrete CMS site is ready to go.- Installing Nginx as the web server improves performance, security, and efficiency when hosting Concrete CMS.
- Integration with the MariaDB database server ensures reliable data storage for the Concrete application.
- PHP-FPM installation allows for seamless execution of the PHP-based Concrete CMS.
- Securing the Concrete site with Let’s Encrypt SSL/TLS certificates enhances its security and user trust.
Install PHP-FPM on Ubuntu Linux
PHP-FPM processes the PHP code that Concrete CMS needs to function properly on your Ubuntu server. Run the command sudo apt install php-fpm php-intl php-mysql php-curl php-cli php-zip php-xml php-gd php-common php-mbstring in your terminal to install the software and all required modules. This ensures your server can execute the platform scripts without errors. Concrete CMS uses PHP to work, so you need PHP-FPM to run it on Ubuntu. This guide will show you how to install the necessary PHP components, including PHP-FPM. Just run the command below in your terminal to install everything you need. Run the commands below to install PHP-FPM.sudo apt install php-fpm php-intl php-mysql php-curl php-cli php-zip php-xml php-gd php-common php-mbstring php-xmlrpc php-json php-sqlite3 php-soap php-zipAdditional help on installing PHP How to install PHP on Ubuntu Linux
Download Concrete files
Concrete CMS installation files must be downloaded directly to your Ubuntu server directory before you run the web setup. Grab the latest version from the official website and extract the archive into your Nginx web root folder. This places all necessary application scripts where the web server can read them. Now it’s time to get the Concrete CMS files onto your Ubuntu server. You can download the latest version directly from the Concrete website. We’ll show you how to download the files to a temporary directory and then move them to the correct folder for Nginx. To always install the latest version, check the Concrete’s download page. If a new version is available, replace the version number in the link below. First, navigate to the /tmp/ directory and download Concrete files. After unzipping the file, move the content into the Concrete folder in the Nginx root directory. The final step is to change the permissions. This will allow the Nginx web server to safely interact with the files, ensuring a secure environment for your Concrete installation.cd /tmp wget --trust-server-names https://www.concretecms.org/application/files/6517/1693/2287/concrete-cms-9.3.2.zip unzip concrete-*.zip sudo cp -rf concrete-cms-9.3.2 /var/www/concrete sudo chown -R www-data:www-data /var/www/concreteOnce you have completed all the above steps, continue configuring the Nginx web server below to serve the Concrete content. Run the commands below to create a Nginx server block file for Concrete.
sudo nano /etc/nginx/sites-available/concrete.confThen, copy and paste the content block below into the Nginx server block.
server {
listen 80;
listen [::]:80;
root /var/www/concrete;
index index.php;
server_name concrete.example.com;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ .php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php8.3-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
Save the file.
Then, run the commands below to enable the virtual host and restart the Nginx server.
sudo ln -s /etc/nginx/sites-available/concrete.conf /etc/nginx/sites-enabled/ sudo systemctl restart nginx.service
Setup Let’s Encrypt SSL/TLS for Concrete
Let’s Encrypt secures your Concrete CMS website by enabling HTTPS encryption for all visitor connections. Install the Certbot tool on your Ubuntu server and configure your Nginx blocks to request a free SSL certificate. This protects user passwords and form data from being intercepted on the network. Keeping your Concrete CMS site secure is important, so let’s set up an SSL/TLS certificate using Let’s Encrypt with Nginx on Ubuntu. This process encrypts the connection between your visitors and your website, making it safe. We’ll guide you through the steps to get HTTPS working. Please read the post below for additional resources on installing and creating Let’s Encrypt SSL certificates for Nginx. How to set up Let’s Encrypt SSL certificate for Nginx on Ubuntu Linux Once you have restarted the Nginx web server, open your browser and browse to the server hostname or IP address defined in the Nginx server block.http://concrete.example.comA Concrete installation wizard page should appear. Select the installation language and continue to the next page.




Conclusion
Concrete CMS is now fully installed and ready to use on your Ubuntu 24.04 server with Nginx and MariaDB. You have completed the web server setup, database creation, PHP installation, and file configuration. You can now open your domain in a web browser to finish the final website setup steps. You’ve now successfully set up Concrete CMS on Ubuntu using Nginx and MariaDB. This guide covered installing Nginx for better performance, setting up MariaDB for reliable data storage, and configuring PHP-FPM. Following these steps ensures your Concrete CMS site is ready to go.- Installing Nginx as the web server improves performance, security, and efficiency when hosting Concrete CMS.
- Integration with the MariaDB database server ensures reliable data storage for the Concrete application.
- PHP-FPM installation allows for seamless execution of the PHP-based Concrete CMS.
- Securing the Concrete site with Let’s Encrypt SSL/TLS certificates enhances its security and user trust.
Create a Concrete database
Concrete CMS requires a dedicated database and user account to store all of its content. Log into your database console and run the SQL commands to create a database named concretedb along with a user called concretedbuser. This step links your database backend directly to your website installation. After setting up MariaDB, you need to create a specific database for your Concrete CMS installation. We’ll create a database named ‘concretedb’ and a user called ‘concretedbuser’ for it. This step ensures Concrete has a dedicated place to store all its data. As part of the setup, we will create a concretedb database and a corresponding user account called concretedbuser. Finally, we’ll grant the concretedbuser full access to the concretedb database. All the database steps above can be done using the commands below: But first, log on to the MariaDB database server:sudo mariadbThen run the commands below to complete the steps:
CREATE DATABASE concretedb CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; CREATE USER concretedbuser@localhost IDENTIFIED BY 'type_your_password_here'; GRANT ALL ON concretedb.* TO concretedbuser@localhost WITH GRANT OPTION; FLUSH PRIVILEGES; exitEnsure to replace ‘type_your_password_here ‘with your password.
Install PHP-FPM on Ubuntu Linux
PHP-FPM processes the PHP code that Concrete CMS needs to function properly on your Ubuntu server. Run the command sudo apt install php-fpm php-intl php-mysql php-curl php-cli php-zip php-xml php-gd php-common php-mbstring in your terminal to install the software and all required modules. This ensures your server can execute the platform scripts without errors. Concrete CMS uses PHP to work, so you need PHP-FPM to run it on Ubuntu. This guide will show you how to install the necessary PHP components, including PHP-FPM. Just run the command below in your terminal to install everything you need. Run the commands below to install PHP-FPM.sudo apt install php-fpm php-intl php-mysql php-curl php-cli php-zip php-xml php-gd php-common php-mbstring php-xmlrpc php-json php-sqlite3 php-soap php-zipAdditional help on installing PHP How to install PHP on Ubuntu Linux
Download Concrete files
Concrete CMS installation files must be downloaded directly to your Ubuntu server directory before you run the web setup. Grab the latest version from the official website and extract the archive into your Nginx web root folder. This places all necessary application scripts where the web server can read them. Now it’s time to get the Concrete CMS files onto your Ubuntu server. You can download the latest version directly from the Concrete website. We’ll show you how to download the files to a temporary directory and then move them to the correct folder for Nginx. To always install the latest version, check the Concrete’s download page. If a new version is available, replace the version number in the link below. First, navigate to the /tmp/ directory and download Concrete files. After unzipping the file, move the content into the Concrete folder in the Nginx root directory. The final step is to change the permissions. This will allow the Nginx web server to safely interact with the files, ensuring a secure environment for your Concrete installation.cd /tmp wget --trust-server-names https://www.concretecms.org/application/files/6517/1693/2287/concrete-cms-9.3.2.zip unzip concrete-*.zip sudo cp -rf concrete-cms-9.3.2 /var/www/concrete sudo chown -R www-data:www-data /var/www/concreteOnce you have completed all the above steps, continue configuring the Nginx web server below to serve the Concrete content. Run the commands below to create a Nginx server block file for Concrete.
sudo nano /etc/nginx/sites-available/concrete.confThen, copy and paste the content block below into the Nginx server block.
server {
listen 80;
listen [::]:80;
root /var/www/concrete;
index index.php;
server_name concrete.example.com;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ .php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php8.3-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
Save the file.
Then, run the commands below to enable the virtual host and restart the Nginx server.
sudo ln -s /etc/nginx/sites-available/concrete.conf /etc/nginx/sites-enabled/ sudo systemctl restart nginx.service
Setup Let’s Encrypt SSL/TLS for Concrete
Let’s Encrypt secures your Concrete CMS website by enabling HTTPS encryption for all visitor connections. Install the Certbot tool on your Ubuntu server and configure your Nginx blocks to request a free SSL certificate. This protects user passwords and form data from being intercepted on the network. Keeping your Concrete CMS site secure is important, so let’s set up an SSL/TLS certificate using Let’s Encrypt with Nginx on Ubuntu. This process encrypts the connection between your visitors and your website, making it safe. We’ll guide you through the steps to get HTTPS working. Please read the post below for additional resources on installing and creating Let’s Encrypt SSL certificates for Nginx. How to set up Let’s Encrypt SSL certificate for Nginx on Ubuntu Linux Once you have restarted the Nginx web server, open your browser and browse to the server hostname or IP address defined in the Nginx server block.http://concrete.example.comA Concrete installation wizard page should appear. Select the installation language and continue to the next page.




Conclusion
Concrete CMS is now fully installed and ready to use on your Ubuntu 24.04 server with Nginx and MariaDB. You have completed the web server setup, database creation, PHP installation, and file configuration. You can now open your domain in a web browser to finish the final website setup steps. You’ve now successfully set up Concrete CMS on Ubuntu using Nginx and MariaDB. This guide covered installing Nginx for better performance, setting up MariaDB for reliable data storage, and configuring PHP-FPM. Following these steps ensures your Concrete CMS site is ready to go.- Installing Nginx as the web server improves performance, security, and efficiency when hosting Concrete CMS.
- Integration with the MariaDB database server ensures reliable data storage for the Concrete application.
- PHP-FPM installation allows for seamless execution of the PHP-based Concrete CMS.
- Securing the Concrete site with Let’s Encrypt SSL/TLS certificates enhances its security and user trust.
Install the MariaDB database server on Ubuntu
MariaDB provides reliable data storage for your Concrete CMS installation on Ubuntu 24.04. Open your terminal and run the required package manager commands to download and set up the database server. This gives your website the backend storage it needs to save user accounts, pages, and site settings. Concrete CMS needs a place to store its data, and MariaDB is a great choice for this on Ubuntu. Installing the MariaDB database server is simple. Open your terminal and use these commands to get it installed. To install and use the MariaDB database server, use the instructions below. Open the Ubuntu terminal and run the commands below to install the MariaDB database server.sudo apt update sudo apt install mariadb-serverOnce the MariaDB database server is installed, use the commands below to stop, start, and enable the MariaDB server to start automatically when the server boots.
sudo systemctl stop mariadb sudo systemctl start mariadb sudo systemctl enable mariadbRun the following commands to validate and test if the MariaDB database server is installed successfully.
sudo mariadbOnce you run the commands above, it will log you onto the MariaDB console and display a message similar to the one below.
Welcome to the MariaDB monitor. Commands end with ; or g. Your MariaDB connection id is 32 Server version: 10.11.2-MariaDB-1 Ubuntu 23.04 Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or 'h' for help. Type 'c' to clear the current input statement. MariaDB [(none)]>The message tells you that the server is installed successfully. Additional help on installing MariaDB.
- How to install MariaDB on Ubuntu Linux
- MariaDB without password prompt
Create a Concrete database
Concrete CMS requires a dedicated database and user account to store all of its content. Log into your database console and run the SQL commands to create a database named concretedb along with a user called concretedbuser. This step links your database backend directly to your website installation. After setting up MariaDB, you need to create a specific database for your Concrete CMS installation. We’ll create a database named ‘concretedb’ and a user called ‘concretedbuser’ for it. This step ensures Concrete has a dedicated place to store all its data. As part of the setup, we will create a concretedb database and a corresponding user account called concretedbuser. Finally, we’ll grant the concretedbuser full access to the concretedb database. All the database steps above can be done using the commands below: But first, log on to the MariaDB database server:sudo mariadbThen run the commands below to complete the steps:
CREATE DATABASE concretedb CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; CREATE USER concretedbuser@localhost IDENTIFIED BY 'type_your_password_here'; GRANT ALL ON concretedb.* TO concretedbuser@localhost WITH GRANT OPTION; FLUSH PRIVILEGES; exitEnsure to replace ‘type_your_password_here ‘with your password.
Install PHP-FPM on Ubuntu Linux
PHP-FPM processes the PHP code that Concrete CMS needs to function properly on your Ubuntu server. Run the command sudo apt install php-fpm php-intl php-mysql php-curl php-cli php-zip php-xml php-gd php-common php-mbstring in your terminal to install the software and all required modules. This ensures your server can execute the platform scripts without errors. Concrete CMS uses PHP to work, so you need PHP-FPM to run it on Ubuntu. This guide will show you how to install the necessary PHP components, including PHP-FPM. Just run the command below in your terminal to install everything you need. Run the commands below to install PHP-FPM.sudo apt install php-fpm php-intl php-mysql php-curl php-cli php-zip php-xml php-gd php-common php-mbstring php-xmlrpc php-json php-sqlite3 php-soap php-zipAdditional help on installing PHP How to install PHP on Ubuntu Linux
Download Concrete files
Concrete CMS installation files must be downloaded directly to your Ubuntu server directory before you run the web setup. Grab the latest version from the official website and extract the archive into your Nginx web root folder. This places all necessary application scripts where the web server can read them. Now it’s time to get the Concrete CMS files onto your Ubuntu server. You can download the latest version directly from the Concrete website. We’ll show you how to download the files to a temporary directory and then move them to the correct folder for Nginx. To always install the latest version, check the Concrete’s download page. If a new version is available, replace the version number in the link below. First, navigate to the /tmp/ directory and download Concrete files. After unzipping the file, move the content into the Concrete folder in the Nginx root directory. The final step is to change the permissions. This will allow the Nginx web server to safely interact with the files, ensuring a secure environment for your Concrete installation.cd /tmp wget --trust-server-names https://www.concretecms.org/application/files/6517/1693/2287/concrete-cms-9.3.2.zip unzip concrete-*.zip sudo cp -rf concrete-cms-9.3.2 /var/www/concrete sudo chown -R www-data:www-data /var/www/concreteOnce you have completed all the above steps, continue configuring the Nginx web server below to serve the Concrete content. Run the commands below to create a Nginx server block file for Concrete.
sudo nano /etc/nginx/sites-available/concrete.confThen, copy and paste the content block below into the Nginx server block.
server {
listen 80;
listen [::]:80;
root /var/www/concrete;
index index.php;
server_name concrete.example.com;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ .php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php8.3-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
Save the file.
Then, run the commands below to enable the virtual host and restart the Nginx server.
sudo ln -s /etc/nginx/sites-available/concrete.conf /etc/nginx/sites-enabled/ sudo systemctl restart nginx.service
Setup Let’s Encrypt SSL/TLS for Concrete
Let’s Encrypt secures your Concrete CMS website by enabling HTTPS encryption for all visitor connections. Install the Certbot tool on your Ubuntu server and configure your Nginx blocks to request a free SSL certificate. This protects user passwords and form data from being intercepted on the network. Keeping your Concrete CMS site secure is important, so let’s set up an SSL/TLS certificate using Let’s Encrypt with Nginx on Ubuntu. This process encrypts the connection between your visitors and your website, making it safe. We’ll guide you through the steps to get HTTPS working. Please read the post below for additional resources on installing and creating Let’s Encrypt SSL certificates for Nginx. How to set up Let’s Encrypt SSL certificate for Nginx on Ubuntu Linux Once you have restarted the Nginx web server, open your browser and browse to the server hostname or IP address defined in the Nginx server block.http://concrete.example.comA Concrete installation wizard page should appear. Select the installation language and continue to the next page.




Conclusion
Concrete CMS is now fully installed and ready to use on your Ubuntu 24.04 server with Nginx and MariaDB. You have completed the web server setup, database creation, PHP installation, and file configuration. You can now open your domain in a web browser to finish the final website setup steps. You’ve now successfully set up Concrete CMS on Ubuntu using Nginx and MariaDB. This guide covered installing Nginx for better performance, setting up MariaDB for reliable data storage, and configuring PHP-FPM. Following these steps ensures your Concrete CMS site is ready to go.- Installing Nginx as the web server improves performance, security, and efficiency when hosting Concrete CMS.
- Integration with the MariaDB database server ensures reliable data storage for the Concrete application.
- PHP-FPM installation allows for seamless execution of the PHP-based Concrete CMS.
- Securing the Concrete site with Let’s Encrypt SSL/TLS certificates enhances its security and user trust.
Installing Concrete CMS with Nginx on Ubuntu 24.04 connects a free content management system with a high-speed web server to run a fast website. Concrete CMS lets you build and manage site pages easily, while Nginx handles web traffic so pages load quickly for visitors.
This server setup requires PHP and a MySQL database to store your site files and content. You need root access to your Ubuntu 24.04 server to install and configure all the required software packages.
Install Nginx and MariaDB servers, then create a Concrete CMS database. Configure PHP-FPM and Nginx to serve your Concrete CMS files.
Install Nginx HTTP server on Ubuntu
Nginx is a fast web server you can install on Ubuntu 24.04 to host your Concrete CMS website. Open your terminal and run the commands sudo apt update and sudo apt install nginx to download and set up the server. This allows your system to process web traffic and display your pages correctly. Nginx is a fast web server that works well for Concrete CMS on Ubuntu 24.04. You can install it easily using your terminal. Just run these commands to get Nginx set up and ready to serve your website. To do that, open the Ubuntu terminal and run the commands below to install the Nginx web server.sudo apt update sudo apt install nginxOnce Nginx is installed, the commands below can start, stop, and enable the Nginx web server to start automatically when your server boots up.
sudo systemctl stop nginx sudo systemctl start nginx sudo systemctl enable nginxYou can test the Nginx web server by opening your web browser and browsing to the server’s localhost or IP address. http://localhost

Install the MariaDB database server on Ubuntu
MariaDB provides reliable data storage for your Concrete CMS installation on Ubuntu 24.04. Open your terminal and run the required package manager commands to download and set up the database server. This gives your website the backend storage it needs to save user accounts, pages, and site settings. Concrete CMS needs a place to store its data, and MariaDB is a great choice for this on Ubuntu. Installing the MariaDB database server is simple. Open your terminal and use these commands to get it installed. To install and use the MariaDB database server, use the instructions below. Open the Ubuntu terminal and run the commands below to install the MariaDB database server.sudo apt update sudo apt install mariadb-serverOnce the MariaDB database server is installed, use the commands below to stop, start, and enable the MariaDB server to start automatically when the server boots.
sudo systemctl stop mariadb sudo systemctl start mariadb sudo systemctl enable mariadbRun the following commands to validate and test if the MariaDB database server is installed successfully.
sudo mariadbOnce you run the commands above, it will log you onto the MariaDB console and display a message similar to the one below.
Welcome to the MariaDB monitor. Commands end with ; or g. Your MariaDB connection id is 32 Server version: 10.11.2-MariaDB-1 Ubuntu 23.04 Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or 'h' for help. Type 'c' to clear the current input statement. MariaDB [(none)]>The message tells you that the server is installed successfully. Additional help on installing MariaDB.
- How to install MariaDB on Ubuntu Linux
- MariaDB without password prompt
Create a Concrete database
Concrete CMS requires a dedicated database and user account to store all of its content. Log into your database console and run the SQL commands to create a database named concretedb along with a user called concretedbuser. This step links your database backend directly to your website installation. After setting up MariaDB, you need to create a specific database for your Concrete CMS installation. We’ll create a database named ‘concretedb’ and a user called ‘concretedbuser’ for it. This step ensures Concrete has a dedicated place to store all its data. As part of the setup, we will create a concretedb database and a corresponding user account called concretedbuser. Finally, we’ll grant the concretedbuser full access to the concretedb database. All the database steps above can be done using the commands below: But first, log on to the MariaDB database server:sudo mariadbThen run the commands below to complete the steps:
CREATE DATABASE concretedb CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; CREATE USER concretedbuser@localhost IDENTIFIED BY 'type_your_password_here'; GRANT ALL ON concretedb.* TO concretedbuser@localhost WITH GRANT OPTION; FLUSH PRIVILEGES; exitEnsure to replace ‘type_your_password_here ‘with your password.
Install PHP-FPM on Ubuntu Linux
PHP-FPM processes the PHP code that Concrete CMS needs to function properly on your Ubuntu server. Run the command sudo apt install php-fpm php-intl php-mysql php-curl php-cli php-zip php-xml php-gd php-common php-mbstring in your terminal to install the software and all required modules. This ensures your server can execute the platform scripts without errors. Concrete CMS uses PHP to work, so you need PHP-FPM to run it on Ubuntu. This guide will show you how to install the necessary PHP components, including PHP-FPM. Just run the command below in your terminal to install everything you need. Run the commands below to install PHP-FPM.sudo apt install php-fpm php-intl php-mysql php-curl php-cli php-zip php-xml php-gd php-common php-mbstring php-xmlrpc php-json php-sqlite3 php-soap php-zipAdditional help on installing PHP How to install PHP on Ubuntu Linux
Download Concrete files
Concrete CMS installation files must be downloaded directly to your Ubuntu server directory before you run the web setup. Grab the latest version from the official website and extract the archive into your Nginx web root folder. This places all necessary application scripts where the web server can read them. Now it’s time to get the Concrete CMS files onto your Ubuntu server. You can download the latest version directly from the Concrete website. We’ll show you how to download the files to a temporary directory and then move them to the correct folder for Nginx. To always install the latest version, check the Concrete’s download page. If a new version is available, replace the version number in the link below. First, navigate to the /tmp/ directory and download Concrete files. After unzipping the file, move the content into the Concrete folder in the Nginx root directory. The final step is to change the permissions. This will allow the Nginx web server to safely interact with the files, ensuring a secure environment for your Concrete installation.cd /tmp wget --trust-server-names https://www.concretecms.org/application/files/6517/1693/2287/concrete-cms-9.3.2.zip unzip concrete-*.zip sudo cp -rf concrete-cms-9.3.2 /var/www/concrete sudo chown -R www-data:www-data /var/www/concreteOnce you have completed all the above steps, continue configuring the Nginx web server below to serve the Concrete content. Run the commands below to create a Nginx server block file for Concrete.
sudo nano /etc/nginx/sites-available/concrete.confThen, copy and paste the content block below into the Nginx server block.
server {
listen 80;
listen [::]:80;
root /var/www/concrete;
index index.php;
server_name concrete.example.com;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ .php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php8.3-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
Save the file.
Then, run the commands below to enable the virtual host and restart the Nginx server.
sudo ln -s /etc/nginx/sites-available/concrete.conf /etc/nginx/sites-enabled/ sudo systemctl restart nginx.service
Setup Let’s Encrypt SSL/TLS for Concrete
Let’s Encrypt secures your Concrete CMS website by enabling HTTPS encryption for all visitor connections. Install the Certbot tool on your Ubuntu server and configure your Nginx blocks to request a free SSL certificate. This protects user passwords and form data from being intercepted on the network. Keeping your Concrete CMS site secure is important, so let’s set up an SSL/TLS certificate using Let’s Encrypt with Nginx on Ubuntu. This process encrypts the connection between your visitors and your website, making it safe. We’ll guide you through the steps to get HTTPS working. Please read the post below for additional resources on installing and creating Let’s Encrypt SSL certificates for Nginx. How to set up Let’s Encrypt SSL certificate for Nginx on Ubuntu Linux Once you have restarted the Nginx web server, open your browser and browse to the server hostname or IP address defined in the Nginx server block.http://concrete.example.comA Concrete installation wizard page should appear. Select the installation language and continue to the next page.




Conclusion
Concrete CMS is now fully installed and ready to use on your Ubuntu 24.04 server with Nginx and MariaDB. You have completed the web server setup, database creation, PHP installation, and file configuration. You can now open your domain in a web browser to finish the final website setup steps. You’ve now successfully set up Concrete CMS on Ubuntu using Nginx and MariaDB. This guide covered installing Nginx for better performance, setting up MariaDB for reliable data storage, and configuring PHP-FPM. Following these steps ensures your Concrete CMS site is ready to go.- Installing Nginx as the web server improves performance, security, and efficiency when hosting Concrete CMS.
- Integration with the MariaDB database server ensures reliable data storage for the Concrete application.
- PHP-FPM installation allows for seamless execution of the PHP-based Concrete CMS.
- Securing the Concrete site with Let’s Encrypt SSL/TLS certificates enhances its security and user trust.
Was this guide helpful?
About the Author
Richard
Tech Writer, IT Professional
Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.
No comments yet — be the first to share your thoughts!