ManagedCloud Servers

High performance handled and monitored by us 24/7/365. A complete solution to provide you with our in house expertise 24/7 tailored to your specific needs. We'll setup a bespoke server for your site using the latest tehnologies so you can get the most out of your hardware and get your website loading quickly and reliably. Find out more..

cPanelCloud Servers

Recommended - High performance cloud servers with no technical knowledge required. If you're hosting multiple websites already and you're looking to consolidate, or if you're looking to isolate yourself from the shared hosting environment but you don't have the time or knoweldge to manage a server, then the Managed cPanel Servers are for you. Find out more..

UnmanagedCloud Servers

Our unmanaged range gives you complete control at rock bottom prices and our cloud platform boasts super fast multipath 40Gb/s network, the latest Intel Xeon V3 CPUs and enterprise grade redundant SSDs. If you're a sysadmin look no further, we offer some of the best specification to price ratio servers available. Find out more..

Want your very own server? Get our 1GB memory, Xeon V4, 20GB SSD VPS for £10.00 / month.

View Plans

How to Install PimCore CMS on CentOS 7

Pimcore is a free and open source content management web application, object-oriented and PHP based on the Zend Framework that can be used to create and manage web applications and digital presences.

Pimcore comes with a user friendly and easy to use web interface. Pimcore provides lots of features including automatic document/PDF generation, E-Commerce integration module, modern interface and much more.

In this tutorial, we will learn how to install Pimcore CMS on CentOS 7 server.

Requirements

  • A server running Ubuntu CentOS 7 server.
  • A non root user with sudo privileges setup on your server.

Update the System

Before installing any packages, it is recommended to update your system with the latest version. You can do this by running the following command:

sudo yum update -y

Once your system is up to date, you can proceed to the next step.

Install LAMP Server

You will need to install Apache, MariaDB, PHP and other required PHP modules on your system. You can install all of them by running the following command:

sudo yum install httpd mariadb-server mariadb php php-mysql php-dom php-gd php-mbstring php-common -y

Once all the packages are installed, start MariaDB server and apache then enable them to start on boot with the following command:

sudo systemctl start httpd sudo systemctl enable httpd sudo systemctl start mariadb sudo systemctl enable mariadb

Once you have done, you can proceed to the next step.

Configure Database

By default, MariaDB is not secured, so you will need to secure it first. You can do this by running mysql_secure_installation script:

sudo mysql_secure_installation

Answer all the questions as below:

Set root password? [Y/n] n
Remove anonymous users? [Y/n] y
Disallow root login remotely? [Y/n] y
Remove test database and access to it? [Y/n] y
Reload privilege tables now? [Y/n] y

Once MariaDB is secured, log in to the MariaDB console with the following command:

mysql -u root -p

Enter your root password when prompted, then create a database for Pimcore with the following command:

MariaDB [(none)]>CREATE DATABASE pimcoredb; Query OK, 1 row affected (0.00 sec)

Next, create a username and password for Pimcore with the following command:

MariaDB [(none)]>CREATE USER 'pimcoreuser'@'localhost' IDENTIFIED BY 'password'; Query OK, 1 row affected (0.00 sec)

Next, grant privileges to the Pimcore database with the following command:

MariaDB [(none)]>GRANT ALL PRIVILEGES ON pimcoredb.* TO 'pimcoreuser'@'localhost'; Query OK, 1 row affected (0.00 sec)

Next, you will need to run the FLUSH PRIVILEGES command so that the privileges table will be reloaded by MariaDB and we can use new credential:

MariaDB [(none)]>FLUSH PRIVILEGES; Query OK, 1 row affected (0.00 sec)

Next, exit from the MariaDB console with the following command:

MariaDB [(none)]>\q

Install Pimcore

First, you will need to download the latest version of the Pimcore. You can download it from their official website with the following command:

wget https://www.pimcore.org/download/pimcore-data.zip

Once the download is complete, unzip the downloaded file to the apache web root directory with the following command:

sudo mkdir /var/www/html/pimcore sudo unzip pimcore-data.zip -d /var/www/html/pimcore/

Next, change the ownership of the pimcore directory with the following command:

sudo chown -R apache:apache /var/www/html/pimcore/

Configure Apache for Pimcore

First, you will need to create a apache virtual host directive for Pimcore. You can do this by creating pimcore.conf file inside /etc/httpd/conf.d/ directory:

sudo nano /etc/httpd/conf.d/pimcore.conf

Add the following lines:

<VirtualHost *:80>
ServerAdmin webmaster@yourdomain.com
DocumentRoot "/var/www/html/pimcore"
ServerName yourdomain.com
ServerAlias www.yourdomain.com
ErrorLog "/var/log/httpd/pimcore-error_log"
CustomLog "/var/log/httpd/pimcore-access_log" combined

<Directory "/var/www/html/pimcore/"> DirectoryIndex index.php Options FollowSymLinks AllowOverride All Require all granted </Directory> </VirtualHost>

Save and close the file when you are finished, then restart Apache for the changes to take effect:

sudo systemctl restart httpd

Once you are done you can proceed to the next step.

Access Pimcore

Before accessing Pimcore web interface, you will need to set firewall rules for Pimcore to work properly.

You can do this by running the following command:

sudo firewall-cmd --permanent --zone=public --add-port=80/tcp

Next, reload the firewalld with the following command:

sudo firewall-cmd --reload

Finally, open your web browser and type the URL http://yourdomain.com/, you should see the following installation page :

Here, provide all the details like database username, password, database name, admin username and password. Then click on the Install Now button you should see the following page:

Here, give your admin username and password then click on the Login button, you will be redirect to the Pimcore default dashboard.

Thats it. You have successfully installed Pimcore on your CentOS 7 server.

Want your very own server? Get our 1GB memory, Xeon V4, 20GB SSD VPS for £10.00 / month.

View Plans