Home Blog Page 5

How to Install google chrome web browser on CentOS

0
install google chrome on centos

Welcome back to another tutorial of CentOS. in our previous post we learn how to install XAMPP in CentOS.
today in this CentOS tutorial we will learn how to install google chrome web browser on CentOS.
so before start this tutorial lets take an short overview regarding google chrome.

install google chrome on centos

Why Google Chrome

As we all know Google Chrome is developed by Google. Google Chrome is one of the most powerful, safest, fastest and most popular web browser in the world.
Google Chrome is not the opensource browser itself, but it is based on the Chromium browser which is also available for CentOS. It is a secure and easy to use browser.

Install Google Chrome

Before start to install the google chrome on our Linux machine. we must have the non-root user account on our desktop with sudo privileges.
so just follow the below steps for easy installation.

Step 1: Download the .rpm package of Google Chrome

so just copy the below command and run it on your terminal to download the .rpm package.

wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm

Step 2: Installation Process

so after download the .rpm package , will need to have sudo privileges. To install Google Chrome use the below command.

sudo yum localinstall google-chrome-stable_current_x86_64.rpm

after running this command on your terminal it will ask for your password. so just enter the password of your system and continue.

Step 3: Start Chrome

after successfully installation of chrome , there are two way to start google chrome. first one is the universal way, go to the applications, select internet and click on the google chrome.
the another way is go to the terminal and run the below command.

google-chrome

Upgrade Google Chrome

so if you want to upgrade your google chrome version just copy the below command and simply run it on your terminal section.

sudo yum update google-chrome-stable

So finally we learn how to install google chrome in our CentOS machine. if this tutorial helps you than please support us and sharing this tutorial with your developer buddies.

How to Install xampp in Linux CentOS7

0
xampp installtion in centos

Welcome back to another tutorial of CentOS.In our previous post we learn how to install Apache Web Server on CentOS 7.
today in this post we learn How to Install xampp in Linux CentOS7.
before start this CentOS tutorial we should take an overview of XAMPP.

xampp installtion in centos

What is XAMPP.?

so basically XAMPP is a local web server which is majorly used by developers to run their program on local machine.
it was developed by Apache friends and it is available on 11 different languages.

Full form of XAMPP

XAMPP is a local web server which are widely used by developer community to test their programs on local machine.
so the full form of XAMPP is
X- Cross platform
A- Apache
M- MySQL
P- PHP
P- Perl

Before start to install XAMPP on our linux machine. we must have the non-root user account on our desktop with sudo privileges.

Install XAMPP

so before installing XAMPP we need to download the latest package of XAMPP.
To download XAMPP run the below command in the terminal using wget command

sudo wget https://downloadsapachefriends.global.ssl.fastly.net/7.3.0/xampp-linux-x64-7.3.0-0-installer.run?from_af=true

Now we will give the permission to the downloaded file to make it executable by following command.

sudo chmod +x xampp-linux-x64-7.3.0-0-installer.run

After setting up the permission run the file using the below command

sudo ./xampp-linux-x64-7.3.0-0-installer.run

after hitting the above commands we will giving some permission to XAMPP . just follow the below images for better understanding.

xampp set up on centos

Click on the next button.
Now it will ask us to select components to install, it is recommended to leave it as default and just hit on the Next button.

xampp components

In the next step it will be informed of the location where the XAMPP setup is going to be installed so simply just click on the next button again.

xampp location in linux

Now  it will ask us to install sponsored applications such as Drupal, Joomla, and WordPress so just click on the next button.

install wordpress in xampp

now the installation process is starts.

xampp installation process

after end of installing process just click on the finish button to launch.

launch xampp

Start and verify Xampp

After the installation we are just run a simple command to verify the xampp installtion so just copy the below command and run it on your terminal.

$ sudo /opt/lampp/lampp start

Now go to the browser and search http://localhost to see the output of XAMPP.

Uninstall XAMPP

So if you want to uninstall this setup just copy the below commands and run it on your terminal.

cd /opt/lampp

Now unstall XAMPP by following command.

./uninstall

Now you will be prompted to confirm uninstalling XAMPP. simple Click on yes to uninstall XAMPP .
After completing the Uninstallation process run following command to remove /opt/lampp directory

sudo rm -r /opt/lampp

Conclusion

so finally we learn how to perform installation the XAMPP on our CentOS platform.
if you have any query please ask and if this article helps you than please share it with your developer buddies.

How to Generate Firebase Server Key

0
FCM push notification for android

Welcome back to shortlearenr.com, in our previous post we learn how to implement Razorpay Payment gateway with the help of PHP.
today in this post we will see how to Generate Firebase Server Key.
so before start this tutorial we will take an short overview about firebase and its uses.

FCM push notification for android

What is Firebase

so basically Firebase is a tool which is developed by google, to building app infrastructure and improving app quality for growing your business.

so Firebase server key is used to send push notifications to android devices and this server API key is used to identify Firebase application.
we are generating Firebase server key in the below steps, keep follow the steps

Create a Firebase project and Get your Server Key

Step1 : In the very first step we have to log in into Firebase Developer Console. if you still not created any project simply click on Create project.

firebase server key

Step2 : Enter your project name, accept the Firebase terms and conditions and hit the CREATE PROJECT button.

firebase development

Also Read
How to Install PHP on CentOS.
Unable to create a directory a wordpress error
How to Send Attachment on mail using PHP.
PHP Login Script With Remember me.
Change password using javascript, php and mysqli.
Password and Confirm Password Validation Using JavaScript

How to integrate Razorpay Payment Gateway using PHP.
Check Email is Already Registered in Database using Ajax and JavaScript.
How to hide extension of html and php file.?

Step3 : In the third step we select Not right now option because we will setup our google analytics later and hit create project button.

firebase cloud messaging for android and php

Step4 : After hitting the create project button we will get a message Your new project is ready, press the Continue button to redirect your project dashboard page.

firebase cloud integration using php

Step5 : On the dashboard page click on the Gear icon which is in the top left and select Project settings.

FCM integration in php

Step6 : In the last step we just click on the Cloud Messaging Section and we will have the Server Key.

get FCM server key

thanks for reading, if this article helps you please support us and share with your developer buddies.

How do I Install and enable PHP modules

0
Enable IMAP extension

Welcome back to shortlearner.com, in our previous post we learn how to install Apache Web Server on CentOS.
today in this post we will see How do I Install and enable PHP modules.

so before start this tutorial we should take an small overview about PHP IMAP Module and its advantages.

Enable IMAP extension

What is IMAP.?

so basically IMAP is a mailbox with having a powerful and open source library to connect mailbox with POP3, IMAP and NNTP using the PHP IMAP extension.

in PHP by default the IMAP extension is disabled. so we are writing a PHP script for finding that PHP IMAP is installed or not.
so we are creating a file with the name of info.php . to find the information about PHP.

so after running this info.php file ,we got some out like below image.

PHP IMAP Extension

Enable IMAP in Xampp

just follow the below steps to enable IMAP extension in xampp.
1.go to the file \xampp\php\php.ini and open php.ini in your editor.
2. find ;extension=php_imap.dll
3. Remove semicolon from ;extension=php_imap.dll.
4. Now, now it should looks like extension=php_imap.dll
5. Save your file and restart the xampp server.

Enable IMAP in Linux

so if you are a linux user and want to enable IMAP in your server. so just follow the below steps for enabling it.
1. open your terminal and run the below commands.

sudo apt-get install php5-imap

2. for enabling IMAP use the follow command.

sudo php5enmod imap

3.after enable IMAP we should restart our webserver by following command.

service apache2 restart

Install IMAP on Ubuntu

sudo apt install php7.1-imap

after installing IMAP on PHP7.1 restart apache by below command.

sudo systemctl restart apache2

hope you also install and enable the PHP module by following all the above steps. if you still having any problem ,feel free to contact us.

How to install Node JS in CentOS-7

0
install node js on centos

Welcome back to shortlearner.com, in our previous post we learn how to install Apache Web server on CentOS.
today in this post we will see How to install Node JS in CentOS-7.
so before start this tutorial we take an overview about Node JS and CentOS.

What is CentOS

CentOS is a Community Enterprise Operating System. It is an open-source platform for non-productive developmental work.
For production concern, those works can be migrated to RHEL (Red Hat Enterprise Linux) Linux distribution platform.

install node js on centos

What is Node JS

The Node.js platform is a server-side runtime environment based on JavaScript.
Node.js is a super-fast, high-performance and lightweight framework, ideal for asynchronous programming. With Node.js you are able to execute multiple actions at the same time.
so basically Node JS is a platform where developers can use JavaScript for backend development.

Also Read
How to Install phpMyAdmin on CentOS 7 – Google Cloud

Before Installation

Before the installation process of Node JS make sure you have already installed these below stuff.

Apache Web Server  – We need to install Apache! Check out our article Install Apache on CentOS 7.
PHP  – Then we need to install PHP! Check out our article Install PHP on CentOS.
MySQL  – Then we need to install MySQL! Check out our article Install MySQL on CentOS 7.
follow the below steps for installation od node.js

Step 1: VM Setup

so in the very first step logged in to your google cloud account and select the Compute Engine option from the menu.
follow the below image for better understanding.
Now we can see VM instances in Compute Engine. Click on that as shown in below image

google cloud VM instance

so we just click on the open in browser window and than we will see terminal there. follow the below commands on the terminal.

Step2: Add Yum Repository

so before adding this repository we should know about what is Yum Repository.

YUM (Yellowdog Updater Modified) is an open-source command-line that creates, maintains, updates, removes and manages a high-quality set of packages on CentOS.

yum install -y gcc-c++ make

Step 3: Build native add-ons:

after installation of YUM repository ,we have to install native add-ons from NPM We will install a compiler.

The latest version of Node.js

curl -sL https://rpm.nodesource.com/setup_12.x | sudo -E bash –

The stable version of Node.js

curl -sL https://rpm.nodesource.com/setup_10.x | sudo -E bash –

Step4:Install Node.js

Now are having the packages of Node.js and NPM. We can install the Node.js package using the following command.
By executing below command, Node.js and NPM packages both will get install.

sudo yum install nodejs

After installation of Node.js

Step1:Testing Node.js

To check the installation of Node.js, we need to execute the below command. This will display you the version we installed.

node -v

Step2:Testing NPM

To check the installation of NPM, we need to execute the below command. This will display you the version of NPM we installed.

npm -v

So finally we learn the installation process of Node JS on CentOS 7.