How to move PrestaShop from local to online.

The overall step for move your prestashop from local to online   Copy  prestashop database from local to online server. Important changes. Go to ps_configuration table and change PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL from ‘localhost’ to your domain name, e.g. mydomain.com Go to ps_shop_url and change again ‘domain’, ‘domain_ssl’ fields to your domain name and ‘physical_uri’. If … Continue reading How to move PrestaShop from local to online.

Php using Sendmail, Sendmail through Gmail overcoming spamm problem.

Right to the point install sendmail and configure all the necessary files. apt install sendmail nano /etc/php/7.0/fpm/php.ini nano /etc/php/7.0/cli/php.ini Find this line and uncomment and add the path to sendmail. sendmail_path = /usr/lib/sendmail -t -i service nginx restart service php7.0-fpm restart Confgure sendmail to work through gmail acount. mkdir -m 700 /etc/mail/authinfo/ cd /etc/mail/authinfo/ nano gmail-auth … Continue reading Php using Sendmail, Sendmail through Gmail overcoming spamm problem.

How to install Phpmyadmin + Nginx Ubuntu.

  apt install phpmyadmin ln -s /usr/share/phpmyadmin /var/www/html phpenmod mcrypt nano /etc/nginx/sites-available/phpmyadmin server { listen 80; root /var/www/html/phpmyadmin; index index.php index.html index.htm; server_name phpmyadmin.local; location / { try_files $uri $uri/ =404; } error_page 404 /404.html; error_page 500 502 503 504 /50x.html; location = /50x.html { root /var/www/html/phpmyadmin; } location ~ \.php$ { try_files $uri =404; … Continue reading How to install Phpmyadmin + Nginx Ubuntu.

How to Install Prestashop in a LEMP stack

Problem: How to install Prestashop in a LEMP stack. Pre-requirements: Up and Running Nginx + Php-fpm, MySQL or MariaDB Solution: At first glances, it may appearances like any other PHP project such WordPress or PhpMyAdmin. The general step could be the following. Download the PHP project in a specific pubic folder of your app web server. (Apache, Nginx etc)  Configure the … Continue reading How to Install Prestashop in a LEMP stack

Publishing on pypi

Problem: How to publish my utility script as a reusable package. Create your accounts On PyPI Live and also on PyPI Test. You must create an account in order to be able to upload your code Create a .pypirc configuration file touch  ~/.pypirc [distutils] index-servers = pypi testpypi [pypi] repository:https://upload.pypi.org/legacy/ username:username password:password [testpypi] repository:https://test.pypi.org/legacy/ username:username password:password chmod 600 ~/.pypirc Prepare … Continue reading Publishing on pypi