Sunday 4 July 2021

How to Install SugarCRM On SentOS 7 In Simple Steps

 In this tutorial, we will learn how to install SugarCRM CE on CentOS 7 server.

Requirements

  •  A server running CentOS 7.
  • A static IP address set up on your server.

Getting Started

First, you will need to update your OS with the latest release and update its installed packages and repositories using the below command:

yum update -y

Once your system is up-to-date, you can proceed to the next step.

Install LAMP

In order to run SugarCRM, you will need to install the LAMP server and other required PHP modules on your system.

You can install all of them by running the following command:

yum install php httpd mariadb mariadb-server php-mysqlnd php-opcache php-mbstring php-gd -y

Once all the packages are installed including their dependencies, start the Apache and MariaDB services then enable it to start on boot with the following command:

systemctl start httpd

systemctl start mariadb

systemctl enable httpd

systemctl enable mariadb

Configure MariaDB Database.

By default MariaDB installation is not secured, so you will need to secure it first.

To do so, run the following script:

mysql_secure_installation

Answer all the questions as shown there:

Enter current password for root (enter for none): Enter

Set root password? [Y/n]: n

Remove anonymous users? [Y/n]: Y

Disallow root login remotely? [Y/n]: Y

Remove test database and access to it? [Y/n]: Y

Reload privilege tables now? [Y/n]: Y

Next, log in to MySQL shell with the following command:

mysql -u root -p

Enter the root password when asked, then create a database and user for SugarCRM:

MariaDB [(none)]>CREATE DATABASE sugarcrm;

MariaDB [(none)]>GRANT ALL PRIVILEGES ON sugarcrm.* TO ‘crm’@’localhost’ IDENTIFIED BY ‘password’ WITH GRANT OPTION;

MariaDB [(none)]>flush privileges;

MariaDB [(none)]>exit;


Next, you will need to edit “/etc/php.ini” to tune the PHP settings:

nano /etc/php.ini

Change the following line:

upload_max_filesize = 25M

Save and close the file, then restart the apache service to implement the saved changes.

systemctl restart httpd

Install SugarCRM

First, you will need to download the latest community edition of SugarCRM from their official website. Once the download is complete, extract the downloaded archive with the following command:

unzip SugarCE-6.5.24.zip

Next, move the extracted archive in Apache web root directory:

mv SugarCE-6.5.24 /var/www/html/SugarCRM

Give necessary permission to SugarCRM directory:

chown -R apache:apache /var/www/html/sugarcrm

Next, you will need to allow HTTP on port `80` through the firewall. You can do this by running the following command:

firewall-cmd –zone=public –add-service=http –permanent

firewall-cmd –reload

Access SugarCRM Web Installation Wizard

Once everything is set up properly, it’s time to access the SugarCRM web installation wizard.

Open your favorite web browser and type the URL http://your-server-ip/SugarCRM, you should see the SugarCRM Community Setup Wizard

Next, click on the `Next button.

Read and Accept the License agreement then Click on the “Next” button,

Now, choose the First option and click on the  “Next” button,

Now, specify the database type and click on the “Next” button,

Provide the database name, hostname, Database admin username, and password, then click on the “Next” button,

Next, provide SugarCRM admin username and password as you wish, then click on the `Next button, Here, confirm all the settings and click on the “Next” button,

Now, click on the “Next” button to finish setup,

Now, enter your admin user credentials to log in to your SugarCRM community edition and start using your best customer relations management portal.

Summary

Congratulations! you have successfully installed SugarCRM on CentOS 7 server. You can now easily host SugarCRM in the production environment and customize it as per your requirements. Feel free to comment me if you have any questions.

Thursday 1 July 2021

WHAT IS IP ADDRESS ?


An 
Internet Protocol address (IP address) is a numerical label assigned to each device connected to a computer network that uses the internet protocol for communication. An IP address serves two main functions: host or network interface identification and location addressing.

An IP address is a string of numbers separated by periods. IP addresses are expressed as a set of four numbers — an example address might be 192.158.1.38. Each number in the set can range from 0 to 255. So, the full IP addressing range goes from 0.0.0.0 to 255.255.255.255.

How do IP addresses work

The use of IP addresses typically happens behind the scenes. The process works like this:

  1. your device indirectly connects to the internet by connecting at first to a network connected to the internet, which then grants your device access to the internet.
  2. when you are at home, that network will probably be your internet service provider (ISP). At work, it will be your company network. 
  3. Your IP address is assigned to your device by your ISP.
  4. Your internet activity goes through the ISP, and they route it back to you, using your IP address. Since they are giving you access to the internet, it is their role to assign an IP address to your device.
  5. However, your IP address can change. For example, turning your modem or router on or off can change it. Or you can contact your ISP, and they can change it for you.
  6. When you are out and about - for example, travelling - and you take your device with you, your home IP address does not come with you. This is because you will be using another network (Wi-Fi at a hotel, airport, or coffee shop, etc.) to access the internet and will be using a different (and temporary) IP address, assigned to you by the ISP of the hotel, airport or coffee shop.