{"id":16836,"date":"2015-02-24T13:46:17","date_gmt":"2015-02-24T19:46:17","guid":{"rendered":"https:\/\/secure.rosehosting.com\/blog\/?p=16836"},"modified":"2024-11-27T01:41:07","modified_gmt":"2024-11-27T07:41:07","slug":"install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm\/","title":{"rendered":"Install OpenCart 2 on an Ubuntu 14.04 VPS with Nginx and PHP-FPM"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignleft size-thumbnail wp-image-16838\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/02\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm-150x150.png\" alt=\"install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm\" width=\"150\" height=\"150\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/02\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm-150x150.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/02\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm-100x100.png 100w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/02\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm-50x50.png 50w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/02\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm-75x75.png 75w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/02\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm.png 256w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/>In this tutorial, we will explain how to install OpenCart 2 on an Ubuntu 14.04 VPS with MariaDB, PHP-FPM and Nginx. OpenCart is an open-source, feature-rich, easy-to-use, and search engine-friendly PHP-based e-commerce solution. This guide should work on other <a title=\"Linux VPS\" href=\"https:\/\/www.rosehosting.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Linux VPS<\/a> systems as well but was tested and written for <a title=\"Ubuntu VPS Hosting\" href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">Ubuntu 14.04 VPS<\/a>.<br \/>\n<!--more--><\/p>\n<h4>Login to your VPS via SSH<\/h4>\n<pre>ssh your_user@myVPS<\/pre>\n<h4>Update the system and install the necessary packages<\/h4>\n<pre>user@myVPS:~# sudo apt-get update &amp;&amp; sudo apt-get -y upgrade\nuser@myVPS:~# sudo apt-get install python-software-properties software-properties-common git curl openssl vim<\/pre>\n<h4>Install MariaDB 10.0<\/h4>\n<pre>user@myVPS:~# sudo apt-key adv --recv-keys --keyserver hkp:\/\/keyserver.ubuntu.com:80 0xcbcb082a1bb943db\nuser@myVPS:~# sudo add-apt-repository 'deb http:\/\/mirror.pw\/mariadb\/repo\/10.0\/ubuntu trusty main'\nuser@myVPS:~# sudo apt-get install mariadb-server<\/pre>\n<p>When the installation is complete, run the following command to secure your installation:<\/p>\n<pre>mysql_secure_installation<\/pre>\n<p>Next, we need to create a database for our OpenCart installation.<\/p>\n<pre>mysql -uroot -p\nMariaDB [(none)]&gt; CREATE DATABASE opencart;\nMariaDB [(none)]&gt; GRANT ALL PRIVILEGES ON opencart.* TO 'opencartuser'@'localhost' IDENTIFIED BY 'opencartuser_passwd';\nMariaDB [(none)]&gt; FLUSH PRIVILEGES;\nMariaDB [(none)]&gt; \\q<\/pre>\n<h4>Download and extract OpenCart 2<\/h4>\n<p>Create a root directory for your website and extract OpenCart 2 zip file<\/p>\n<pre>user@myVPS:~# mkdir -p ~\/your_shop.com\nuser@myVPS:~# cd ~\/your_shop.com\nuser@myVPS:~# wget https:\/\/github.com\/opencart\/opencart\/archive\/2.0.1.1.zip\nuser@myVPS:~# unzip 2.0.1.1.zip\nuser@myVPS:~# mv opencart-2.0.1.1\/upload\/* .\nuser@myVPS:~# rm -rf opencart-2.0.1.1 2.0.1.1.zip<\/pre>\n<h4>Install and configure PHP and Nginx<\/h4>\n<p>Installing PHP and Nginx is pretty easy, just run the following command:<\/p>\n<pre>user@myVPS:~# sudo apt-get install nginx php5-fpm php5-cli php5-mcrypt php5-gd php5-mysqlnd php5-curl\nuser@myVPS:~# sudo php5enmod mcrypt<\/pre>\n<p>Create a new PHP-FPM pool for your user:<\/p>\n<pre>user@myVPS:~# sudo vim \/etc\/php5\/fpm\/pool.d\/your_user.conf<\/pre>\n<pre>[your_user]\nuser = your_user  \ngroup = your_user  \nlisten = \/var\/run\/php5-fpm-your_user.sock  \nlisten.owner = your_user\nlisten.group = your_user  \nlisten.mode = 0666  \npm = ondemand  \npm.max_children = 5  \npm.process_idle_timeout = 10s;  \npm.max_requests = 200  \nchdir = \/  \n<\/pre>\n<p>Do not forget to change your_user with your username.<br \/>\nRestart PHP-FPM<\/p>\n<pre>user@myVPS:~# sudo service php5-fpm restart<\/pre>\n<p>Generate SSL certificate:<\/p>\n<pre>user@myVPS:~# sudo mkdir -p \/etc\/nginx\/ssl\nuser@myVPS:~# cd \/etc\/nginx\/ssl\nuser@myVPS:~# sudo openssl genrsa -des3 -passout pass:x -out opencart.pass.key 2048\nuser@myVPS:~# sudo openssl rsa -passin pass:x -in opencart.pass.key -out opencart.key\nuser@myVPS:~# sudo rm opencart.pass.key\nuser@myVPS:~# sudo openssl req -new -key opencart.key -out opencart.csr\nuser@myVPS:~# sudo openssl x509 -req -days 365 -in opencart.csr -signkey opencart.key -out opencart.crt<\/pre>\n<p>Next, create a new Nginx server block:<\/p>\n<pre>user@myVPS:~# sudo vim \/etc\/nginx\/sites-available\/your_shop.com<\/pre>\n<pre>server {\n    listen      80;\n    server_name www.your_shop.com;\n\n    add_header Strict-Transport-Security max-age=2592000;\n    return 301 http:\/\/your-shop.com$request_uri;\n}\n\nserver {\n    listen      80;\n    server_name your_shop.com;\n\n    root \/home\/your_user\/your_shop.com;\n\n    index index.html index.htm index.php;\n\n    charset utf-8;\n\n    access_log  \/var\/log\/nginx\/your_shop.com.access.log;\n    error_log   \/var\/log\/nginx\/your_shop.com.error.log;\n\n    rewrite \/admin$ $scheme:\/\/$host$uri\/ permanent;\n\n    location \/ {\n         try_files $uri @opencart;\n    }\n\n    location @opencart {\n        rewrite ^\/(.+)$ \/index.php?_route_=$1 last;\n    }\n\n\n    location \/admin {\n        index index.php;\n    }\n\n    rewrite ^\/sitemap.xml$ \/index.php?route=feed\/google_sitemap last;\n    rewrite ^\/googlebase.xml$ \/index.php?route=feed\/google_base last;\n    rewrite ^\/download\/(.*) \/index.php?route=error\/not_found last;\n\n    location = \/favicon.ico { access_log off; log_not_found off; }\n    location = \/robots.txt  { access_log off; log_not_found off; }\n\n    sendfile off;\n\n    location ~ \\.php$ {\n        fastcgi_split_path_info ^(.+\\.php)(\/.+)$;\n        fastcgi_pass unix:\/var\/run\/php5-fpm-your_user.sock;\n        fastcgi_index index.php;\n        include fastcgi_params;\n        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\n        fastcgi_intercept_errors off;\n        fastcgi_buffer_size 16k;\n        fastcgi_buffers 4 16k;\n    }\n\n    location ~ \/\\.ht {\n        deny all;\n    }\n}\n\n\nserver {\n    listen 443 ssl spdy;\n    server_name www.your_shop.com;\n\n    ssl on;\n    ssl_certificate     \/etc\/nginx\/ssl\/opencart.crt;\n    ssl_certificate_key \/etc\/nginx\/ssl\/opencart.key;\n\n    return 301 https:\/\/your-shop.com$request_uri;\n}\n\nserver {\n    listen      443 ssl spdy;\n    server_name your_shop.com;\n\n    ssl on;\n    ssl_certificate     \/etc\/nginx\/ssl\/opencart.crt;\n    ssl_certificate_key \/etc\/nginx\/ssl\/opencart.key;\n    ssl_session_timeout 5m;\n\n    ssl_ciphers               'AES128+EECDH:AES128+EDH:!aNULL';\n    ssl_protocols              TLSv1 TLSv1.1 TLSv1.2;\n    ssl_prefer_server_ciphers on;\n\n    root \/home\/your_user\/your_shop.com;\n\n    index index.html index.htm index.php;\n\n    charset utf-8;\n\n    access_log  \/var\/log\/nginx\/your_shop.com.ssl.access.log;\n    error_log   \/var\/log\/nginx\/your_shop.com.ssl.error.log;\n\n    rewrite \/admin$ $scheme:\/\/$host$uri\/ permanent;\n\n    location \/ {\n         try_files $uri @opencart;\n    }\n\n    location @opencart {\n        rewrite ^\/(.+)$ \/index.php?_route_=$1 last;\n    }\n\n\n    location \/admin {\n        index index.php;\n    }\n\n    rewrite ^\/sitemap.xml$ \/index.php?route=feed\/google_sitemap last;\n    rewrite ^\/googlebase.xml$ \/index.php?route=feed\/google_base last;\n    rewrite ^\/download\/(.*) \/index.php?route=error\/not_found last;\n\n    location = \/favicon.ico { access_log off; log_not_found off; }\n    location = \/robots.txt  { access_log off; log_not_found off; }\n\n    sendfile off;\n\n    location ~ \\.php$ {\n        fastcgi_split_path_info ^(.+\\.php)(\/.+)$;\n        fastcgi_pass unix:\/var\/run\/php5-fpm-your_user.sock;\n        fastcgi_index index.php;\n        include fastcgi_params;\n        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\n        fastcgi_intercept_errors off;\n        fastcgi_buffer_size 16k;\n        fastcgi_buffers 4 16k;\n    }\n\n    location ~ \/\\.ht {\n        deny all;\n    }\n}\n<\/pre>\n<p>Do not forget to change your_user with your username.<\/p>\n<p>Activate the server block by creating a symbolic link and restart Nginx:<\/p>\n<pre>user@myVPS:~# sudo ln -s \/etc\/nginx\/sites-available\/your_shop.com \/etc\/nginx\/sites-enabled\/your_shop.com\nuser@myVPS:~# sudo \/etc\/init.d\/nginx restart<\/pre>\n<h4>Install OpenCart 2<\/h4>\n<p>Create empty configuration files:<\/p>\n<pre>user@myVPS:~# cd ~\/your_shop.com\nuser@myVPS:~# touch {admin,.}\/config.php<\/pre>\n<p>Open your browser, type the address, and follow the installation wizard. During the installation process, you will be asked to provide the mysql database, username, and password (<span class=\"st\">enter the\u00a0 mysql database, username, and password you created in the previous step)<\/span>.<\/p>\n<h4>Enable SSL<\/h4>\n<p>After the installation is complete to enable SSL, login to the admin dashboard and go to <code>System -&gt; Settings -&gt; Server Tab and select Use SSL<\/code> and click save. You also need to make the following modification in the config.php file.<\/p>\n<pre>user@myVPS:~# vim ~\/your_shop.com\/config.php<\/pre>\n<p>Change <code> define('HTTPS_SERVER', 'http:\/\/your_shop.com\/');<\/code><br \/>\nto <code> define('HTTPS_SERVER', 'https:\/\/your_shop.com\/');<\/code><\/p>\n<p>That&#8217;s it. You have successfully installed OpenCart 2 on your <a title=\"Ubuntu VPS Hosting\" href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">Ubuntu VPS<\/a>.<\/p>\n<hr \/>\n<p>Of course, you don\u2019t have to do any of this if you use one of our <a title=\"Linux VPS Hosting\" href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">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&#215;7 and will take care of your request immediately.<\/p>\n<p><strong><span style=\"color: #ff0000;\">PS<\/span><\/strong>. 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":"<p>In this tutorial, we will explain how to install OpenCart 2 on an Ubuntu 14.04 VPS with MariaDB, PHP-FPM and &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Install OpenCart 2 on an Ubuntu 14.04 VPS with Nginx and PHP-FPM\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm\/#more-16836\" aria-label=\"Read more about Install OpenCart 2 on an Ubuntu 14.04 VPS with Nginx and PHP-FPM\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":16838,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1711,13,1698,1712,1707],"tags":[296,49,222,51,59],"class_list":["post-16836","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-e-commerce","category-tutorials","category-ubuntu","category-web-frameworks","category-web-servers","tag-mariadb","tag-nginx","tag-opencart","tag-php-fpm","tag-ubuntu","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Install OpenCart 2 on an Ubuntu 14.04 VPS with Nginx &amp; PHP-FPM<\/title>\n<meta name=\"description\" content=\"Learn how to install OpenCart 2 on an Ubuntu 14.04 VPS with Nginx and PHP-FPM using our step-by-step guide.\" \/>\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.rosehosting.com\/blog\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Install OpenCart 2 on an Ubuntu 14.04 VPS with Nginx and PHP-FPM\" \/>\n<meta property=\"og:description\" content=\"Install OpenCart 2 on an Ubuntu 14.04 VPS with Nginx and PHP-FPM | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2015-02-24T19:46:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-27T07:41:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/02\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm.png\" \/>\n\t<meta property=\"og:image:width\" content=\"256\" \/>\n\t<meta property=\"og:image:height\" content=\"256\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"Install OpenCart 2 on an Ubuntu 14.04 VPS with Nginx and PHP-FPM\",\"datePublished\":\"2015-02-24T19:46:17+00:00\",\"dateModified\":\"2024-11-27T07:41:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm\\\/\"},\"wordCount\":358,\"commentCount\":12,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/02\\\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm.png\",\"keywords\":[\"mariadb\",\"nginx\",\"opencart\",\"php-fpm\",\"ubuntu\"],\"articleSection\":[\"E-Commerce\",\"Tutorials\",\"Ubuntu\",\"Web Frameworks\",\"Web Servers\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm\\\/\",\"name\":\"Install OpenCart 2 on an Ubuntu 14.04 VPS with Nginx & PHP-FPM\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/02\\\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm.png\",\"datePublished\":\"2015-02-24T19:46:17+00:00\",\"dateModified\":\"2024-11-27T07:41:07+00:00\",\"description\":\"Learn how to install OpenCart 2 on an Ubuntu 14.04 VPS with Nginx and PHP-FPM using our step-by-step guide.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/02\\\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/02\\\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm.png\",\"width\":256,\"height\":256},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Install OpenCart 2 on an Ubuntu 14.04 VPS with Nginx and PHP-FPM\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Install OpenCart 2 on an Ubuntu 14.04 VPS with Nginx & PHP-FPM","description":"Learn how to install OpenCart 2 on an Ubuntu 14.04 VPS with Nginx and PHP-FPM using our step-by-step guide.","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.rosehosting.com\/blog\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm\/","og_locale":"en_US","og_type":"article","og_title":"Install OpenCart 2 on an Ubuntu 14.04 VPS with Nginx and PHP-FPM","og_description":"Install OpenCart 2 on an Ubuntu 14.04 VPS with Nginx and PHP-FPM | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2015-02-24T19:46:17+00:00","article_modified_time":"2024-11-27T07:41:07+00:00","og_image":[{"width":256,"height":256,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/02\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm.png","type":"image\/png"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"Install OpenCart 2 on an Ubuntu 14.04 VPS with Nginx and PHP-FPM","datePublished":"2015-02-24T19:46:17+00:00","dateModified":"2024-11-27T07:41:07+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm\/"},"wordCount":358,"commentCount":12,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/02\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm.png","keywords":["mariadb","nginx","opencart","php-fpm","ubuntu"],"articleSection":["E-Commerce","Tutorials","Ubuntu","Web Frameworks","Web Servers"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm\/","url":"https:\/\/www.rosehosting.com\/blog\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm\/","name":"Install OpenCart 2 on an Ubuntu 14.04 VPS with Nginx & PHP-FPM","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/02\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm.png","datePublished":"2015-02-24T19:46:17+00:00","dateModified":"2024-11-27T07:41:07+00:00","description":"Learn how to install OpenCart 2 on an Ubuntu 14.04 VPS with Nginx and PHP-FPM using our step-by-step guide.","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/02\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/02\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm.png","width":256,"height":256},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/install-opencart-2-on-an-ubuntu-14-04-vps-with-nginx-and-php-fpm\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Install OpenCart 2 on an Ubuntu 14.04 VPS with Nginx and PHP-FPM"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/16836","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=16836"}],"version-history":[{"count":4,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/16836\/revisions"}],"predecessor-version":[{"id":49585,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/16836\/revisions\/49585"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/16838"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=16836"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=16836"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=16836"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}