Debian

Nzira yekuisa Zen Cart paDebian 9

 

Zen Cart iyi isingasunungurwi inoshandiswa e-commerce kugadziriswa kwehutano nekugadzira motokari mapuratifomu. Iyo software yakanyorwa mumutauro wekuprogram ye PHP uye inowanzoiswa paLuxux pasi peAppache / Nginx web servers, PHP uye MySQL / MariaDB dhepfenyuro yekuchengetedza database, inozivikanwa seLAMP kana LEMP stack. Zen Cart e-commerce sarudzo inoshandiswa nyore nyore kugadzira mabhizimisi eIndaneti kumabhizimisi akasiyana-siyana uye kuzivisa uye kutengesa mazano nekutengesa.

Muchirongwa ichi, ndichakuratidza kuti ungagadzirisa sei nekugadzirisa shanduro yeZen Cart yakapfuura paDebian 9, kuitira kuti ugadzire denga rekutsvaga rekuzvitenga.

zvinodiwa

  • Minimal Kuiswa kweDebian 9 server pamushandisi usina-metal kana pane server chaiyo yega
  • A static IP kero yakagadzirirwa imwe yeyese system network interfaces makadhi
  • sudo midzi midzi yekodha yemunharaunda kana kure kana kuwanikwa zvakananga kumudzi wekodha
  • Zita renzvimbo, yega kana yevoruzhinji, zvichienderana nekutumira kwako, neyakakodzera DNS marekodhi akagadzirirwa web services. Kana usina chiremera kana zita rakanyoreswa zita rechiremera unokwanisa kuita kuiswa uye upiwe webhusaiti kuburikidza neshare yako IP server
  • Kana iwe uchida kushandisa shanduro yepawebsite, ratidza maonero ekuenzanisa uye zvimwe zviitiko, iwe unofanirwa kunge uine mail yakashambadzirwa yakachengetedzwa zvakanaka panzvimbo yako nekukurumidza kusvika kune iyo IMAP uye SMTP.

Pre-Requirments

Usati watanga kuisa uye kugadzirisa Zen Cart kubva kune mamwe mavharo ari mukati mako, chekutanga uchengetedze sangano rinosangana nezvose zvinodiwa zvekugadzirisa kwekugadzira uye kuisa iyo shanduro. Pachigamba chekutanga, shandisa yako system repositories uye software pakutepa nekupa murairo unotevera.

Apt update

apt upgrade

Zvadaro, sarudza zita remutambo wako nekuita murairo unotevera (shandura zita rako remusangano rinoshandiswa maererano).

hostnamectl-set-hostname zencart

Tsirirai makambani ekuchengetedza mazita uye maShona mafaira nekubudisa mirairo inotevera.

hostnamectl

paka / etc / hostname

hostname -s

hostname -f

Pano nhanho inotevera, ita murairo unotevera kuitira kuti uise zvimwe zvekushandisa zvinoshandiswa zvinoshandiswa kuenderera mberi nekugadzirisa hurongwa hwako kubva mumutsetse wemirairo.

apt install wget bash-completion zip unzip curl

Pakupedzisira, reboot Debian server kuitira kushandisa kernel updates uye zita reimba rinoshanduka zvakanaka.

systemctl reboot

Isa Apache uye PHP

Zen Cart ndeyewebhu-based CMS e-commerce platform yakanyorwa zvikuru mu PHP server-side programming language. Kuti uite purogiramu yeFP yezvinyorwa zvekushanda, web server, yakadai saAppache HTTP server, uye PHP processing gateway inofanira kuiswa nekushanda muhurongwa. Kuti uise Apache web server uye muturikiri we PHP pamwe chete nezvose zvinodiwa PHP modules zvinodiwa nekushanda kushanda zvakanaka, bvisa murairo unotevera mune server yako console.

apt install apache2 libapache2-mod-php7.0 php7.0 php7.0-curl php7.0-gd php7.0-mbstring php7.0-xml

Mushure mokunge Apache uye PHP vakagadzirwa, edzai kana webhusaiti yakasimuka uye ichimhanya nekuteerera kwehutano hwehutano pahutachi 80 nekubudisa murairo unotevera nematauriro emidzi.

netstat -tlpn

Mukana kana netstat network utility haisi kuiswa nekusakwana muDebian system yako, ita murairo unotevera kuti uiise.

zvakakodzera kuisa net-tools

Nokutsvaga mutemo we-netstat unogona kuona kuti Apache web server yakateerera kune inosvika inonzi network connections pane port 80. Nebasa rimwe chete iwe unogona kushandisawo ss command, iyo inowanzoiswa yakaiswa muDebian 9.

ss- tulpn

Gadzira Firewall

Kana iwe une firewall yakabvumirwa mumutambo wako, zvakadai seUFW firewall application, unofanira kuwedzera mutemo mutsva kuti uite hutachi HTTP hupfuura napamusoro pekudzivirira moto nokupa murairo unotevera.

ufw inobvumira WWW

or

ufw inobvumira 80 / tcp

Kana uri kushandisa iptables mitemo yakajeka kuti uchengetedze mitemo yeWerwall muDebian yako server, wedzera murairo unotevera kuti usvitse hutachiona 80 mumugwagwa wakawandisa pane moto wekutsvaga kuitira kuti vashanyi vatarise shopu rekutsvaga.

zvakakodzera-kuwana kuisa -y iptables-inopfuurira

iptables -I INPUT -p tcp -kutsvaga-chikwata 80 -j KUBATSIRA

systemctl iptables-persistent save

systemctl iptables-kuramba ichidzokorora zvakare

Configurae Apache uye SSL / TLS

Zvadaro, shandisa uye shandisa maAppache anotevera aidiwa ne-e-commerce yekushanda kushanda zvakanaka, nekubudisa murairo unotevera.

A2enmod rewrite expires env alias deflate mime

systemctl zvinyorwa apache2

Pakupedzisira, bvunzo kana Apache webhusaiti yewebhu default peji rewebhu rinogona kuratidzwa mumakasitoma ako mutengi nekushanyira yako Debian muchina IP kero kana yako domain domain kana server FQDN kuburikidza neHTTP protocol, sezviri kuratidzwa mumufananidzo unotevera. Kana iwe usingazivi yako IP muchina kero, gadza ifconfig kana 'ip a' mirairo kuratidza IP kero ye server yako.

http://yourdomain.tld

Apache peji peji

Kuti uise uye usvike Zen Cart web admin panel yakatsigirwa uye webhusafamberi yewebhu yepamusoro kuburikidza neHTTPS protocol iyo ichachengetedza gwara kune vatengi vako, bvisa murairo unotevera kuti uwane Apache web server SSL module uye SSL sekushandura file.

a2enmod ssl

a2ensite default-ssl.conf

Zvadaro, svinura Apache yakashaya SSL site yekugadzirisa faira nemashoko editor uye ita kuti URL inyore zvakare mitemo nekuwedzera mitsara inotevera yeCodeRoot directive, sezvinoratidzwa muenzaniso inotevera:

nano /etc/apache2/sites-enabled/default-ssl.conf

SSL nzvimbo yekugadzirisa file excerpt:

Sarudzo + FollowSymlinks RegaOverride Zvese zvinoda zvese zvakapihwa

Uyewo, ita shanduko inotevera kuVirtualHost line kuti ione seyakaratidzwa muchikamu chinotevera:

SSL Vhost

Vhura SSL Apache file uye uzarure /etc/apache2/sites-enabled/000-default.conf file yekugadzirisa uye kuwedzera yemirairo yekudzorera zvakare yemirairo seS SSL yekufaira faira. Isa mitsetse yekodha mushure meDVDRoot statement sezvinoratidzwa mumuenzaniso unotevera.

 Sarudzo + FollowSymlinks RegaOverride Zvese zvinoda zvese zvakapihwa

Zvinyorwa zveAreksita mu vhost

Pakupedzisira, tangazve Apache daemon kuti ushandise mitemo yose yakagadzirirwa kusvika ikozvino uye shanyira domain yako kuburikidza neHTTP protocol. Nemhaka yokuti uri kushandisa zvisiri izvo zviiti zvekutendesa zvipi zviviri zvakabudiswa naAapache pakusungirirwa, iko kukanganisa kunyeverwa kunofanira kuiswa mucheki.

systemctl zvinyorwa apache2

https://yourdomain.tld

SSL peji

Gamuchira nyevero pamusoro pechibvumirano chisingabviri kuitira kuti urambe uchienderera mberi kuApache kushandura peji peji.

Apache Default page

Kana iyo iyo UFW firewall inoshanda ichivhara inoshandisa network connections kune hutachiona hweHTTPS, unofanira kuwedzera mutemo mutsva kubvumira hutachiona hweHTTPS kuti hupfuure mumoto wekudzivirira moto nokubudisa murairo unotevera.

ufw kubvumira 'WWW Full'

or

ufw inobvumira 443 / tcp

Kana iptables ndiyo inoshandiswa pamoto wekudzivirira moto inosungirirwa kuti inodzivirira Debian yako pane network network, wedzera murairo unotevera kubvumira chikwata 443 chiri mukati mechivako chemoto kuitira kuti vashanyi vatarise ruzivo rwezita renyu.

iptables -I INPUT -p tcp -kutsvaga-chikwata 443 -j KUBATSIRA

systemctl iptables-persistent save

systemctl iptables-kuramba ichidzokorora zvakare

Mune inhanho inotevera, tinoda kuti tiite dzimwe shanduko kuFP yekumisikidza faira yekugadzirira kuitira kuti tivimbise kuti inotevera PHP kusiyanisa inogoneseswa uye iyo PHP nguva yekugadzika yakagadzirirwa nenzira kwayo uye inoenderana neyako nzvimbo nzvimbo. Vhura iyo /etc/php/7.0/apache2/php.ini faira rekugadzirisa uye simbisa kuti mitsara inotevera yakaiswa seinotevera. Zvakare, pakutanga, ita bhajeti reiyo PHP yekugadziriswa faira.

cp /etc/php/7.0/apache2/php.ini {,.backup}

nano /etc/php/7.0/apache2/php.ini

Tsvaga, shandura uye shandura zvinotevera zvinotevera php.ini configuration file:

file_uploads = On memory_limit = 128 M upload_max_file_size = 64M post_max_size = 64M date.timezone = Europe / London

Wedzera post_max_size uye upload_max_file_size zvakasiyana-siyana zvakakodzera kutsigira mazai makuru ezvinyorwa uye shandura nguva.kusiyana kunofanana maererano nenguva yako yepanyama nekutsvaga pakatarisa nguva dzinowanikwa neFP docs pachikwata chinotevera http://php.net/manual/en /timezones.php

Kana iwe uchida kuwedzera mutoro wepamusoro wemapeji ako webhusaiti kuburikidza neOpCache plugin inowanika kuPHP7, shandisai zvirongwa zvinotevera zveOpCache pasi peFP Interpreter configuration file, sezvinotsanangurwa pasi apa:

opcache.enable = 1 opcache.enable_cli = 1 opcache.interned_strings_buffer = 8 opcache.max_accelerated_files = 10000 opcache.memory_conslication = 128 opcache.save_comments = 1 opcache.reval =

Dzvitsa fp.ini configuration file uye chengorora kuguma kweFP configuration file kuti uone kana zvigadziriswa zvakanyatsowedzerwa nekubudisa mutemo uri pasi apa.

muswe /etc/php/7.0/apache2/php.ini

Mushure mekunge maita shanduko dzose yakatsanangurwa pamusoro apa, tangazve daemon yeapache kushandisa shanduko itsva nekupa murairo unotevera.

systemctl zvinyorwa apache2

Pakupedzisira, tanga faira info yeFP kuburikidza nekuita murairo unotevera uye chengetedza kana nzvimbo yeFPP yakagadzirirwa zvakanaka nekushanyira PHP info script file kubva kune browser pane URL inotevera, sezvinoratidzwa mumufananidzo uri pasi apa. Dhura pasi kusvika pane zuva rakagadzirirwa kuti uone php time zone configuration.

echo ' '| tee /var/www/html/info.php

https://yourdomain.tld/info.php

Zen Cart e-commerce web application inochengeta maitiro akasiyana-siyana, akadai sevashandisi, masangano, mazita, mishonga, mabhuku uye mabhuku, mune dhesi ye RDBMS. Muchirongwa ichi, tichagadzira Zen Cart shanduro yekushandisa MariaDB database sewe backend. Inosanganisira murairo unotevera kuti uise database yeMariaDB uye purogiramu yeFP inodiwa kuti uwane dhesi ye mysql.

apt install mariadb-server mariadb-client php7.0-mysql

Mushure mekunge maisa MariaDB, chengetedza kana dheemon iri kutamba uye inoteerera zvekubatanidza pane localhost, chikwata 3306, nekushanda netstat command.

netstat -tlpn | grep mysql

Zvadaro, pinda paMySQL uye uchengetedze MariaDB root account nokupa mirairo inotevera.

mysql -h localhost

shandisa mysql; gadzirisa mushandisi set plugin = '' ipo mushandisi = 'mudzi'; runyararo ropafadzo; kubuda

Pano nhanho inotevera, MariaDB akachengetedzwa nekuita script mysql_secure_installation inopiwa ne-installation packages kubva kune Debian stretch repositories. Kunyange zvazvo uchitamba script ichakumbira mutsva wemibvunzo yakagadzirirwa kuchengetedza database yaMariaDB, yakadai se: kuchinja MySQL root password, kubvisa vashandisi vasingazivikanwe, kubvisa mairi midzi logins uye kubvisa dhiyabhorosi yekuongorora. Dzokorora script kuburikidza nekubudisa murairo unotevera nekukusimbisa kuti uchengete hongu kumibvunzo yose yakabvunzwa kuitira kuti uchengetedze Dhiyabhorosi MySQL zvakakwana. Shandisai script inotevera shanduro yakadzama seyo mutungamiri.

sudo mysql_secure_installation

ONA: KUNYENGETSA ZVINHU ZVESE ZVESRRIPT ZVINONYENGESWA KWAVO VANHU Vese VanoMUDHADA MUUSHURE KUSHANDISA! RUDZIDZA ZVESE CHETE ChenjeraI! Kuti ugone kupinda muMariaDB kuti uichengetedze, tinoda password iripo yemushandisi wemidzi. Kana iwe uchangobva kuisa MariaDB, uye iwe usati wamisa iyo password password ikozvino, password ichave isina, saka iwe unofanirwa kungo pinda pinda apa. Isa password yemazuva ano yemidzi (isa yeimwe): Zvakanaka, password yakashanda inoshandiswa, uchienderera mberi ... Kuisa iyo password password inozivisa kuti hapana munhu anogona kupinda muMariaDB midzi mushandisi pasina mvumo chaiyo. Iwe unotova ne password password yakaiswa, saka iwe unogona kupindura zvakachengeteka 'n'. Chinja rezasi rezasi? [Y / n] y Nyowani nyowani: Nyorazve nyowani nyowani nyowani: password yakagadziridzwa zvinobudirira! Kusimudza matafura eropafadzo .. ... Kubudirira! Nechekuita, kuiswa kweMariaDB kune munhu asingazivikanwe, achibvumira chero munhu kuti apinde muMariaDB pasina kuve neaccount yemushandisi yakagadzirirwa ivo. Izvi zvinongoitirwa kungoedzwa, uye kuita kuti kuisirwa kuenda zvishoma zvishoma. Iwe unofanirwa kuvabvisa usati waenda kunharaunda yekugadzira. Bvisa vashandisi vasingazivikanwe? [Y / n] y ... Kubudirira! Kazhinji, mudzi unofanirwa kubvumidzwa kuti ubatane kubva 'localhost'. Izvi zvinoverengera kuti mumwe munhu haakwanise kufungidzira pane iyo password password kubva kunetiweki. Usatendera kudzika midzi kure? [Y / n] y ... Kubudirira! By default, MariaDB inouya ne database inonzi 'test' inogona kuwanikwa chero munhu. Izvi zvakare zvinongoitirwa kungoedzwa, uye zvinofanirwa kubviswa usati waenda kunharaunda yekugadzira. Bvisa bvunzo dhata uye uwane iyo? [Y / n] y - Kudonhedza bvunzo dhatabhesi ... ... Kubudirira! - Kubvisa ropafadzo pane bvunzo dhatabhesi ... ... Kubudirira! Kutamisa zvekare matafura esarudzo inova nechokwadi chekuti shanduko dzese dzakaitwa kusvika pari zvino dzinozoitika nekukurumidza. Rirazve matafura eropafadzo izvozvi? [Y / n] y ... Kubudirira! Kuchenesa ... Zvese zvaitwa! Kana iwe wapedza matanho ese ari pamusoro, yako MariaDB kuisirwa ikozvino inofanira kunge yakachengeteka. Ndinokutendai nekushandisa MariaDB!

Kuti uedze MariaDB kuchengeteka, edza kuvhara ku database kubva pane console pasina root password. Kuwana kune database kunofanira kurambwa kana pasina purogiramu inowanikwa nokuda kwebhuku rayo, sezvinoratidzwa mundima inotevera inotevera:

[email protected]: ~ # mysql -h localhost -u midzi

Enter password: ERROR 1045 (28000): Kuwanikwa kwakarambidzwa kune mushandisi 'mudzi' @ 'localhost' (uchishandisa password: HAPANA)

Kana iyo password iripo, nzira yekupinda iyo inofanira kupiwa kuMySQL console, sezvinoratidzwa murayiridzo yekurayira:

[email protected]: ~ #mysql -h localhost -u root -p

Pinda password: Kugamuchirwa kuMariaDB kuongorora. Mirairo inopera ne; kana g. Yako MariaDB id id yekubatanidza ndeye 15 Server vhezheni: 10.1.26-MariaDB-0 + deb9u1 Debian 9.1 Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab nevamwe. Nyora 'rubatsiro;' kana 'h' kuti ubatsirwe. Tora 'c' kujekesa chirevo chezvino chekuisa. MariaDB [(hapana)]> mbudo
Chisarai

Zvadaro, pinda paMariaDB database console, ita dhesi yeZen Cart application uye mushumiri ane password iyo inoshandiswa kugadzirisa dheta rekushandisa, nekubudisa mirairo inotevera. Shandisa zita re database, user and password zvakakodzera.

mysql -u root -p

gadzira database zencart; bvumidza KUSVIRA, INSERT, UPDATE, DELETE, CREATE, ALTER, INDEX, DROP pa zencart. * '' zencart_user '@' localhost 'yakawanikwa ne' password1 '; runyararo ropafadzo; kubuda

Kuti uite zvose zvinoshandiswa zvakagadzirwa kusvikira zvino, tangazve maMesSQL uye maDememoni madhemoni uye uone kana madhemoni ari kushanda nekubudisa mirairo inotevera.

systemctl zvinyorwa zvangu mysql apache2

systemctl chimiro mysql apache2

Isa Zen Cart

Mushure mokunge zvose zvinodiwa zvinoshandiswa zvekutengeserana kwako kwe-e-commerce panzvimbo yekutengesa shopu, shanyira SourceForge Zen Cart rekuchengetedza peji peji https://sourceforge.net/projects/zencart/files/ uye download yakapip zip pakadzikidzwa yakachengetwa archive nekubatsira kwe wget kushandiswa, sezvinoratidzwa mune svera inotevera.

wget https://downloads.sourceforge.net/project/zencart/CURRENT%20-%20Zen%20Cart%201.5.x%20Series/zen-cart-v1.5.5f-12312017b.zip

Mushure me zip zip archive download kupedza, bvisa Zen Cart zip compressed archive zvakananga uye nyora mavhidhiyo akabudiswa nokubudisa mirairo inotevera. Uyewo, bvisa iyo yakakwana index.html file yakaiswa naApache web server kusvika webroot nzira uye zvakare shandisa info.php file yakagadzirwa kare.

rm /var/www/html/index.html

rm /var/www/html/info.php

unzip zen-cart-v1.5.5f-12312017b.zip

ls

Iyo yekuisa mafaira yeZen Cart iri mune yako ikozvino yekushandura bhuku mune yakabudiswa zen-cart directory. Nyaya ls inorayira kuona zen-cart directory mafaira. Kopa zvose zviri mu zen-cart-v1 directory kune web server yako dhidhi mizira nzira nekubudisa murairo unotevera.

ls -al zen-cart-v [tab]

cp -rf zen-cart-v1.5.5e-03082017 / * / var / www / html /

Shandura bhuku ku web server document document uye upe mutemo unotevera kuti ugadzire mafaira ekugadzirisa anodiwa neZen Cart application yekunyora magadziro ezvitoro.

cd / var / www / html /

cp inosanganisira / dist-configure.php inosanganisira / configure.php

cp admin / inosanganisira / dist-configure.php admin / inosanganisira / configure.php

Zvadaro, ita zvinotevera mirairo kuitira kupa Apache runhare yekushandisa yakakwana nekunyora zvibvumirano ku web root path. Shandisa ls command kuti uronge mvumo yemafaira ekushandisa akaiswa mune / var / www / html / directory.

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

ls -al / var / www / html /

ZenCart unpacked

Iye zvino, ramba uchienda Zen Cart online shop installation yekugadzirisa nekuzarura shanduro nekufamba pakombiyuta ye IP ye server yako kana zita rekero kana server FQDN kuburikidza neHTTPS protocol. Pakugadzirisa kwekutanga screen Zen Cart installer ichakupa pfupiso yenyaya yezvauri kuona peji. Nemhaka yokuti sarudzo haina kuiswa zvakare, shandisa paKhino apa musungo kuitira kuti utange matanho ekugadza, sezvinoratidzwa mumufananidzo unotevera.

https://yourdomain.tld

ZenCart web installer

Muchikamu chinotevera chekuisa chinyorwa, mufaki wacho achaita mutsara wekugadzirisa kushandiswa kwepasitirwo pamusoro pemasipirwo eHPS uye kuiswa kwePPP kuwedzera kuitira kuti aone kana yose inoda kuisa Zen Cart e-commerce kushanda inosangana. Inotarisawo kana Apache HTTP inoshandisa nguva yekushandisa inogona kunyora kune zvakatevedzana zvinyorwa kubva pa webroot nzira, sezvinoratidzwa mumifananidzo iri pasi apa. Mushure mekubvunzurudza maitiro ose ekuongorora chekuongorora, hit on Continue button kuti uende mberi nekugadzirisa hurongwa.

Shanduro yekuongororaPachirongwa chinotevera, sarudza Zen Cart online store. Chokutanga, chengetedza chikwangwani cheBhokisi reRisense uye chengetedza kero ye Admin Admin Domain URL kuti udzokere zvakare kune zita rako rekutenga kuburikidza neHTTPS application protocol. Zvadaro, chengetedza Shandisa SSL yeChishanu muCatalog (Storefront) Zvirongwa uye chengetedza mazita e URL domain. Mumaawa ekupedzisira akaiswa, chengetedza kana nzvimbo yekuchengetedza rekuchengetedzana yako yakafanana newebhuku redhiyiti rekutsvaira nzira yegwayo uye yeka paRinon button kuti uenderere mberi nekugadzira.

System setup

Muchidimbu chekuisa chinyorwa, wedzera MySQL database yedhesi, zita uye zvigadziro zvakagadzirwa pamberi kweStart Zen Cart. Siya Demo Demo Dhavhidha isinganzwisisi uye sarudza deta yako yemufananidzo yakagadzirirwa ku UTF8 uye chirevo chekutanga kune zen_. Sarudza SQL Cache Method kuti Ufone uye uise pane Ramba uchinge uende kune imwe yero yekuisa.

Database setup

Zvadaro, wedzera neAd Admin Superuser account yeZen Cart online store yako uye email yekero ye admin account. Iva nechokwadi chekunyora pasi password password uye zita remutungamiri we admin uye hit paRended button kuti utange hurongwa hwekuisa.

Admin setup

Mushure mekugadzirisa kwapera, mugadziri achaisa mabhii maviri ekuwana Zen Cart Yakasungirirwa Panamato Panhizha, iyo inoshandiswa kutarisira shopu yako yepaIndaneti, uye Storefront store link, iyo inoratidzwa kune vatengi vako.

Setup yapera

Kuti uone kushambadzira kwako kwepaIndaneti, tanga uchinge waenda kuIndaneti yako yeBhengi uye mberi kwee-e-commerce yako yekushandira icharatidzwa mu browser yako sezvinoratidzwa mu screenshot iri pasi apa. Iwe unogonawo kushanya pakatarisana nechitoro nekufamba kuenda kune yako sevaini IP kero kana zita rechizinda kuburikidza neHTTPS protocol.

https://www.yourdomain.tld

ZenCart yakaiswa

Usati wagopinda muchengeti yako yechipinda chekuchengetedza, chekutanga, dzokera kushandisi ye server uye ubudise murairo unotevera kuti ubvise Zen Cart kuiswa kwekunyorera.

rm-rf / var / www / html / zc_install /

Kuti uchengetedze Zen Cart yako online store, famba paIndaneti Backend link iyo ichakuendesera iwe kumasitolo backend. Shandisa zvinyorwa zve admin zvinogadziriswa panguva yekugadziriswa kuitira kuti upinde kuZen Cart backend panel, sezvinoratidzwa mu screenshot iri pasi apa.
Iwe unogonawo kushanyira Zen Cart admin web panel nekufambisa kune server yako IP kero kana zita rekuda kuburikidza neHTTPS protocol kune admin directory URL kero random string yakagadzirirwa panguva yekugadzira.
https://yourdomain.tld/random_string/login.php

ZenCart loginMushure mekupindira kuZen Cart yakatsigira admin panel, gadzirisa wekutanga kuisa wizard nemashoko ako ezvitoro uye git pane Bhizimisi rekutsvaga kuti unyore kuchinja, sezvaratidzwa mumufananidzo unotevera.

ZenCart Pakutanga gadziriso wizard

Kuti uwane Zen Cart application, dzokera kuseri console uye ubudise mirairo inotevera kuti uchinje mvumo yekubatanidza / configure.php faira uye ye configure.php file kubva kunzvimbo yehutori kuti igove neyo root root.

chown root: root /var/www/html/includes/configure.php

chown root: root /var/www/html/brOil-QUl-cHain/includes/configure.php

Pakupedzisira, kuitira kuti vashanyi vatsvega Zen Cart frontend webusaiti uye kuti vakwanise kuwana inonzi backend interface kuburikidza neHTTPS protocol inobatanidza motokari pakati pevhareji nevatengi vevashandi, dzokera kuguma re server yako uye ugadzire itsva .htaccess file nekubudisa zvinotevera command.

nano /var/www/html/.htaccess

Shandura zvirongwa zvePPP kuti uenzane neshuva yako pfuma uye uwedzere HTTPS kurongedza mitemo sekuratidzwa mune iri pasi .htaccess file excerpt:

# Gadzirisa zvirongwa zvePPP
php_flag regina_gigsals off
php_value post_max_size 999M
# Dzorera zvakare kuHTTPS

RewriteEngine On
RewriteCond% {HTTPS} yakavharwa
RewriteRule (. *) Https: //% {SERVER_NAME} / $ 1 [R, L]

Ndizvo zvose! Iwe wakabudirira kuisa uye wakagadzira Zen Cart e-commerce application muDebian 9.2. Zvisinei, nokuti Apache HTTP server inoshandisa chibvumirano chekuzvidzivirira chisingazivikanwi kuti chivanze chitima pakati pevashumiri nevashanyi vevashandisi, shoko renyevero richagara richigadzirwa uye richiratidzwa mumashandisi avo. Iyi nyevero yakashata yebhizimisi rako rebhizimisi rekutsvaga. Muchiitiko ichi iwe unofanirwa kutenga chigwaro chakabudiswa neTrust Certificate Authority kana kuwana chepachena chechipiri kubva kuTe Encrypt CA.

Kune mamwe maitiro ekugadzirisa maererano neZen Cart application, shanyira peji rekunyora pane kero inotevera: https://www.zen-cart.com/wiki/index.php/Main_Page

mabviro