How to Install X-cart on Ubuntu 19.04
- 02:49 unzip master.zip.2
- 03:04 mv xcart5-master /var/www/xcart
- 03:15 chown -R www-data.www-data /var/www/xcart
- 03:32 chmod -R 755 /var/www/xcart
- 03:46 vim /etc/apache2/sites-available/xcart.conf
- 05:06 a2dissite 000-default.conf
- 05:19 a2ensite xcart.conf
- 05:33 a2enmod rewrite
- 05:43 systemctl restart apache2
Installation of X-Cart on Ubuntu 19.04
Requirements for X-cart:
Apache
MySQL
PHP and its modules
(php php-xml php-mysql php-mbstring php-zip php-soap php-curl php-gd php-ldap php-imap php-common php-dev libmcrypt-dev php-pear)
Installation procedure
Check the Ubuntu version by using the following command.
root@linuxhelp:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 19.04
Release: 19.04
Codename: disco
Configure the MySQL database. Log into MySQL as a root user and make the necessary settings.
root@linuxhelp:~# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.7.26-0ubuntu0.19.04.1 (Ubuntu)
Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create database xcart;
Query OK, 1 row affected (0.82 sec)
mysql> create user 'xuser'@localhost identified by 'Linuxc#45';
Query OK, 0 rows affected (1.25 sec)
mysql> grant all privileges on xcart.* to 'xuser'@localhost;
Query OK, 0 rows affected (0.06 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.95 sec)
mysql> exit
Bye
Once the database configuration is done, download the X- Cart Installation package by using the wget command.
root@linuxhelp:~# wget https://github.com/xcart/xcart5/archive/master.zip
--2019-05-22 02:48:35-- https://github.com/xcart/xcart5/archive/master.zip
Resolving github.com (github.com)... 13.234.176.102
Connecting to github.com (github.com)|13.234.176.102|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/xcart/xcart5/zip/master [following]
--2019-05-22 02:48:35-- https://codeload.github.com/xcart/xcart5/zip/master
Resolving codeload.github.com (codeload.github.com)... 192.30.253.121
Connecting to codeload.github.com (codeload.github.com)|192.30.253.121|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 59855785 (57M) [application/zip]
Saving to: ‘master.zip.2’
master.zip.2 100%[==========================================>] 57.08M 548KB/s in 72s
2019-05-22 02:49:48 (808 KB/s) - ‘master.zip.2’ saved [59855785/59855785]
Once the download is completed extract the downloaded package using unzip command.
root@linuxhelp:~# unzip master.zip.2
Archive: master.zip.2
fb007a4ddb4fd7c50d8e584193db2819673859d3
creating: xcart5-master/
inflating: xcart5-master/.gitignore
inflating: xcart5-master/README
inflating: xcart5-master/README.rdoc
creating: xcart5-master/src/
inflating: xcart5-master/src/.htaccess
inflating: xcart5-master/src/CLOUDSEARCHTERMS.txt
creating: xcart5-master/src/Includes/
.
.
.
inflating: xcart5-master/src/vendor/twig/twig/test/Twig/Tests/Profiler/Dumper/TextTest.php
inflating: xcart5-master/src/vendor/twig/twig/test/Twig/Tests/Profiler/ProfileTest.php
inflating: xcart5-master/src/vendor/twig/twig/test/Twig/Tests/TemplateTest.php
inflating: xcart5-master/src/vendor/twig/twig/test/Twig/Tests/TokenStreamTest.php
inflating: xcart5-master/src/vendor/twig/twig/test/Twig/Tests/escapingTest.php
inflating: xcart5-master/src/vendor/twig/twig/test/bootstrap.php
inflating: xcart5-master/src/xc5
Move the X-Cart directory to apache root directory.
root@linuxhelp:~# mv xcart5-master /var/www/xcart
Set the ownership and permission for X-Cart by using the following command.
root@linuxhelp:~# chown -R www-data.www-data /var/www/xcart
root@linuxhelp:~# chmod -R 755 /var/www/xcart
Configure the virtualhost for accessing the X-cart.
root@linuxhelp:~# vim /etc/apache2/sites-available/xcart.conf
<Virtualhost *:80>
Servername www.linuxhelp1.com
Documentroot /var/www/opencart/upload
<directory /var/www/opencart/upload>
allowoverride all
allow from all
</directory>
</Virtualhost>
Disable the default site access.
root@linuxhelp:~# a2dissite 000-default.conf
Site 000-default disabled.
To activate the new configuration, you need to run:
systemctl reload apache2
Enable the site access for accessing the X-cart.
root@linuxhelp:~# a2ensite xcart.conf
Enabling site xcart.
To activate the new configuration, you need to run:
systemctl reload apache2
Enable the rewrite module.
root@linuxhelp:~# a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
systemctl restart apache2
Restart the apache service by using the following command.
root@linuxhelp:~# systemctl restart apache2
Switch to your browser and enter the domain name.
Accept the license agreement and click next.
Enter the required admin details and click next.
Enter the required database details and click next.
The installation is in progress.
The installation is now complete. To open the admin panel, click the Admin zone option.
Enter the required admin credentials and log in.
The admin dashboard of X-Cart appears on the screen.
with this, the method to install X-cart on Ubuntu 19.04 comes to an end
Comments ( 0 )
No comments available