{"id":1564,"date":"2016-12-06T11:59:44","date_gmt":"2016-12-06T11:59:44","guid":{"rendered":"http:\/\/cloudkul.com\/blog\/?p=1564"},"modified":"2018-03-31T08:00:14","modified_gmt":"2018-03-31T08:00:14","slug":"installation-orocommerce-php5-using-composer-tool","status":"publish","type":"post","link":"https:\/\/cloudkul.com\/blog\/installation-orocommerce-php5-using-composer-tool\/","title":{"rendered":"Installation of OroCommerce with  PHP5 using Composer tool"},"content":{"rendered":"<p>OroCommerce is a open source Business to Business Commerce application. It provides flexibility while managing complex account structure in business, team, department, office and branches. Here seller and buyer can manage there own complex structure. Sellers can manage multiple stores through a single console. It makes easier for them to manage a lot of data. Content Management System (CMS) allows the sellers to manage their product catalogs. It also provides seller-buyer interaction which is helpful in managing relationship with the customers. There are so many features you can use while using OroCommerce. To know more details about OroCommerce please visit\u00a0<a href=\"https:\/\/oroinc.com\/orocommerce\/\" target=\"_blank\" rel=\"noopener\">https:\/\/oroinc.com\/orocommerce\/<\/a><\/p>\n<p>In this tutorial I will show you how to setup a OroCommerce on a server.<\/p>\n<p>For this tutorial I am using Ubuntu 14.04 and php 5.<\/p>\n<p><span style=\"text-decoration: underline\"><strong>Install apache, Mysql and NodeJS<\/strong><\/span><\/p>\n<pre class=\"lang:sh decode:true\">sudo su\r\n \r\napt-get update\r\n\r\napt-get install php5\r\n \r\napt-get install apache2 libapache2-mod-php5\r\n \r\napt-get install mysql-server\r\n \r\napt-get install nodejs<\/pre>\n<p><span style=\"text-decoration: underline\"><strong>Install php5 dependencies<\/strong><\/span><\/p>\n<pre class=\"lang:sh decode:true\">apt-get install php5-{gd,curl,intl,json,mcrypt,mysql,readline,tidy}<\/pre>\n<p><span style=\"text-decoration: underline\"><strong>Php5 Configuration<\/strong><\/span><\/p>\n<p>open <strong>\/etc\/php5\/apache2\/php.ini\u00a0<\/strong>and <strong>\/etc\/php5\/cli\/php.ini<\/strong> make the following changes.<\/p>\n<pre class=\"lang:sh decode:true \">date.timezone = Asia\/Kolkata # set your timezone\r\nmemory_limit = 768M # Minimum 512 Mb required<\/pre>\n<p>Enable php5 mcrypt extension<\/p>\n<pre class=\"lang:sh decode:true \">php5enmod mcrypt<\/pre>\n<p>&nbsp;<\/p>\n<p><span style=\"text-decoration: underline\"><strong>Configure Database<\/strong><\/span><\/p>\n<pre class=\"lang:sh decode:true\">mysql -u root -p\r\n\r\ncreate database oro_commerce;\r\n\r\ncreate user 'oro_commerce'@'%' identified by 'oro_commerce';\r\n\r\ngrant all privileges on oro_commerce.* to 'oro_commerce'@'%';\r\n\r\nflush privileges;\r\n\r\nquit;<\/pre>\n<p><span style=\"text-decoration: underline\"><strong>Download and Install composer<\/strong><\/span><\/p>\n<pre class=\"lang:sh decode:true \">php -r \"copy('https:\/\/getcomposer.org\/installer', 'composer-setup.php');\"\r\n\r\nphp -r \"if (hash_file('SHA384', 'composer-setup.php') === 'c32408bcd017c577ce80605420e5987ce947a5609e8443dd72cd3867cc3a0cf442e5bf4edddbcbe72246a953a6c48e21') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;\"\r\n\r\nphp composer-setup.php --install-dir=\/bin --filename=composer\r\n\r\nphp -r \"unlink('composer-setup.php');\"\r\n<\/pre>\n<p><span style=\"text-decoration: underline\"><strong>Download orocommerce data from git<\/strong><\/span><\/p>\n<pre class=\"lang:sh decode:true\">apt-get install git\r\n\r\ncd \/var\/www\/\r\n\r\ngit clone --recursive -b 1.0.0-beta.5 https:\/\/github.com\/orocommerce\/orocommerce-application.git\r\n\r\ncd orocommerce-application\r\n\r\ncomposer install<\/pre>\n<p>If some of the php dependencies are missing composer will give us error. You need to install the php extensions. If everything is fine, then composer install will run successfully. It will ask for some configuration parameter. You can change the parameter later in <strong>app\/config\/parameters.yml<\/strong> file.<\/p>\n<p>sometime you will get error like this.<\/p>\n<p><a href=\"http:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2016\/12\/composer-dependency.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1581\" src=\"http:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2016\/12\/composer-dependency.png\" alt=\"composer-dependency\" width=\"718\" height=\"365\" \/><\/a><\/p>\n<p>To resolve the issue, you need to run the command<\/p>\n<pre class=\"lang:sh decode:true\">composer global require fxp\/composer-asset-plugin:1.2.2\r\ncomposer install<\/pre>\n<p>&nbsp;<\/p>\n<p><span style=\"text-decoration: underline\"><strong>Virtual Host Configuration<\/strong><\/span><\/p>\n<p>My web directory is <strong>\/var\/www\/orocommerce-application\/web<\/strong><\/p>\n<p>open <strong>\/etc\/apache2\/sites-enabled\/orocommerce.conf<\/strong><\/p>\n<pre class=\"lang:sh decode:true\">&lt;VirtualHost *:80&gt;\r\n    # You can give any servername\r\n    ServerName orocommerce.example.com\r\n \r\n    DirectoryIndex app.php\r\n    \r\n    DocumentRoot \/var\/www\/orocommerce-application\/web\r\n    &lt;Directory  \/var\/www\/orocommerce-application\/web&gt;\r\n         Options FollowSymLinks\r\n         Require all granted \r\n         AllowOverride all\r\n    \r\n    &lt;\/Directory&gt;\r\n \r\n    ErrorLog \/var\/log\/apache2\/orocrm_error.log\r\n    CustomLog \/var\/log\/apache2\/orocrm_access.log combined\r\n \r\n&lt;\/VirtualHost&gt;<\/pre>\n<p><span style=\"text-decoration: underline\"><strong>Change file ownership and permission<\/strong><\/span><\/p>\n<pre class=\"lang:sh decode:true \">chown -R www-data:www-data \/var\/www\/orocommerce-application\/\r\n \r\nfind \/var\/www\/orocommerce-application\/ -type f -exec chmod 644 {} \\;\r\n \r\nfind \/var\/www\/orocommerce-application\/ -type d -exec chmod 755 {} \\;<\/pre>\n<p><span style=\"text-decoration: underline\"><strong>Restart the apache service<\/strong><\/span><\/p>\n<pre class=\"lang:sh decode:true \">a2enmod rewrite\r\nservice apache2 restart<\/pre>\n<p>Open your <strong>\/etc\/hosts<\/strong> file and add the entry for your server name.<\/p>\n<pre class=\"lang:sh decode:true \">127.0.0.1   orocommerce.example.com<\/pre>\n<p>open your browser and hit the url <strong>http:\/\/orocommerce.example.com\/install.php.\u00a0<\/strong>This will guide you through the rest of the installation process. After installation you can explore your OroCommerce. If you have any doubts regarding installation, you can ask me in the comment.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: center\">\u00a0 <a href=\"http:\/\/cloudkul.com\/contact\/\" target=\"_blank\" rel=\"noopener\">IN CASE OF ANY QUERY,CONTACT US<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OroCommerce is a open source Business to Business Commerce application. It provides flexibility while managing <a class=\"text-primary\" title=\"read more\" href=\"https:\/\/cloudkul.com\/blog\/installation-orocommerce-php5-using-composer-tool\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":8,"featured_media":1592,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[93],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Installation of OroCommerce with PHP5 using Composer tool - Cloudkul<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cloudkul.com\/blog\/installation-orocommerce-php5-using-composer-tool\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Installation of OroCommerce with PHP5 using Composer tool - Cloudkul\" \/>\n<meta property=\"og:description\" content=\"OroCommerce is a open source Business to Business Commerce application. It provides flexibility while managing [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cloudkul.com\/blog\/installation-orocommerce-php5-using-composer-tool\/\" \/>\n<meta property=\"og:site_name\" content=\"Cloudkul\" \/>\n<meta property=\"article:published_time\" content=\"2016-12-06T11:59:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-03-31T08:00:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2016\/12\/orocommerce-install.png\" \/>\n\t<meta property=\"og:image:width\" content=\"848\" \/>\n\t<meta property=\"og:image:height\" content=\"422\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"suranjan horrow\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cloudkul.com\/blog\/installation-orocommerce-php5-using-composer-tool\/\",\"url\":\"https:\/\/cloudkul.com\/blog\/installation-orocommerce-php5-using-composer-tool\/\",\"name\":\"Installation of OroCommerce with PHP5 using Composer tool - Cloudkul\",\"isPartOf\":{\"@id\":\"https:\/\/cloudkul.com\/blog\/#website\"},\"datePublished\":\"2016-12-06T11:59:44+00:00\",\"dateModified\":\"2018-03-31T08:00:14+00:00\",\"author\":{\"@id\":\"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/a653191c790a89b07d4b4aaefc3e2809\"},\"breadcrumb\":{\"@id\":\"https:\/\/cloudkul.com\/blog\/installation-orocommerce-php5-using-composer-tool\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cloudkul.com\/blog\/installation-orocommerce-php5-using-composer-tool\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cloudkul.com\/blog\/installation-orocommerce-php5-using-composer-tool\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cloudkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Installation of OroCommerce with PHP5 using Composer tool\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cloudkul.com\/blog\/#website\",\"url\":\"https:\/\/cloudkul.com\/blog\/\",\"name\":\"Cloudkul\",\"description\":\"Host your eCommerce Store on AWS with Optimized Performance\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cloudkul.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/a653191c790a89b07d4b4aaefc3e2809\",\"name\":\"suranjan horrow\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/dfd7f87bc7d62c1426e1f4c07653ff00?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/dfd7f87bc7d62c1426e1f4c07653ff00?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g\",\"caption\":\"suranjan horrow\"},\"sameAs\":[\"http:\/\/webkul.com\"],\"url\":\"https:\/\/cloudkul.com\/blog\/author\/suranjan-horrow869\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Installation of OroCommerce with PHP5 using Composer tool - Cloudkul","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:\/\/cloudkul.com\/blog\/installation-orocommerce-php5-using-composer-tool\/","og_locale":"en_US","og_type":"article","og_title":"Installation of OroCommerce with PHP5 using Composer tool - Cloudkul","og_description":"OroCommerce is a open source Business to Business Commerce application. It provides flexibility while managing [...]","og_url":"https:\/\/cloudkul.com\/blog\/installation-orocommerce-php5-using-composer-tool\/","og_site_name":"Cloudkul","article_published_time":"2016-12-06T11:59:44+00:00","article_modified_time":"2018-03-31T08:00:14+00:00","og_image":[{"width":848,"height":422,"url":"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2016\/12\/orocommerce-install.png","type":"image\/png"}],"author":"suranjan horrow","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/cloudkul.com\/blog\/installation-orocommerce-php5-using-composer-tool\/","url":"https:\/\/cloudkul.com\/blog\/installation-orocommerce-php5-using-composer-tool\/","name":"Installation of OroCommerce with PHP5 using Composer tool - Cloudkul","isPartOf":{"@id":"https:\/\/cloudkul.com\/blog\/#website"},"datePublished":"2016-12-06T11:59:44+00:00","dateModified":"2018-03-31T08:00:14+00:00","author":{"@id":"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/a653191c790a89b07d4b4aaefc3e2809"},"breadcrumb":{"@id":"https:\/\/cloudkul.com\/blog\/installation-orocommerce-php5-using-composer-tool\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cloudkul.com\/blog\/installation-orocommerce-php5-using-composer-tool\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/cloudkul.com\/blog\/installation-orocommerce-php5-using-composer-tool\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cloudkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Installation of OroCommerce with PHP5 using Composer tool"}]},{"@type":"WebSite","@id":"https:\/\/cloudkul.com\/blog\/#website","url":"https:\/\/cloudkul.com\/blog\/","name":"Cloudkul","description":"Host your eCommerce Store on AWS with Optimized Performance","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cloudkul.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/a653191c790a89b07d4b4aaefc3e2809","name":"suranjan horrow","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/dfd7f87bc7d62c1426e1f4c07653ff00?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/dfd7f87bc7d62c1426e1f4c07653ff00?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g","caption":"suranjan horrow"},"sameAs":["http:\/\/webkul.com"],"url":"https:\/\/cloudkul.com\/blog\/author\/suranjan-horrow869\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts\/1564"}],"collection":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/comments?post=1564"}],"version-history":[{"count":21,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts\/1564\/revisions"}],"predecessor-version":[{"id":3674,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts\/1564\/revisions\/3674"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/media\/1592"}],"wp:attachment":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/media?parent=1564"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/categories?post=1564"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/tags?post=1564"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}