How to Install Pimcore with Nginx on Ubuntu 24.04
Installing Pimcore with Nginx on Ubuntu 24.04 creates a fast web server for managing product data and digital shops. Pimcore is a free software platform that brings all your business content and customer files together in one dashboard.
Ubuntu 24.04 LTS provides a stable system foundation, while Nginx handles incoming web traffic quickly and reliably. You need root access to your server and a basic terminal window to complete the steps.
Install Nginx via `sudo apt install nginx`, then MariaDB with `sudo apt install mariadb-server`. Create a Pimcore database using `CREATE DATABASE pimcoredb`. Finally, install PHP with `sudo apt install php-fpm` and its required extensions.
Install Nginx HTTP server on Ubuntu
Nginx runs as your web server to serve Pimcore pages to visitors. You need Nginx installed on your server before you can run Pimcore. To install Nginx on Ubuntu for your Pimcore Nginx Ubuntu installation, update your package list and run the package manager command in your terminal to download and set up the software.
To do that, open the Ubuntu terminal and run the commands below to install the Nginx web server.
sudo apt update
sudo apt install nginx
Once 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 nginx
You can test the Nginx web server by opening your web browser and browsing to the server’s localhost or IP address.
http://localhost

When you see the Welcome to nginx!, it means the Nginx HTTP server is successfully installed.
Additional help on installing Nginx on Ubuntu is in the link below.
Install the MariaDB database server on Ubuntu
MariaDB stores all the text, settings, and user data for your website. You must install MariaDB on Ubuntu to provide the database backend required for your Pimcore Nginx Ubuntu installation. Update your system package list, then use the terminal to download and install the database server software.
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-server
Once 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 mariadb
Run the following commands to validate and test if the MariaDB database server is installed successfully.
sudo mariadb
Once 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 Pimcore database
A dedicated database holds your website data so Pimcore can read and write information correctly. You create a Pimcore database by logging into MariaDB, adding a new database, and setting up a user account with full access to it for your Pimcore Nginx Ubuntu installation.
As part of the setup, we will create a pimcoredb database and a user account called pimcoredbuser.
Finally, we'll grant the pimcoredbuser full access to the pimcoredb database.
All the database steps above can be done using the commands below:
But first, log on to the MariaDB database server:
sudo mariadb
Then run the commands below to complete the steps:
CREATE DATABASE pimcoredb CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
CREATE USER pimcoredbuser@localhost IDENTIFIED BY 'type_your_password_here';
GRANT ALL ON pimcoredb.* TO pimcoredbuser@localhost WITH GRANT OPTION;
FLUSH PRIVILEGES;
exit
Install PHP on Ubuntu Linux
PHP processes the code that makes Pimcore run in your browser. You install PHP on Ubuntu Linux along with the necessary extensions and PHP-FPM to ensure your Pimcore Nginx Ubuntu installation handles web traffic and background tasks properly.
Then, run the commands below to install the latest PHP version.
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-bcmath php-json php-sqlite3 php-soap php-zip
Additional help on installing PHP
Get Pimcore files
Composer downloads and sets up all the core application files needed to run the content management system. You get Pimcore files onto your server by installing Git and Composer, then running the package installation command for your Pimcore Nginx Ubuntu installation.
There are multiple ways to get Pimcore installed. For the free community version, the composer installer is the right choice.
First, install git, Composer, and other dependencies.
sudo apt install curl git
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
Next, change to the Nginx web server directory and clone Pimcore files. The last command allows the Nginx web server to interact safely with the files, ensuring a secure environment for your Pimcore installation.
cd /var/www/
sudo COMPOSER_MEMORY_LIMIT=-1 composer create-project pimcore/demo pimcore
sudo chown www-data:www-data -R /var/www/pimcore/
sudo COMPOSER_MEMORY_LIMIT=-1 composer --ignore-platform-req=ext-amqp create-project pimcore/skeleton pimcore
After that, run the command below to install Pimcore.
cd /var/www/pimcore
sudo -u www-data ./vendor/bin/pimcore-install
Once you have completed all the above steps, continue configuring the Nginx web server below to serve the Pimcore content.
You will be prompted to create an admin account, type the database and account created above to complete the installation.
Admin username:
> superadmin
Admin password (input will be hidden):
>
MySQL username:
> pimcoredbuser
MySQL password (input will be hidden):
>
MySQL database:
> pimcoredb
This will install Pimcore with the given settings. Do you want to continue? (yes/no) [yes]:
>
Running installation. You can find a detailed install log in var/installer/log/dev.log
Install complete!
11/11 [============================] 100%
Trying to install assets as relative symbolic links.
--- ------------------------------------------ ------------------
Bundle Method / Error
--- ------------------------------------------ ------------------
✔ FOSJsRoutingBundle relative symlink
✔ PimcoreAdminBundle relative symlink
✔ PimcoreCustomReportsBundle relative symlink
✔ PimcorePersonalizationBundle relative symlink
✔ PimcoreEcommerceFrameworkBundle relative symlink
✔ PimcoreApplicationLoggerBundle relative symlink
✔ PimcoreGoogleMarketingBundle relative symlink
✔ PimcoreCustomerManagementFrameworkBundle relative symlink
✔ PimcoreNewsletterBundle relative symlink
✔ PimcoreGlossaryBundle relative symlink
✔ PimcoreSeoBundle relative symlink
✔ PimcoreSimpleBackendSearchBundle relative symlink
✔ PimcoreDataHubBundle relative symlink
✔ OutputDataConfigToolkitBundle relative symlink
✔ Web2PrintToolsBundle relative symlink
✔ ObjectMergerBundle relative symlink
✔ PimcoreWebToPrintBundle relative symlink
✔ PimcoreTinymceBundle relative symlink
✔ PimcoreStaticRoutesBundle relative symlink
✔ PimcoreWordExportBundle relative symlink
✔ PimcoreXliffBundle relative symlink
✔ PimcoreCoreBundle relative symlink
--- ------------------------------------------ ------------------
[OK] All assets were successfully installed.
[OK] Pimcore was successfully installed
After Pimcore installation, continue below to set up Nginx to serve Pimcore's content.
Run the commands below to create a Nginx virtual host file for Pimcore.
sudo nano /etc/nginx/sites-available/pimcore.conf
Then, copy and paste the content block below into the Nginx server block.
upstream php-pimcore {
server unix:/var/run/php/php8.3-fpm.sock;
}
map $args $static_page_root {
default /var/tmp/pages;
"~*(^|&)pimcore_editmode=true(&|$)" /var/nonexistent;
"~*(^|&)pimcore_preview=true(&|$)" /var/nonexistent;
"~*(^|&)pimcore_version=[^&]+(&|$)" /var/nonexistent;
}
map $uri $static_page_uri {
default $uri;
"/" /%home;
}
server {
listen 80;
listen [::]:80;
server_name pimcore.example.com;
root /var/www/pimcore/public;
index index.php;
access_log /var/log/nginx/forums-access.log;
error_log /var/log/nginx/forums-error.log;
location ~* ^/admin/external {
rewrite .* /index.php$is_args$args last;
}
location / {
error_page 404 /meta/404;
try_files $static_page_root$static_page_uri.html $uri /index.php$is_args$args;
}
location ~ ^/index.php(/|$) {
fastcgi_split_path_info ^(.+.php)(/.+)$;
try_files $fastcgi_script_name =404;
include fastcgi.conf;
set $path_info $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_pass php-pimcore;
internal;
}
}Save the file.
To activate the Pimcore website on Ubuntu 24.04, run the commands `sudo a2ensite pimcore.conf` to enable the virtual host configuration file and `sudo systemctl restart nginx` to restart the Nginx web server. This action makes Pimcore accessible through your web browser.
sudo ln -s /etc/nginx/sites-available/pimcore.conf /etc/nginx/sites-enabled/
sudo systemctl restart nginx
Setup Let’s Encrypt SSL/TLS for Pimcore
SSL certificates encrypt the connection between your website and your visitors to keep data safe. You setup Let's Encrypt SSL/TLS for Pimcore by installing Certbot and configuring your web server to use the security certificate for your Pimcore Nginx Ubuntu installation.
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://pimcore.example.com/
A Pimcore web portal page should appear.

To log on to the backend admin page, use the URL below.
http://pimcore.example.com/admin
That should do it!
Conclusion:
Setting up Pimcore on Ubuntu with Nginx is a streamlined process that equips businesses with a powerful content management system. To summarize:
- Robust Platform: Pimcore integrates essential components like PIM, MDM, CMS, and eCommerce, offering a comprehensive solution for content management.
- High Performance with Nginx: Utilizing Nginx enhances performance, allowing for high levels of concurrent connections and efficient resource management.
- Easy Database Setup: Installing MariaDB and creating a dedicated database simplifies data management for Pimcore.
- PHP Compatibility: Ensuring the latest version of PHP is installed guarantees optimal performance and support for the Pimcore application.
- Secure Hosting: Implementing a virtual host and securing the installation with Let’s Encrypt SSL certificates ensures safety and reliability for users.
Businesses can effectively manage their content and enhance their online presence with Pimcore by following installation guidelines that ensure proper setup of the software on Ubuntu 24.04.
Was this guide helpful?
About the Author
Richard
Tech Writer, IT Professional
Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.
No comments yet — be the first to share your thoughts!