*New 12.1 series Release:
2019-11-08: XigmaNAS 12.1.0.4.7091 - released!

*New 11.3 series Release:
2019-10-19: XigmaNAS 11.3.0.4.7014 - released


We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

[HOW TO] opencart-2 online shop

Webserver service.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
onega23
Starter
Starter
Posts: 16
Joined: 11 Apr 2014 14:48
Status: Offline

[HOW TO] opencart-2 online shop

#1

Post by onega23 » 02 Feb 2016 13:48

Warning. All Information and distrib, for "Nas4free 9.3.0.2 - Nayla (revision 1391)"
Not tested on 10 version, but can work.
tested version of Opencart - 2.0.2.0. (RU language)
dont use this information for working nas4free servers (after tests only)
in process of installation, webgui interface crush, but will be restored to point №13
--------------------------------------------------------------------------------------

installation:

1) configure network interface and ip, mask, gateway, dns
use manual webgui port "81", and ip "192.168.1.10" (example)

2) run SSH service

use settings in webgui:

3.1) add group:
mysql (id 88)
3.2)
add user:
mysql
password - mysql (example)
4) create mount point- "system" (example)
with full access to root (owner) and mysql (group)
5)create directory
mkdir -p /mnt/system/mysql


---------------------------------------------------------------------
!dont use web interface command line, nas4free local console settings:

6)
ln -s /mnt/system/mysql /var/db/mysql
ln -s /mnt/system/mysql /usr/local/data
chmod -R 777 /mnt/system/mysql
chown -R mysql:mysql /mnt/system/mysql

----------- installing packages----------------------


in system , must be installed packages (for opencart, joomla, hotcms, ... )

A) use my archive (i save packages in zip file, and upload all to yandex disk)
B) or you can download it , with command line (example "pkg install php56") but vessions of packages can be different and not tested on 9.3

list of packages: (apcupsd,net-snmp,perl5,php56,php56-extensions,php56-xmlrpc,php56-gettext,php56-mcrypt,php56-mysql,php56-mysqli,php56-pdo_mysql,php56-mbstring,php56-gd,php56-curl,php56-xsl,php56-zlib,php56-zip,php56-ftp,php56-openssl,php56-bz2,xmlstarlet,phpminiadmin,phpmyadmin)

package apcupsd - drivers for APC ups (in default service will be deactivated).
If you need it - see instructions for APC UPS: viewtopic.php?f=46&t=6377


A) my archive or packages must be extracted in 7 floders and upload to nas4free HDD
yandex disk download link: https://yadi.sk/d/hwYH3WXJoAjhF

directories in nas4free HDD example:

/var/cache/pkg/0
/var/cache/pkg/1
/var/cache/pkg/2
/var/cache/pkg/3
/var/cache/pkg/4
/var/cache/pkg/5
/var/cache/pkg/6

install (A) use my archive of packages
use only console of computer (no ssh command line, no webgui command line)

A.1) pkg add /var/cache/pkg/0/*
A.2) pkg add /var/cache/pkg/1/*
A.3) pkg add /var/cache/pkg/2/*
A.4) pkg add /var/cache/pkg/3/*
A.5) pkg add /var/cache/pkg/4/*
A.6) pkg add /var/cache/pkg/5/*

!dont install /var/cache/pkg/6/* , is must be installed later!


(B)Install:
downloading packages from internet (nas4free server must have access to Internet)

-------------- installation original APC drivers (if you need it, and have APC ups) -----------
pkg install apcupsd

---------------------------------------------------------------------------------------------------
pkg install net-snmp
pkg install perl5

---------------installation another packages for CMS systems-----------------------------
pkg install php56
pkg install php56-extensions
pkg install php56-xmlrpc
pkg install php56-gettext
pkg install php56-mcrypt
pkg install php56-mysql
pkg install php56-mysqli
pkg install php56-pdo_mysql
pkg install php56-mbstring
pkg install php56-gd
pkg install php56-curl
pkg install php56-xsl
pkg install php56-zlib
pkg install php56-zip
pkg install php56-ftp
pkg install php56-openssl
pkg install php56-bz2
pkg install xmlstarlet
pkg install phpminiadmin
pkg install phpmyadmin

7. open file /usr/local/etc/php.ini , and add rows

mysqli.max_persistent = -1
mysqli.allow_persistent = On
mysqli.max_links = -1
mysqli.cache_size = 2000
mysqli.default_port = 3306
mysqli.default_socket =
mysqli.default_host =
mysqli.default_user =
mysqli.default_pw =
mysqli.reconnect = Off

8)
reboot

---------- install mysql server---- for (A) or (B) instrucrions
9.A)
pkg add /var/cache/pkg/6/*

9.B)
pkg install mysql56-server
pkg install mysql56-client

10)
rehash

11)
cd /usr/local
mysql_install_db

12)

cd /
cd bin
mysqld_safe &
"enter"

13)
use Web interface: (must be restored naw)
advanced > rc.d
add:
name: mysql_enable
value: YES

------if WEB interfase not wotk, try this:-----------------
mv /usr/local/bin/php /usr/local/bin/php-cli
cp /usr/local/bin/php-cgi /usr/local/bin/php
---------------------------------------------------------------

14)
"Reboot"

15) (pass is examples, use you pass)

----------use local console of nas4free computer---------

cd /usr/local/bin
mysqladmin -u root -h localhost password 'zD123456'
mysqladmin -u root -h nas4free.local password 'zD123456'

------------- REBOOT SYSTEM ----------------------

16)
mysql -u root -p
16.1)
CREATE DATABASE wwwDB2 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
16.2)
DROP DATABASE test;
16.3)
SHOW DATABASES;


17) wwwuser2 (mysql user):

CREATE USER wwwuser2@localhost IDENTIFIED BY 'Az1234567'; (pass is examlpe, use you)
grant usage on *.* to wwwuser2@localhost identified by 'Az1234567';
grant all privileges on wwwdb2.* to wwwuser2@localhost;
\q

16) ---test wwwuser2:----

mysql -u wwwuser2 -p wwwdb2
/q

(sure, for no errors after this command)

if mysql service work , you can see it, in WebGui of Nas4free:

Image

----------- another info --------

phpminiadmin access:
http://192.168.1.10:81/phpminiadmin/phpminiadmin.php

phpmyadmin access:
http://192.168.1.10:81/phpMyAdmin/


use router\firewall\server , to set DNS records for access you website from local network
or use ip address to access site


------------- INSTALLATION opencart CMS ----------

1. start webserver in Webgui
2. put you site in website folder
3. create directory "shop" in webserver root.
4. download CMS opencart 2.x.x.x version for you language
5. extract opencart archive, and put files from "upload" directory, to "shop" directory in webserver root
5. run http://yousitename/shop (must be start auto installation and DB creation for opencart)
for install , you must input account for mysql base (root or user, №-15 , №-17), and name of DB - "wwwDB2" (№-16.1), and set new admin pass for opencart system. After you can access to "admin" console of shop. http://yousitename/shop/admin
or visit website http://yousitename/shop
Last edited by onega23 on 04 Feb 2016 14:54, edited 12 times in total.

onega23
Starter
Starter
Posts: 16
Joined: 11 Apr 2014 14:48
Status: Offline

Re: Install CMS opencart-2 (online shop) on nas4free 9.3

#2

Post by onega23 » 02 Feb 2016 13:50

del

Post Reply

Return to “WebServer”