{"id":2284,"date":"2016-07-28T17:27:33","date_gmt":"2016-07-28T21:27:33","guid":{"rendered":"https:\/\/www.globo.tech\/learning-center\/?p=2284"},"modified":"2017-04-19T15:57:05","modified_gmt":"2017-04-19T19:57:05","slug":"install-prestashop-centos-7","status":"publish","type":"post","link":"https:\/\/www.globo.tech\/learning-center\/install-prestashop-centos-7\/","title":{"rendered":"How to Install PrestaShop On CentOS 7"},"content":{"rendered":"<p>PrestaShop is a free eCommerce shopping cart software suite for small to large businesses. It&#8217;s open source under the OSL license, and has an extensive range of modules and themes so you can customize the look and features to better suit your own situation.<\/p>\n<h2>Getting started<\/h2>\n<p>To complete this guide, you will need the following:<br \/>\n\u2022 1 Node (<a href=\"https:\/\/www.globo.tech\/cloud-server-pricing\" target=\"_blank\">Cloud Server<\/a> or <a href=\"http:\/\/www.globo.tech\/dedicated-server-hosting\" target=\"_blank\">Dedicated Server<\/a>) running a clean installation of CentOS 7<br \/>\n\u2022 All commands should be run as the root user<br \/>\n\u2022 A LAMP stack using Nginx, PHP and MariaDB<\/p>\n<h2>Tutorial<\/h2>\n<p>Before beginning, disable Selinux if it isn&#8217;t already.<\/p>\n<p><code>setenforce 0<br \/>\nsed -i 's\/enforcing\/disabled\/' \/etc\/sysconfig\/selinux<br \/>\nsed -i 's\/enforcing\/disabled\/' \/etc\/selinux\/config<\/code><\/p>\n<p>Make sure your system is up to date, then install these packages required by PrestaShop:<\/p>\n<p><code>yum -y install wget nano unzip<\/code><\/p>\n<p>Prestashop also requires PHP modules which you can only obtain from the EPEL repository. This command will allow you to add the EPEL repository to your system:<\/p>\n<p><code>yum -y install epel-release<\/code><\/p>\n<p>Now you can install the necessary php modules.<\/p>\n<p><code>yum -y install php-mysql php-gd php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-snmp php-soap php-mcrypt curl zlib<\/code><\/p>\n<p>Restart the Apache daemon so it will recognize the system changes.<\/p>\n<p><code>systemctl restart httpd.service<\/code><\/p>\n<p>Next, create the database and user that Prestashop will use to store your information.<\/p>\n<p><code>mysql -u root -p<\/code><\/p>\n<p><code class=\"gris\">create database prestashop;<br \/>\ngrant all privileges on prestashop.* to 'prestashop'@'localhost' identified by 'prestashoppassword';<br \/>\nflush privileges;<br \/>\nexit<\/code><\/p>\n<p>It&#8217;s finally time to download Prestashop. Unzip it into a temporary directory.<\/p>\n<p><code>mkdir prestashop<br \/>\ncd prestashop<br \/>\nwget http:\/\/downloads.sourceforge.net\/project\/prestashop\/prestashop%20v1\/1.6.0%20stable\/prestashop_1.6.1.2.zip<br \/>\nunzip prestashop_1.6.1.2.zip<\/code><\/p>\n<p>The latest version of Prestashop is available here : https:\/\/sourceforge.net\/projects\/prestashop\/files\/<\/p>\n<p>From the temporary directory, copy the content to your Document root folder.<\/p>\n<p><code>cp prestashop\/ \/var\/www\/html\/ -R<\/code><\/p>\n<p>Change the permissions on the folder so that Apache, and thereby your webuser, can access it.<\/p>\n<p><code>chmod 755 \/var\/www\/html\/prestashop\/ -R<br \/>\nchown apache. * \/var\/www\/html\/prestashop\/ -R<\/code><\/p>\n<p>In order to finish the installation of Prestashop, visit the following URL in a browser:<br \/>\nhttp:\/\/your_ip\/prestashop\/<\/p>\n<p>Remember the database you created? You&#8217;ll need to tell PrestaShop what the database name, username and password are. Using that information, fill out the installation form.<\/p>\n<p>Once installation is complete, you should remove the install directory.<\/p>\n<p><code>rm -rf \/var\/www\/html\/prestashop\/install\/<\/code><\/p>\n<p>In order to administer your PrestaShop site, login the admin panel for the first time using this URL:<br \/>\nhttp:\/\/your_ip\/prestashop\/admin<\/p>\n<p>For security purposes, at this time the admin directory will be renamed to another name in your server.<\/p>\n<p>To find out what this new name is, enter this command in your terminal window:<\/p>\n<p><code>cd \/var\/www\/html\/prestashop<br \/>\nls<\/code><\/p>\n<p><code class=\"gris\">[root@centos7 prestashop]# ls<br \/>\nAdapter         architecture.md  classes  CONTRIBUTING.md  controllers  css   download       footer.php  images.inc.php  index.php  js            log    modules   pdf        themes  translations  webservice<br \/>\nadmin860ydydgp  cache            config   CONTRIBUTORS.md  Core         docs  error500.html  header.php  img             init.php   localization  mails  override  README.md  tools   upload<\/code><\/p>\n<p>The new admin directory takes the form of adminXXXXX. For example, if it&#8217;s admin860ydydgp, then this is the URL you will need to use to login to the admin panel in the future:<br \/>\nhttp:\/\/your_ip\/admin860ydydgp<\/p>\n<p>This directory is random; it will change with every installation.<\/p>\n<h2>Conclusion<\/h2>\n<p>With PrestaShop installed, you have now joined the ranks of thousands of other happy online shop owners. Your customers will enjoy a shopping cart experience known for its simplicity and efficiency. If this guide was helpful to you, kindly share it with others who may also be interested. <\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>PrestaShop is a free eCommerce shopping cart software suite for small to large businesses. It&#8217;s open source under the OSL license, and has an extensive range of modules and themes so you can customize the look and features to better suit your own situation. Getting started To complete this guide, you will need the following:<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[71,70],"tags":[],"class_list":["post-2284","post","type-post","status-publish","format-standard","hentry","category-applications","category-web-hosting","operating_system-centos-7"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install PrestaShop On CentOS 7 - Globo.Tech<\/title>\n<meta name=\"description\" content=\"This tutorial will show you how to install PrestaShop on your CentOS 7 server. Read now &amp; Enjoy this free eCommerce shopping cart software suite.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.globo.tech\/learning-center\/install-prestashop-centos-7\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install PrestaShop On CentOS 7 - Globo.Tech\" \/>\n<meta property=\"og:description\" content=\"This tutorial will show you how to install PrestaShop on your CentOS 7 server. Read now &amp; Enjoy this free eCommerce shopping cart software suite.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.globo.tech\/learning-center\/install-prestashop-centos-7\/\" \/>\n<meta property=\"og:site_name\" content=\"Globo.Tech\" \/>\n<meta property=\"article:published_time\" content=\"2016-07-28T21:27:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-04-19T19:57:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/09\/GloboTech-Logo.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"963\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"GloboTech Communications\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"GloboTech Communications\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/install-prestashop-centos-7\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/install-prestashop-centos-7\\\/\"},\"author\":{\"name\":\"GloboTech Communications\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#\\\/schema\\\/person\\\/e17784b37f4a4f49b7bc611847912e87\"},\"headline\":\"How to Install PrestaShop On CentOS 7\",\"datePublished\":\"2016-07-28T21:27:33+00:00\",\"dateModified\":\"2017-04-19T19:57:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/install-prestashop-centos-7\\\/\"},\"wordCount\":442,\"commentCount\":0,\"articleSection\":[\"Applications\",\"Web Hosting\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/install-prestashop-centos-7\\\/\",\"url\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/install-prestashop-centos-7\\\/\",\"name\":\"How to Install PrestaShop On CentOS 7 - Globo.Tech\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#website\"},\"datePublished\":\"2016-07-28T21:27:33+00:00\",\"dateModified\":\"2017-04-19T19:57:05+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#\\\/schema\\\/person\\\/e17784b37f4a4f49b7bc611847912e87\"},\"description\":\"This tutorial will show you how to install PrestaShop on your CentOS 7 server. Read now & Enjoy this free eCommerce shopping cart software suite.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/install-prestashop-centos-7\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/install-prestashop-centos-7\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/install-prestashop-centos-7\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install PrestaShop On CentOS 7\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#website\",\"url\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/\",\"name\":\"Globo.Tech\",\"description\":\"Welcome to the Official Globo.Tech Learning Center\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#\\\/schema\\\/person\\\/e17784b37f4a4f49b7bc611847912e87\",\"name\":\"GloboTech Communications\",\"sameAs\":[\"http:\\\/\\\/www.gtcomm.net\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install PrestaShop On CentOS 7 - Globo.Tech","description":"This tutorial will show you how to install PrestaShop on your CentOS 7 server. Read now & Enjoy this free eCommerce shopping cart software suite.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.globo.tech\/learning-center\/install-prestashop-centos-7\/","og_locale":"en_US","og_type":"article","og_title":"How to Install PrestaShop On CentOS 7 - Globo.Tech","og_description":"This tutorial will show you how to install PrestaShop on your CentOS 7 server. Read now & Enjoy this free eCommerce shopping cart software suite.","og_url":"https:\/\/www.globo.tech\/learning-center\/install-prestashop-centos-7\/","og_site_name":"Globo.Tech","article_published_time":"2016-07-28T21:27:33+00:00","article_modified_time":"2017-04-19T19:57:05+00:00","og_image":[{"width":1920,"height":963,"url":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/09\/GloboTech-Logo.png","type":"image\/png"}],"author":"GloboTech Communications","twitter_misc":{"Written by":"GloboTech Communications","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.globo.tech\/learning-center\/install-prestashop-centos-7\/#article","isPartOf":{"@id":"https:\/\/www.globo.tech\/learning-center\/install-prestashop-centos-7\/"},"author":{"name":"GloboTech Communications","@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87"},"headline":"How to Install PrestaShop On CentOS 7","datePublished":"2016-07-28T21:27:33+00:00","dateModified":"2017-04-19T19:57:05+00:00","mainEntityOfPage":{"@id":"https:\/\/www.globo.tech\/learning-center\/install-prestashop-centos-7\/"},"wordCount":442,"commentCount":0,"articleSection":["Applications","Web Hosting"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.globo.tech\/learning-center\/install-prestashop-centos-7\/","url":"https:\/\/www.globo.tech\/learning-center\/install-prestashop-centos-7\/","name":"How to Install PrestaShop On CentOS 7 - Globo.Tech","isPartOf":{"@id":"https:\/\/www.globo.tech\/learning-center\/#website"},"datePublished":"2016-07-28T21:27:33+00:00","dateModified":"2017-04-19T19:57:05+00:00","author":{"@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87"},"description":"This tutorial will show you how to install PrestaShop on your CentOS 7 server. Read now & Enjoy this free eCommerce shopping cart software suite.","breadcrumb":{"@id":"https:\/\/www.globo.tech\/learning-center\/install-prestashop-centos-7\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.globo.tech\/learning-center\/install-prestashop-centos-7\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.globo.tech\/learning-center\/install-prestashop-centos-7\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.globo.tech\/learning-center\/"},{"@type":"ListItem","position":2,"name":"How to Install PrestaShop On CentOS 7"}]},{"@type":"WebSite","@id":"https:\/\/www.globo.tech\/learning-center\/#website","url":"https:\/\/www.globo.tech\/learning-center\/","name":"Globo.Tech","description":"Welcome to the Official Globo.Tech Learning Center","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.globo.tech\/learning-center\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87","name":"GloboTech Communications","sameAs":["http:\/\/www.gtcomm.net"]}]}},"_links":{"self":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2284","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/comments?post=2284"}],"version-history":[{"count":3,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2284\/revisions"}],"predecessor-version":[{"id":2941,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2284\/revisions\/2941"}],"wp:attachment":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/media?parent=2284"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/categories?post=2284"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/tags?post=2284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}