Pimcore is an open-source platform for managing digital content and customer experiences. In this tutorial, we will guide you on how to install Pimcore on MXLinux.
Before you begin with the installation, you need to have the following:
sudo apt update
sudo apt install apache2 mariadb-server php7.4 php7.4-curl php7.4-gd php7.4-json php7.4-mbstring php7.4-mysql php7.4-xml php7.4-zip
While installing MariaDB, ensure that you set the password for the root user.
Once the packages are installed, you can check the status of the Apache service by running the following command:
sudo systemctl status apache2
You should see something like the following output:
apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled;;;;
After that, navigate to the Pimcore website's download page at https://www.pimcore.org/en/resources/download.
Download the latest version of Pimcore by clicking on the "Download Pimcore" button and selecting the "ZIP" option.
Extract the zip file anywhere convenient by running the following command:
sudo unzip pimcore-*-zip -d /var/www/html
This command will extract the zip file into the "/var/www/html" directory, which is the default web server root directory for Apache.
sudo chown -R www-data:www-data /var/www/html/pimcore/*
sudo chmod -R 755 /var/www/html/pimcore/*
sudo mysql -u root -p
Enter your MySQL root password when prompted.
CREATE DATABASE pimcore_db;
CREATE USER 'pimcore_user'@'localhost' IDENTIFIED BY 'pimcore_password';
GRANT ALL PRIVILEGES ON pimcore_db.* TO 'pimcore_user'@'localhost';
exit;
sudo nano /etc/apache2/sites-available/000-default.conf
Alias /pimcore "/var/www/html/pimcore"
<Directory "/var/www/html/pimcore">
AllowOverride None
Require all granted
</Directory>
<Location /pimcore/admin>
AuthType Basic
AuthName "Pimcore login"
AuthUserFile /etc/apache2/.htpasswd
Require valid-user
</Location>
This configuration will create an alias for "/var/www/html/pimcore" directory called "/pimcore" and will protect the "/pimcore/admin" URL with basic authentication.
Save and close the file by pressing "CTRL + X" then "Y" and then "ENTER".
Next, create a new user and password for Apache basic authentication by running the following command:
sudo htpasswd -c /etc/apache2/.htpasswd pimcore_user
Enter the password for the user when prompted.
sudo systemctl restart apache2
Finally, navigate to the Pimcore installation page by typing "http://localhost/pimcore" in your browser.
Follow the on-screen instructions to install Pimcore. When prompted, enter the database details that you created in step 10 and the administrator username and password.
And that's it! You have successfully installed Pimcore on MXLinux.
In this tutorial, we walked you through the steps to install Pimcore on MXLinux. While the installation process may seem a bit lengthy, it is very straightforward to follow and should not be a problem as long as you have the necessary prerequisites.
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!