How To Install Cezerin eCommerce platform on Ubuntu 18.04 LTS With Apache2
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Cezerin is a open source eCommerce progressive web app built using React and Node.js.
Offcial Website: https://cezerin.com/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Our Server Specification-
Os:Ubuntu 18.04 LTS Bionic Beaver 64Bit | IP address- 192.168.1.50 | Hostname :www.yourdomain.com
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
lsb_release -cd ; getconf LONG_BIT ; whoami ; hostname -f ; hostname -I ; apt install -y build-essential software-properties-common curl gdebi wget aptitude nano git net-tools lsb-release apt-transport-https apache2
a2enmod proxy proxy_http rewrite
curl -sL https://deb.nodesource.com/setup_12.x | bash -
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4 && echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-4.0.list
apt-get update ; apt-get install mongodb-org nodejs -y
systemctl start mongod apache2 ; systemctl enable mongod apache2
cd /opt ; git clone https://github.com/cezerin/cezerin.git
cd /opt/cezerin ; npm update node-sass --no-optional
npm install --unsafe-perm --allow-root --no-optional
npm run build
npm run setup
npm start
nano /etc/systemd/system/cezerin.service
[Unit]
Description=Cezerin Server
[Service]
ExecStart=/usr/bin/npm start
# Required on some systems
WorkingDirectory=/opt/cezerin
Restart=always
# Restart service after 10 seconds if node service crashes
RestartSec=10
# Output to syslog
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=nodejs-example
[Install]
WantedBy=multi-user.target
systemctl daemon-reload ; systemctl start cezerin ; systemctl enable cezerin
gedit /etc/apache2/sites-available/yourdomain.conf &>/dev/null
<VirtualHost *:80>
#Domain Name
ServerName yourdomain.com
ServerAlias www.yourdomain.com
#HTTP proxy/gateway server
ProxyRequests off
ProxyPass / http://127.0.0.1:3000/
ProxyPassReverse / http://127.0.0.1:3000/
</VirtualHost>
a2ensite yourdomain ; a2dissite 000-default.conf ; apache2ctl configtest ; echo "192.168.1.50 www.yourdomain.com" >> /etc/hosts ; systemctl reload apache2
http://www.yourdomain.com
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
No comments:
Post a Comment