{"id":424,"date":"2018-10-17T10:35:06","date_gmt":"2018-10-17T10:35:06","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/17\/how-to-install-prestashop-on-centos-7-%e2%80%a2-linuxcloudvps-blog\/"},"modified":"2018-10-17T13:49:22","modified_gmt":"2018-10-17T13:49:22","slug":"prestashoponcentos7","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/17\/prestashoponcentos7\/","title":{"rendered":"How to Install Prestashop on CentOS 7 \u2022 LinuxCloudVPS Blog"},"content":{"rendered":"<p>28th September 2018 \/<br \/>\nCategory: <a href=\"https:\/\/www.linuxcloudvps.com\/blog\/category\/tips-and-tricks\/\">Tips and Tricks<\/a> \/<br \/>\nComments: <a href=\"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-prestashop-on-centos-7\/#respond\">None<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2018\/09\/How-to-Install-Prestashop-on-CentOS-7.jpg\" alt=\"How to Install Prestashop on CentOS 7\" width=\"600\" height=\"300\" \/><\/p>\n<p>PrestaShop is one of the most popular open source e-commerce self-hosted platforms. PrestaShop is completely free and open source, used by thousands of online stores around the world. In this article, we will explain the process of installing the latest version of PrestaShop on a CentOS 7 VPS with Apache, MariaDB, and PHP. In this tutorial, we will show you how do you install Prestashop on CentOS 7 based server.<\/p>\n<p>PrestaShop comes with hundreds of useful features, some of them are listed above:<\/p>\n<ul>\n<li>Extendable with free, external or add-on modules<\/li>\n<li>Wide choice of customizable e-commerce themes<\/li>\n<li>Intuitive Interface<\/li>\n<li>Easily manage your products and orders<\/li>\n<li>More than 50 payments methods supported<\/li>\n<li>and many more\u2026<\/li>\n<\/ul>\n<h3>Prerequisites<\/h3>\n<p>\u2013 CentOS 7 VPS with SSH root access<br \/>\n\u2013 Apache 2.x or Nginx web server<br \/>\n\u2013 PHP version 5.4 or newer, with Mcrypt, OpenSSL, Zip, Curl, GD, and PDO extensions<br \/>\n\u2013 MySQL database server version 5.4 or newer with a database created<\/p>\n<h3>1. Login via SSH and update the system<\/h3>\n<p>In order to start installing the necessary services, we need to login to the CentoS 7 VPS via SSH as user root<\/p>\n<p>ssh root@IP_Address -p Port_Number<\/p>\n<p>Before we can continue, make sure that all installed packages are updated to the latest version<\/p>\n<p>yum -y update<\/p>\n<h3>2. Install MariaDB<\/h3>\n<p>Next, install MariaDB database server on your VPS by executing the following command<\/p>\n<p>yum -y install mariadb<\/p>\n<p>Start the database server and enable it to automatically start upon server reboot<\/p>\n<p>systemctl start mariadb<br \/>\nsystemctl enable mariadb<\/p>\n<p>After the installation is completed, run the \u2018mysql_secure_installation\u2019 script to set the password of the MariaDB \u2018root\u2019 user and additionally strengthen the security of the database server.<\/p>\n<p>With this step, the installation of the MariaDB server is completed. Now, login to the database server as user root,<\/p>\n<p>mysql -u root -p<\/p>\n<p>MariaDB [(none)]&gt; CREATE DATABASE prestashop;<br \/>\nMariaDB [(none)]&gt; CREATE USER &#8216;user&#8217;@&#8217;localhost&#8217; IDENTIFIED BY &#8216;PASSWORD&#8217;;<br \/>\nMariaDB [(none)]&gt; GRANT ALL PRIVILEGES ON prestashop.* TO &#8216;user&#8217;@&#8217;localhost&#8217;;<br \/>\nMariaDB [(none)]&gt; FLUSH PRIVILEGES<br \/>\nMariaDB [(none)]&gt; exit<\/p>\n<p>and of course, don\u2019t forget to replace \u2018PASSWORD\u2019 with an actual strong password.<\/p>\n<h3>3. Install Apache Web Server<\/h3>\n<p>Install Apache from the official CentOS 7 repositories using the yum package manager<\/p>\n<p>yum -y install httpd<\/p>\n<p>start the web server and enable it to automatically start after reboot<\/p>\n<p>systemctl start httpd<br \/>\nsystemctl enable httpd<\/p>\n<h3>4. Install PHP 7.1<\/h3>\n<p>PHP 5.6 is the minimum supported PHP version, but PrestaShop runs perfectly on PHP 7.1 and this is the recommended version, so we will install it on our server. CentOS 7 by default is shipped with PHP 5.4, so we will need to add an extra repository in order to be able to install a newer PHP version.<\/p>\n<p>Run the following commands to add the Webtatic EL repository<\/p>\n<p>yum -y install epel-release<br \/>\nrpm -Uvh https:\/\/mirror.webtatic.com\/yum\/el7\/webtatic-release.rpm<\/p>\n<p>and install PHP 7.1 along with the PHP extensions we mentioned in the prerequisites section<br \/>\nyum install php71w php71w-common php71w-curl php71w-mysql php71w-mcrypt php71w-gd php70w-cli php70-pdo<\/p>\n<h3>5. Download and unpack PrestaShop<\/h3>\n<p>Download the latest stable release of PrestaShop to your server. Currently, it is version 1.7.4.2<\/p>\n<p>wget https:\/\/download.prestashop.com\/download\/releases\/prestashop_1.7.4.2.zip<\/p>\n<p>Unpack the archive to the document root directory of your server<\/p>\n<p>unzip prestashop_1.7.4.2.zip -d \/var\/www\/html<br \/>\nunzip prestashop_1.7.4.2.zip<br \/>\nunzip prestashop.zip -d \/var\/www\/html\/prestashop\/<\/p>\n<p>and set the correct permissions to the PrestaShop directory<\/p>\n<p>chown apache:apache -R \/var\/www\/html\/prestashop\/<\/p>\n<h3>6. Create Apache Virtual Host<\/h3>\n<p>At this point, you should be able to access your PrestaShop website using your server\u2019s IP address. We will create a new Apache virtual host, so we can be able to access it with a domain name. Create a new virtual host directive with the following content:<\/p>\n<p>vi \/etc\/httpd\/conf.d\/prestashop.conf<\/p>\n<p>ServerAdmin admin@your-domain.com<br \/>\nDocumentRoot \/var\/www\/html\/prestashop\/<br \/>\nServerName your-domain.com<br \/>\nServerAlias www.your-domain.com<\/p>\n<p>Options +FollowSymlinks<br \/>\nAllowOverride Al<\/p>\n<p>ErrorLog \/var\/log\/httpd\/prestashop-error_log<br \/>\nCustomLog \/var\/log\/httpd\/prestashop-access_log common<\/p>\n<p>Save the file and restart the web server for the changes to take effect<\/p>\n<p>systemctl restart httpd<\/p>\n<h3>7. Access and install PrestaShop<\/h3>\n<p>Now, since we already installed and configured all necessary services and packages, and downloaded PrestaShop, you should be able to access your PrestaShop e-commerce website at http:\/\/your-domain.com and follow the on-screen instructions to complete the installation from your favorite web browser. Once everything is properly installed, for security purposes you should remove the installation directory<\/p>\n<p>rm -rf \/var\/www\/html\/prestashop\/install\/<\/p>\n<p>For more details on how to configure and use PrestaShop, please check their official <a href=\"https:\/\/www.prestashop.com\/en\/resources\/documentations\" target=\"_blank\" rel=\"noopener\">documentation<\/a>.<\/p>\n<p>Of course, you don\u2019t have to Install PrestaShop on CentOS 7 if you use our <a href=\"https:\/\/www.linuxcloudvps.com\" target=\"_blank\" rel=\"noopener\">Managed PrestaShop Hosting<\/a> services, in which case you can simply ask our expert Linux admins to install PrestaShop on CentOS 7, for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2018\/09\/Installing-PrestaShop-on-CentOS-7.jpg\" alt=\"Installing PrestaShop on CentOS 7\" width=\"170\" height=\"170\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>PS. If you liked this post, on how to Install PrestaShop on CentOS, 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<p>Be the first to write a comment.<\/p>\n<p><a href=\"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-prestashop-on-centos-7\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>28th September 2018 \/ Category: Tips and Tricks \/ Comments: None PrestaShop is one of the most popular open source e-commerce self-hosted platforms. PrestaShop is completely free and open source, used by thousands of online stores around the world. In this article, we will explain the process of installing the latest version of PrestaShop on &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/17\/prestashoponcentos7\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Install Prestashop on CentOS 7 \u2022 LinuxCloudVPS Blog&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-424","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/424","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=424"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/424\/revisions"}],"predecessor-version":[{"id":489,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/424\/revisions\/489"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=424"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=424"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=424"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}