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

How to Automation Functional Testing using Selenium Webdriver + Python Part1.

Problem: I want to automate functional testing on this site. A googel type search web with a button see more as pagination. Requirements: The exact environment used in this case is below, But this method is suitable for any platform: IDE: PyCharm CommunityEdition OS:  Linux UbuntuMate 16.04   Browser: 59.0 (Build oficial) (64 bits) Solution: sudo pip … Continue reading How to Automation Functional Testing using Selenium Webdriver + Python Part1.