Opencart install for steemstone

in #utopian-io7 years ago (edited)

tarot-2114403_1920.jpg

Goals

If you install it as described in the opencart site, it may not work. So I'll show you how to install it manually.

  • We are going to work with steemconnect after installing opencart. The functions to be interlocked are as follows.

1 ) Register Account

2 ) Deposit Gold with payout incurred by voting in steem.

3 ) By cards with gold

What Will I Learn?

  • You will learn installing opencart.

Requirements

  • Server (OS - Ubuntu 14 or 16)
  • DB : MySQL
  • Apache

We built the server and RDS with AWS's free tier.

Difficulty

  • Basic

You can build opencart in 10 minutes by following the tutorial below.

Tutorial Contents

1. Install Apache

Assuming Ubuntu is installed by default, install Apache first. Since opencart runs on Apache, you must install Apache first.

  • type in console.
sudo apt-get install apache2

2. Apache Virtual Host

1 ) Create Apache Opencart Config file

It creates the configuration files needed to run the Apache web server. Set the default directory to / var / www / html and set the port to 80.

  • type in console.
sudo vi /etc/apache2/sites-available/opencart.conf
  • type in opencart.conf
<VirtualHost *:80>
    DocumentRoot /var/www/html
    <Directory /var/www/html/>
         Options Indexes FollowSymLinks MultiViews
         AllowOverride All
    </Directory>
</VirtualHost>

2 ) Register Config file

Register the configured config file so that the web server is started with the corresponding file.

  • type in console
sudo a2ensite opencart.conf

3 ) Release original config file

Disable the default config file so that the previously configured config file will run normally.

  • type in console
sudo a2dissite 000-default.conf

3. Install php

Since opencart works with php-based MVC, you need to install php. Ubuntu 14 version will install php 5, Ubuntu 16 version will install php 7. It will update and upgrade apt-get before installing with apt-get. Also add php repository to set php to install normally.

1 ) apt-get update

  • type in console
sudo apt-get update
sudo apt-get upgrade

2 ) Install php module

  • type in console
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update

- ubuntu 14
sudo apt-get install php5-cli libcurl3 php5-curl php5-gd php5 libapache2-mod-php5 php5-mcrypt libapache2-mod-auth-mysql libapache2-mod-auth-mysql php5-mysql

- ubuntu 16
sudo apt-get install php7.1 php7.1-common
sudo apt-get install php7.1-mysql php7.1-curl php7.1-xml php7.1-zip php7.1-gd php7.1-mbstring php7.1-mcrypt

3 ) Other setting

  • type in console
sudo a2enmod rewrite

4. Opencart source setting

1 ) Opencart source download

Download the latest opencart source via the git hub. Since you will be moving the source to the / var / www / html subdirectory you originally set after downloading, you can get it on any path.

  • type in console
git clone https://github.com/opencart/opencart.git

2 ) Move opencart source

Move the upload directory of downloaded source to / var / www / html.

  • type in console
sudo mv -t /var/www/html ./opencart/upload/*

5. Create Opencart Config file

When you install opencart, create a config file to store configuration information. These files can be changed to config.php only by config-dist.php file name.

  • type in console
cd /var/www/html
sudo mv config-dist.php config.php
sudo mv admin/config-dist.php admin/config.php

6. Modify authority

Change the permissions of the moved opencart files so that they can be accessed by anyone.

  • type in console
sudo chown -R www-data:www-data /var/www/html/

7. Homepage setting

First, because the homepage is supposed to run index.html, remove index.html and let index.php run. At this time, because the permission of index.php does not work, it also changes the permissions.

  • type in console
mv index.html index.html_
sudo chown 777 index.php

8. Opencart Setting

When you connect through the browser with the ip of the installed server, the screen as shown below is displayed. If you enter the db information and admin information to install opencart, the installation of opencart is completed.

  • type in browser
http://[user_server_ip]

1 ) If the following screen appears, it is set to normal.
Click continue.
image.png

2 ) If the Status column is checked in green, everything is set correctly.
Click continue.
image.png

3 ) Input DB and Admin information.

* DB Information
DB Driver : MySQLi
Hostname : DB address
Username : DB user id
Password : DB password
Database : database name for installing opencart
Port : DB port (default 3306)

* Admin Information
Input Admin id and password

Click continue.

image.png

9. Complete Install opencart

image.png

Demo link : http://13.209.29.2

Developer : @happyberrysboy, @realmankwon in korea.



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Unfortunately, your contribution has been rejected due to the fact that the topic is already well documented online.


Need help? Write a ticket on https://support.utopian.io.
Chat with us on Discord.

[utopian-moderator]

Congratulations @gameland! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 1 year!

Click here to view your Board

Support SteemitBoard's project! Vote for its witness and get one more award!

Congratulations @gameland! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!