{"id":16771,"date":"2015-02-02T13:52:11","date_gmt":"2015-02-02T19:52:11","guid":{"rendered":"https:\/\/secure.rosehosting.com\/blog\/?p=16771"},"modified":"2022-12-12T08:24:47","modified_gmt":"2022-12-12T14:24:47","slug":"how-to-install-pimcore-on-a-centos-7-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-pimcore-on-a-centos-7-vps\/","title":{"rendered":"How to install Pimcore on CentOS 7"},"content":{"rendered":"
Pimcore is a free and open-source content management platform for creating and managing web applications and digital presences. In this article we will install Pimcore on a CentOS 7 VPS<\/a> with Apache web server, PHP and MariaDB MySQL server.<\/p>\n <\/p>\n Log in to your Linux VPS<\/a> as user root and make sure that all packages are up to date<\/p>\n Now install MariaDB<\/p>\n Start MariaDB and add it to automatically start on system start-up<\/p>\n Run the following command to secure your MariaDB server and set a new root passord<\/p>\n Pimcore needs an MySQL database, so log in to the MySQL server with user root and create new database with UTF-8 as character set<\/p>\n Don’t forget to replace ‘PASSWORD<\/em>‘ with an actual password.<\/p>\n Now, we will install Apache web server<\/p>\n Start the web server and enable it to start at boot<\/p>\n Install PHP and a few PHP extensions<\/p>\n Download the latest stable release of Pimcore to your server<\/p>\n Extract the downloaded archive to the document root directory on your server.<\/p>\n Change the ownership<\/p>\n In order to use the scheduled features we need to create a cronjob.<\/p>\n Now, we will set up Apache virtual hosting directive for your Pimcore website.<\/p>\n Create a \u2018\/etc\/httpd\/conf.d\/vhosts.conf\u2019 file with the following content<\/p>\n and create a ‘\/etc\/httpd\/vhosts.d’ directory where we will put all our virtual hosts.<\/p>\n Create a virtual host for your Pimcore domain<\/p>\n And restart Apache for the changes to take effect<\/p>\n That’s all. Now, we need to lunch the web installer accessing http:\/\/yourdomain.com , enter your MySQL information and create administrator user.<\/p>\n Of course you don\u2019t have to do any of this if you use one of our Linux VPS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to setup this for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n PS.<\/strong> <\/span>If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":" Pimcore is a free and open-source content management platform for creating and managing web applications and digital presences. In this … <\/p>\nyum -y update<\/pre>\n
yum install mariadb-server mariadb<\/pre>\n
systemctl start mariadb.service\r\nsystemctl enable mariadb.service<\/pre>\n
mysql_secure_installation<\/pre>\n
mysql -u root -p\r\nMariaDB [(none)]> CREATE DATABASE pimcore CHARACTER SET utf8 COLLATE utf8_general_ci;\r\nMariaDB [(none)]> GRANT ALL PRIVILEGES ON pimcore.* TO 'pimcoreuser'@'localhost' IDENTIFIED BY 'PASSWORD';\r\nMariaDB [(none)]> flush privileges;\r\nMariaDB [(none)]>> \\q;<\/pre>\n
yum install httpd<\/pre>\n
systemctl start httpd\r\nsystemctl enable httpd<\/pre>\n
yum install php php-mysql php-dom php-gd php-mbstring php-common<\/pre>\n
wget https:\/\/www.pimcore.org\/download\/pimcore-data.zip<\/pre>\n
yum -y install unzip\r\nmkdir \/var\/www\/html\/pimcore\/\r\nunzip pimcore-data.zip -d \/var\/www\/html\/pimcore\/<\/pre>\n
chown -R apache:apache \/var\/www\/html\/pimcore\/<\/pre>\n
yum -y install cronie\r\ncrontab -u\r\n*\/5 * * * * \/usr\/bin\/php \/var\/www\/html\/pimcore\/pimcore\/cli\/maintenance.php<\/pre>\n
IncludeOptional vhosts.d\/*.conf<\/pre>\n
mkdir \/etc\/httpd\/vhosts.d<\/pre>\n
vim \/etc\/httpd\/vhosts.d\/yourdomain.conf\r\n\r\n<VirtualHost YOUR_SERVER_IP:80>\r\nServerAdmin webmaster@yourdomain.com\r\nDocumentRoot \"\/var\/www\/html\/pimcore\"\r\nServerName yourdomain.com\r\nServerAlias www.yourdomain.com\r\nErrorLog \"\/var\/log\/httpd\/yourdomain.com-error_log\"\r\nCustomLog \"\/var\/log\/httpd\/yourdomain.com-access_log\" combined\r\n\r\n<Directory \"\/var\/www\/html\/pimcore\/\">\r\nDirectoryIndex index.php\r\nOptions FollowSymLinks\r\nAllowOverride All\r\nRequire all granted\r\n<\/Directory>\r\n<\/VirtualHost><\/pre>\n
systemctl restart httpd<\/pre>\n