how to install opencart on localhost ubuntu

How to install opencart on localhost ubuntu


Install OpenCart On Ubuntu 18.04


In this quick article I will teach you how to install opencart on localhost ubuntu. You just have to follow 10 quick steps to install opencart successfully. If have a affiliate business then you can visit the referal website to download opencart eticaret, eticaret paketleri, opencart paketleri.


OpenCart is a free and opensource PHP-based online business stage that joins significant and stunning features close by a straightforward UI. 


The stage makes it easy to supervise things, solicitations, and customers in a steady way. In addition, it comes loaded down with supportive modules that grow the stage's value. In this guide, we take you through how to present OpenCart on Ubuntu 18.04 Server 


Basics 


As a need, ensure that you have an instance of Ubuntu 18.04 specialist and that you can SSH induction to it. If not, you can for the most part pass on a totally supervised cloud laborer or VPS at just $3.71. 


1) Install Apache2 


Since OpenCart will be controlled through a web program, we will present Apache webserver. Apache is a free and opensource web specialist that goes with colossal heaps of supportive features, for instance, SSL and Virtual hosts maintain which make it ideal for running OpenCart stage. Before we present OpenCart on Ubuntu 18.04, we need to have a webserver set up to serve the website pages toward the front 


Before presenting Apache, first, update the system files 


# sudo capable update 


At that point, present apache web laborer by running the request 


# sudo capable present apache2 


2) Install PHP 


As pointed out previously, OpenCart is written in PHP scripting language. In this way, we need to present PHP and extra PHP modules to help OpenCart. 


To present PHP, execute the request 


# sudo skilled get present php libapache2-mod-php 


You similarly need to acquaint extra PHP modules with assistance OpenCart, run the request under 


# sudo capable get present php-cli php-typical php-mbstring php-gd php-intl php-xml php-mysql php-zip 


php-curve php-xmlrpc 


3) Install MariaDB 


MariaDB is a free and opensource informational collection engine that is versatile, solid and easy to-use. Inside this informational index stage, we will make a data base to store OpenCart's data related to things, customers, bargains, etc 


To present MariaDB run 


# sudo capable present mariadb-specialist mariadb-client 


At that point, we need to secure our informational collection stage to maintain a strategic distance from any interlopers or secretive customers. 


To accomplish this, run the request: 


# mysql_secure_installation 


This will give you a movement of requests that anticipate that you should set a strong mystery express for the root customer, dispose of test data base and obscure customers and prohibit far away login as root. 


For security reasons, Hit Y ( Yes ) for al of the prompts. 


4) Configure Database and customer for OpenCart 


We need to make a data base for OpenCArt to store the sum of OpenCart's records, for instance, bargains, things, customers, etc 


Login to MariaDB 


# mysql - u root - p 


In this guide, we will make a data base called opencartdb. Try not to spare a moment to pick any name for your case 


Make DATABASE opencartdb; 


At that point, make the data base customer and give out all preferences to the customer 


Grant ALL ON opencartdb.* TO 'opencart_user'@'localhost' IDENTIFIED BY 'strong_password'; 


The above request makes a data base customer opencart_user and gives all preferences to the customer. try to supersede the strong_password property with your own strong mystery state. 


Finally, flush favorable circumstances and leave the data base engine 


FLUSH PRIVILEGES; 


EXIT; 


5) Downloading OpenCart 


With the informational index planned, as of now we need to download the OpenCArt packed record. Most importantly, investigate to/tmp vault 


# minimal circle tmp 


Download the compacted archive using the request underneath 


# wget https://github.com/opencart/opencart/releases/download/3.0.2.0/3.0.2.0-OpenCart.zip 


Once downloaded, detach the OpenCart pack report as shown separate the compacted record 


# loosen 3.0.2.0-opencart.zip 


This loosens the compacted record to the exchanges vault 


We need to move this list to the webroot library –/var/www/html 


# mv move//var/www/html/opencart 


6) Configure the OpenCart library 


The ensuing stage is to copy a few arrangement records as shown in the requests under: 


# cp/var/www/html/opencart/config-dist.php/var/www/html/opencart/config.php 


# cp/var/www/html/opencart/executive/config-dist.php/var/www/html/opencart/overseer/config.php 


7) Change record assents of the OpenCart index 


At that point, we need to change report approvals of the OpenCart list to make it writable to the Apache web laborer as showed up 


# chmod - R 755/var/www/html/opencart/ 


At that point, change duty regarding OpenCart library to www:data 


# chown - R www-data:www-data/var/www/html/opencart/ 


8) Step 8: Create Virtualhost for Opencart 


At that point, we will make a virtual host record for OpenCart 


# vim, etc/apache2/regions available/opencart.conf 


Paste the substance as shown underneath 


< virtualHost *:80> 


ServerName example.com 


DocumentRoot/var/www/html/opencart/move/ 


< Directory/var/www/html/opencart/move/> 


AllowOverride All 


grant from all 


</Directory> 


</VirtualHost> 


Make a point to override example.com with the zone name of your laborer. 


Save and leave the arrangement record. 



नौ नगद , न तेरह उधार



To engage this site run the request 


# a2ensite opencart.conf 


By then we need to handicap the default site 


# a2dissite 000-default.conf 


To execute the changes, restart Apache webserver 


# systemctl restart Apache2 


9) Enable the revise module 


Since OpenCart requires mod_rewrite to adjust URLs, we will enable the module and restart the Apache webserver. 


# a2enmod adjust 


Restart Apache webserver 


systemctl restart apache2 


10) Step 10: Setting up OpenCart on a program 


Having completed all plans, head out to your program and examine your laborer's IP address of room name 


http://domain_name or IP_address 


The essential page shows the grant game plan. Peer down and click 'Continue'. 


The going with page shows a once-over of pre-foundation necessities that ought to be met for productive foundation of OpenCart. The last area shows the status of those requirements and shows if they are met or not. 


The accompanying page will anticipate that you should fill in the data base nuances. Enter the nuances you portrayed in the MySQL informational index and snap 'Continue'. 


This completes the plan and Now you can tap the 'Login to your Administration' to login to the manager dashboard. 


With that, We have shown up toward the end. In this instructional exercise, you sorted out some way to present OpenCart on Ubuntu 18.04 LTS specialist.

Post a Comment

أحدث أقدم