Why Python is popular in 2020.

 Python is much popular language in 2020 and will be in upcoming time.Python is very much hot language in current time.If you are beginner and you are planning to start coding than python is the one of the language you must use for your practice. Why Python is soo popular in 2020! If you talked about others programming language available in the market like PHP,Java etc.They are difficult language for any beginner who is planning to start the coding in Computer Science.Syntax available in others language is very difficult to learn.Whereas in Python, code starts and end within few lines.That's why python is most preferred language by everyone. Every big companies,like Google,Amazon,Netflix etc they are using python to developed their machine learning algorithms.They don't waste their time in others language available in the market. There are soo many use case for Python in Computer Science : 1. In Data Science, we can use python to get different kinds of Company Insights . 2....

Install Wordpress on Digital Ocean | AWS | Google Cloud Platform | VPS

 Wordpress is one of the most used CMS (Content Management System) in the world.One of the most faced issues while using wordpress is Speed.If you setup your Wordpress over Shared Hosting, you have to face lots of difficulties over the Speed issue.I will help you in "How to install wordpress on VPS (Virtual Private Server)".

In this blog, I will share you some important commands,with the help of that commands you can install wordpress over the any Cloud Platforms like Digital Ocean, AWS, Google Cloud Platform etc.

Install Apache, MySQL, PHP (LAMP) Stack on Ubuntu 18.04

1. Install Apache


sudo apt update && sudo apt install apache2


2. Configure Firewall


sudo ufw allow OpenSSH



sudo ufw allow in "Apache Full"



sudo ufw enable



sudo ufw status


3. Test Apache


sudo service apache2 status


4. Install MySQL


sudo apt update && sudo apt install mysql-server



sudo service mysql status


5. MySQL Security


sudo mysql_secure_installation



-> ENTER | Y | Y | Y | Y



sudo mysqladmin -p -u root version


6. Install PHP


sudo apt update && sudo apt install php libapache2-mod-php php-mysql



php -version


7. Installing phpMyAdmin


sudo apt update && sudo apt install phpmyadmin



sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf



sudo a2enconf phpmyadmin.conf



sudo service apache2 reload


8. Create MySQL User


sudo mysql



CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';



GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost';



FLUSH PRIVILEGES;



exit


9. Secure PhpMyAdmin


sudo nano /etc/apache2/conf-available/phpmyadmin.conf



Alias /your_url /usr/share/phpmyadmin



sudo service apache2 reload


10. Install ZIP/Unzip


apt-get update



apt-get install zip unzip


11. Enable .htaacess


sudo apt-get update



sudo a2enmod rewrite



sudo nano /etc/apache2/sites-enabled/000-default.conf



<Directory "/var/www/html">

  AllowOverride All

</Directory>


12. Configure Apache File


sudo nano /etc/apache2/apache2.conf



<Directory /var/www/>

    Options Indexes FollowSymLinks

    AllowOverride All

    Require all granted

 </Directory>



 <Directory /var/www/html>

    Options -Indexes

 </Directory>



 ServerSignature Off

   ServerTokens Prod


13. Install CURL


sudo apt-get install curl



sudo service apache2 restart



sudo apt-get install php7.0-curl



sudo service apache2 restart


14. install SSL Certificate


sudo apt-get update



 sudo add-apt-repository ppa:certbot/certbot



sudo apt-get update



sudo apt-get install python-certbot-apache



 sudo apachectl stop



letsencrypt --authenticator standalone --installer apache -d example.com



sudo service apache2 start



service apache2 restart


15. Setup SSH Key


sudo apt-get update



mkdir .ssh



cd ~/.ssh



touch authorized_keys



sudo nano authorized_keys



sudo nano /etc/ssh/sshd_config



prohibit-password



sudo systemctl restart sshd.service



service apache2 restart





Note: If you find any issue regarding the installation of WordPress drop email aakash.k.shrivastava@gmail.com



Comments

Popular posts from this blog

Why Python is popular in 2020.

How to Install ERPNext on Ubuntu

SEMrush
SEMrush