How to install Prestashop V.1.7.3.4 on linuxmint-18.03
To install Prestashop V.1.7.3.4 on linuxmint-18.03
PrestaShop is a popular and widely used open source and free eCommerce platform based on PHP. It has comprehensive product features for small, medium and large businesses to create and manage their online stores for free.
Pre-requirements
Install LAMP (Apache, php7.1, mariadb-server)
In MariaDB (create database, user and give privileges to the user)
FOR PHP INSTALLATION
add-apt-repository ppa:ondrej/php
apt-get update
apt-get install php7.1-mysql php7.1-curl php7.1-json php7.1-cgi php7.1 libapache2-mod-php7.1 php7.1-mcrypt php7.1-xmlrpc php7.1-gd php7.1-mbstring php7.1 php7.1-common php7.1-xmlrpc php7.1-soap
php7.1-xml php7.1-intl php7.1-cli php7.1-ldap php7.1-zip php7.1-readline php7.1-imap php7.1-tidy php7.1-recode php7.1-sqlite3 php7.1-xdebug php7.1-gettext php7.1-dev php7.1-pear php7.1-memcache
php7.17.1-memcached php7.1-bz2 php7.1-apcu-bc php7.1-igbinary php7.1-ttf-dejavu-core
Download the PrestaShop package using wget command
linuxhelp ~ # wget https://github.com/PrestaShop/PrestaShop/archive/1.7.3.2.zip
--2018-05-05 04:49:28-- https://github.com/PrestaShop/PrestaShop/archive/1.7.3.2.zip
Resolving github.com (github.com)... 192.30.253.113, 192.30.253.112
Connecting to github.com (github.com)|192.30.253.113|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/PrestaShop/PrestaShop/zip/1.7.3.2 [following]
--2018-05-05 04:49:31-- https://codeload.github.com/PrestaShop/PrestaShop/zip/1.7.3.2
Resolving codeload.github.com (codeload.github.com)... 192.30.253.120, 192.30.253.121
Connecting to codeload.github.com (codeload.github.com)|192.30.253.120|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘ 1.7.3.2.zip’
1.7.3.2.zip [ < => ] 25.84M 37.2KB/s in 11m 40s
2018-05-05 05:01:16 (37.8 KB/s) - ‘ 1.7.3.2.zip’ saved [27100374]
Extract the downloaded directory
linuxhelp ~ # unzip 1.7.3.2.zip
Archive: 1.7.3.2.zip
3360cf9640d6d2638e378cf8d8ed6392f51e40f4
creating: PrestaShop-1.7.3.2/
inflating: PrestaShop-1.7.3.2/.editorconfig
inflating: PrestaShop-1.7.3.2/.eslintrc.json
creating: PrestaShop-1.7.3.2/.github/
inflating: PrestaShop-1.7.3.2/.github/PULL_REQUEST_TEMPLATE.md
creating: PrestaShop-1.7.3.2/.github/contrib/
inflating: PrestaShop-1.7.3.2/.github/contrib/install.php
inflating: PrestaShop-1.7.3.2/.github/contrib/pre-commit .
.
.
.
creating: PrestaShop-1.7.3.2/upload/
inflating: PrestaShop-1.7.3.2/upload/.htaccess
creating: PrestaShop-1.7.3.2/vendor/
inflating: PrestaShop-1.7.3.2/vendor/.htaccess
creating: PrestaShop-1.7.3.2/webservice/
inflating: PrestaShop-1.7.3.2/webservice/dispatcher.php
inflating: PrestaShop-1.7.3.2/webservice/index.php
Rename the extracted directory
linuxhelp ~ # ls
1.7.3.2.zip PrestaShop-1.7.3.2
linuxhelp ~ # mv PrestaShop-1.7.3.2/ prestashop
Move the PrestaShop directory into the /var/www/html directory
linuxhelp html # mv prestashop/ /var/www/html/ Go to /var/www/html directory linuxhelp ~ # cd /var/www/html/ linuxhelp html # ls index.html prestashop
Change ownership and permission for the prestashop directory
linuxhelp html # chown -R www-data:www-data prestashop/ & & chmod -R 775 prestashop/ we have to configure virtual host for prestashop. Create empty file named presta.conf: linuxhelp html # cd /etc/apache2/sites-available/ linuxhelp sites-available # vim presta.conf [&hellip ] < virtualhost *:80> servername www.linuxhelp1.com Documentroot /var/www/html/prestashop/ < Directory /var/www/html/prestashop/> AllowOverride order allow,deny allow from all < /Directory> < /virtualhost> [&hellip ]
Enable the Prestashop.conf file
linuxhelp sites-available # a2ensite prestashop.conf
Enabling site prestashop.
To activate the new configuration, you need to run:
service apache2 reload
Enable the rewrite module
linuxhelp sites-available # a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run
service apache2 restart
Install composer using the following commands
linuxhelp prestashop # composer install Loading composer repositories with package information Installing dependencies (including require-dev) from lock file - Installing composer/installers (v1.0.21) Loading from cache - Installing beberlei/doctrineextensions (v1.0.19) Loading from cache - Installing twig/twig (v1.35.0) Loading from cache. . . . phpunit/phpunit suggests installing phpunit/php-invoker (~1.1) Package phpoffice/phpexcel is abandoned, you should avoid using it. Use phpoffice/phpspreadsheet instead. Generating autoload files > PrestaShopPrestaShopCoreCldrComposerHook::init Init CLDR data download... Finished... > SensioBundleDistributionBundleComposerScriptHandler::buildBootstrap > SensioBundleDistributionBundleComposerScriptHandler::installRequirementsFile > SensioBundleDistributionBundleComposerScriptHandler::prepareDeploymentTarget We have to edit the php.ini: linuxhelp prestashop # vim /etc/php/7.1/apache2/php.ini memory_limit = 256M upload_max_file_size = 64M
Restart apache web server
linuxhelp prestashop # systemctl restart apache2.service
After restarting apache server open the browser, and enter the local ip or domain name

Select the installation language


Accept the License agreement


verify the system compatibility


configure the store information


verify system configuration

verify store information

you will see the following page after the successful installation

Remove install directory and again restart apache server
linuxhelp prestashop # rm &ndash rvf install
linuxhelp prestashop # systemctl restart apache2.service
click on manage your site for admin login

log in using the admin account credentials

After the successful installation, you will see the dashboard of PrestaShop as shown here

with this, the method to install Prestashop V.1.7.3.4 on linuxmint-18.03 comes to an end.
Comments ( 0 )
No comments available