admin, Author at CloudMinister

The web hosting services are useful in getting some space for your website or online platform on the internet. Many individuals are interested in availing of the hosting services by owning a complete VPS server. If you are going to compare the VPS server with shared hosting plans, you can find lots of differences based on multiple factors such as performance. 

When it comes to finalizing the decision, you have to focus on selecting an operating system as well. Mainly there are two types of operating system available – Linux VPS server hosting and Windows VPS server hosting. Both types of operating systems are useful in their ways. Everyone does not have complete knowledge regarding such a thing and starts getting confused. 

With the help of information given in the upcoming paragraphs, you can easily differentiate both and figure out the suitable one. 

Linux-vps-server-vs-windows-vps-server

Key Difference 

Here, we will compare both Linux VPS server and Windows VPS server hosting based on multiple factors. 

1.  Performance 

When it comes to serving online, then performance plays an important role. Everyone is looking for a platform that can help them by working quickly and fulfilling their requirements in no time. It is also dependent on the selection of the server or hosting type. 

In case you are choosing the option of the Windows VPS server, then you have to reboot the server with every patch. Along with it, during the heavy traffic conditions or the availability of several tasks, the server may face downtime. Mainly these types of hosting plans are based on GUI (Graphical User Interface). 

If you proceed with the Linux VPS server hosting, you don’t have to focus on rebooting the server while facing heavy traffic. The server can easily change the configurations and other settings as per the requirements without restarting anything. 

2.  Control Panel 

With the help of a control panel, the website owners are capable of making things better, such as – customizing the settings, adding features to the website, and much more. Both types of hosting plans are having a different kind of control panels. The Windows VPS server hosting plans are associated with the usage of Plesk. Plesk has several features by which you can easily control the website. While using Plesk, you are capable of running the Windows version of MySQL, Apache, PHP stack, and Linux. For security, it has options of Docker, Git, and some other extensions as well. 

However, the Linux VPS server hosting plans are available with the cPanel as the control panel. The cPanel is available with several features by which you can make lots of things easier and install multiple applications on the web servers such as – WordPress and Drupal. Using this particular control panel makes it easier for everyone to create a website without using any coding knowledge. All you have to do is install a website building application with a single click only. 

linux vs windows vps server

3.  Server Accessibility  

All users love to get complete control over the server by which they can easily achieve all objectives. VPS hosting plans are also known for providing better control. If you focus on the Linux VPS server hosting plans, you will get complete server access on both SSH (Secure Shell) and FTP (File Transfer Protocol). In case you are working with the Windows hosting plans, then you don’t get full access. Generally, these plans allow only FTP access. Here, you do not have control over SSH. 

Read More:  Boost WordPress Website Performance in 20 Minutes

4.  Usage 

If we talk about the usage of a control panel or hosting servers, it depends on the users’ skills and knowledge. People who don’t have technical knowledge may find the Windows VPS easier to manage. It works on the basis of a Graphical User Interface. On the other hand, the users of Linux VPS server hosting need to use technical knowledge. Here, we can say, the option of Linux VPS hosting is not good for beginners. 

5.  Security 

Cybercrimes are increasing with day to day activities. Here, everyone tries to make sure they have the best sources where they can get quality cybersecurity. Due to it, all individuals want to choose the best server hosting plan by which they can easily prevent cybersecurity breaches. In the case of security, you can find the Linux VPS server superior while dealing with malware and spyware. On the other hand, a Windows VPS server hosting is also good. Here, users can hide sensitive files easily. 

These are some key facts by which you can easily understand the difference between both Linux VPS server and Windows VPS server. For more details, you can get help from professionals.

How To Speed Up Your WordPress Website In 20 Minutes?

Starting a website for a better online reach is becoming a trend. Some people are trying to connect with the audience by having a business website representing the services. On the other hand, some are starting their own blogging network to share information and data with the audience. For all these things, the interested ones need to choose a perfect source to create a website. WordPress is one of the biggest sources for building an impressive website. 

WordPress – An Overview 

WordPress is one of the most popular content management systems (CMSs). It has a fully-featured dashboard with a big plugin and theme library. In the library, you can get a big collection of some creative, impressive, and eye-catching themes for all types of websites. You can pick the suitable one as per the requirements. 

Boost wordpress website performance

You can get both types of themes paid and free. The use of paid themes can be helpful in experiencing some advanced features for building the best website. In case you don’t have a big budget, then you can go with the free ones. A free theme has different types of features with some limitations but it is perfect to create a good website. 

Real-Time Stats:

All over the world, around 37.6% of websites are managed via WordPress. 

WordPress is available with around 196 languages with translation features. 

Around 71% of overall WordPress websites’ content is written in English. 

WordPress users are creating around 27 new posts every second. 

WordPress has over 54000 plugins for free. 

These are some real-time WordPress stats that can help you in understanding its dominance in the internet world when it comes to website designing and managing.

Tips To Boost WordPress Website

WordPress Website Hosting Plan 

The selection of a good web hosting plan is essential for everyone. The performance of the website highly depends on the hosting plan you choose. In case you are looking for a cheap hosting plan with lower bandwidth and server space, then you may face several issues. You have to be careful while choosing a suitable hosting plan. Before that, you should have knowledge about different types of plans such as – 

Shared WordPress Hosting 

VPS WordPress Hosting 

Managed WordPress Hosting 

Mainly the selection of hosting type is based on the type of website and its usage or objective. In case you are interested in running a simple blogging website, then you can proceed with a shared hosting plan. If you are planning for an eCommerce website, then a fully managed VPS hosting plan is preferred. 

Cache Settings 

You have to keep your website’s cache settings enabled. Sometimes, people don’t have the proper technical knowledge, and as result, they disable the cache plugin to lighten the dashboard. In reality, it is helpful in reducing the website’s loading time by which you can leave a good impression on the visitors. 

Cache setting

Mainly the caching system works by saving a basic format and appearance on the website in HTML codes on the internet server. These codes are going to be saved in the users’ devices when they visit the first time. After that, whenever a visitor accesses your website it takes minimal time for loading. It saves lots of time for the audience and increases the website’s loading speed. 

Delete Unnecessary Plugins

When it comes to the speed of a WordPress website, then it is affected by several factors such as – plugins. While creating a fully functional and featured website, you have to use different types of plugins. It is all about testing. After finalizing everything, you can realize all the installed and activated plugins are not in use properly. 

Delete unnecessary plugin

However, these activated and unnecessary plugins are increasing the size of the website only. Due to it, the website becomes heavier and servers start taking more time to load your website and present it in front of the users. 

Compress Media Files 

It is important to add high-quality media files on the website for providing a better user experience such as – images, animations, or videos. It also affects the website speed and some other related elements. Here, you have to compress the size of these types of media files. While compressing the size, you have to keep some basic things in mind. 

compress media files

It should not affect the quality. Some people reduce the file size maximum possible. It starts affecting the appearance quality and creates a blurry effect. Blurry appearance creates a barrier while interacting with website visitors. You have to be smart while working on this particular factor. 

Read More- Technical SEO: 11 Best Practices

Use CDN

CDN stands for a content delivery network. If you are interested in presenting your website in different parts of the world, then you should be focused on the use of a content delivery network. Mainly these networks are working by creating a copy of your website and send it to the internet servers of different regions. Whenever an individual tries to access your website, then this copy is already available there. 

Due to it, sever does not take lots of stress for loading all elements of the website. Consequently, the website appears on the screen and interacts with the users quickly. It reduces the overall website loading time. 

Decrease Redirections 

There are different types of redirections applied on the website. Some are necessary to keep the website secure like – HTTP to HTTPS. In some cases, the website owners are using redirections for multiple purposes such as – transferring traffic of a particular web page to another one. The availability of lots of redirections on the website can increase the chances of affecting website speed. You should decrease redirections by which the web pages start loading quickly. 

Final Sayings 

These are some major tips for increasing WordPress website speed. In case you are facing issues regarding WordPress website speed, then you should discuss it with the professionals. A professional can analyze your website deeply and figure out all possible errors. Based on such an error report, you can understand what to do for boosting website speed quickly. If you want to get the best hosting solutions, then Cloud Minister is available at your services. 

SEO, Search Engine Optimization, who owns a website, must be very familiar with it, right? SEO basically what helps you increase the crowd on your page or website.

But have you heard anything like Technical SEO? It aid to perk up the ranking of the pages in the search engines like Google by dealing with the technical aspects. Fulfilling the basic requirements of Search Engines (like a faster website, indexing, and improved scrolling) are all covered under technical optimization.

Technical SEO

With every other day passing, these requirements are relentlessly getting more and more refined, so does the part of Technical SEO, which creates a perfect marketing aura to your website or page to excel in search engine results.

Few Technical SEO Best Practices to Implement

1. Guarantees that your websites’ content can be crawled and indexed

Search engines discover the updates and latest content with the help of a team called crawlers and spiders, and the process is referred to as crawling. The search engine then indexes the content if it is valuable. If your website content is not there in the index, no user can find that.

You must not have blocked search engines to crawl or index the content on your page. Search engines got informed about the pages they can crawl via a file named Robots.txt. To check yours, you can search yourwebsite.com/robots.txt. Google Search Console is where all the blocked pages by robot.txt can be found in the coverage report. In case there is any link that is needed to unblock, robots.txt can be edited or removed.

Further, a search engine can’t index a page until the x-robots header and Meta robots are set to “noindex” in the On-page data report of a free SEO Toolbar, Ahref’s. The indexability report can be checked easily by running a crawl and Site Audit in the same tool.

Technical SEO

2. HTTPS Use

The data sent amid a website and visitor is encrypted by HTTPS to secure susceptible information like personal details, card details, etc. from threats. Knowing HTTPS benefits, HTTPS has been there in ranking factors for years now.

Navigate to https:www.yourwebsite.com, and the lock icon on the loading indicates that your website uses HTTPS, but if it says NOT SECURE in red color, you will require installing TSL/SSL certificates. Some WordPress sites provide that free when you purchase a domain name. LetsEncrypt also gives you one free of cost. Otherwise, you can grab fully managed vps hosting for secure HTTPS connection.

NOT SECURE warning in grey color represents that regardless of the page running over HTTPS, its other loading resource files like CSS and images run over HTTP. To know all the predefined SEO issues on other pages, crawl your website on the Ahrefs Webmaster tool.

3. Getting rid of duplicate content issues

As simple as it sounds, the same content appearing on the internet on multiple websites. Though Google has confirmed it multiple times that they don’t charge you any penalty for duplicate content, there are many other issues that duplicate content can cause like;

Wasted crawl budget

Undesired URL’s in search results

Outranking your website due to Scraped or syndicated content

Backlink Dilution

To check open Coverage Report in Google Search Consoles, it will show you duplicate URL’s recognized by Google, but to check for other duplicate URL issues that Google has not identified, go through Duplicate Content Report in Ahregs Webmaster Tools.

4. Generating a Sitemap

All the crucial content of your website is listed on a sitemap in most commonly XML files. In 2019, a Google representative confirmed the sitemaps to be the second most relevant URL sourcing for at least Google, at reason being orphan pages that Google cannot find via crawling. Having internal links to crawlable pages is essential for spiders to see that.

Generate Site Map Technical SEO

In WordPress, a sitemap can be generated using SEO plug-ins like RankMath, whereas Squarespace, Wix, Shopify are some advanced CMS that automatically create a sitemap.
Using canonical tags wherever possible helps fight duplicate issues as in sitemaps, Google recognizes URLs as canonicals.

5.  Hreflang to specify the language of the content

Specific Geographical targeting of a webpage can be done via an HTML attribute like Hreflang that helps other language versions of the same page or website get indexed and not to be counted as duplicate content by Google.

HReflang also helps to improve rankings in other countries by allowing the multilingual versions of the website to share the same signal through a cluster share.

Hreflang can be implemented by just adding the suitable Hreflang tags to the page versions you have.

6. HTTP to HTTPS redirection

If a website is running over the HTTPS version, it might still be available to those who use HTTP. But what’s the point if your website’s non-secure version is still accessible to the visitors?

HTTP to HTTPS redirection

Try running your website with HTTP, and if it is accessible, then HTTP to HTTPs redirection is required. Otherwise, you would have been automatically redirected to the HTTPs version. For redirection, it requires a specific code added to the .htaccess file of your site. However, WordPress is much simpler, where Address and site address can be changed to https easily in General Settings. You can also get managed vps server provider for a secure connection easily.

7.  Schema markup for “rich snippets.”

“Rich Snippet” is referred to that extra information that appears below some websites in search results like URL, ratings, review, description, etc. which sometimes improve click-through rate as well. In general, schema markup helps the search engines identify and display your content in the search outcomes. When you provide Google with accurate information about your page or website via schema markup, it might make you qualified for rich snippets.

Schema in SEO

8. Orphaned Page issues

Earlier above, I mentioned that as orphan pages have no links internally on your website from crawlable pages, the crawlers cannot find or mark them for search results.

Even most of the auditing tools are sometimes also unable to search these pages as they are more likely to work similarly to the search engines. Using CMS as a URL source in the ahrefs Site audit helps you to check these.

Read More:  How to install centos web panel on centos 7?

Conduct a crawl, and when done, look for the orphan pages in the Links Report. Important URLs must be incorporated in your website’s site structure, adding internal links in basic. Unimportant URLs can be ignored, deleted, or even redirected, depends on you.

9. Loading Speed

As confirmed in many reports, today’s’ generation’s attention span has decreased to 8 seconds only; they want everything quick and in one click. They get easily annoyed with slow loading websites, so page loading speed is a crucial factor for ranking since 2010 in PCs and 2018 in smartphones.

page loading speed

To resolve a complicated factor like this, you got to use advanced tools and metrics to boost speed. Google’s Pagespeed Insights can be a perfect, reasonable option for beginners that tell you about the loopholes and what improvements can be made. Further, it scores your page based on performance. However, here I have wrapped up some things that you can ensure for an improved page speed:

Installing a caching plug-in to help deliver the files to the visitors efficiently and in no time; WP Super Cache and WP Rocket are quite options to use in WordPress.

Start using a faster DNS provider like Cloudflare, which lets you create a free account as well. A Content Distribution Network, i.e., CDN, stores all your web page copies on servers globally via Cloudflare. What it will do is it will make the nearest server accessible to the visitor for faster file loading.

Minification of files (HTML, JavaScript, and CSS) via WP Rocket

Images are mostly the most massive files on a web page, making it essential to compress them for loading time reduction. Try using Shortpixel for image compression.

10. Schema for knowledge graph inclusion

Google has its database as a knowledge graph where it evaluates millions and billions of web searches for relevance (relationship of one entity to another). Use Yoast and RankMath like WordPress Plug-ins via Schema markup generator to add an organization markup.

11. Nofollow Internal Links

Nofollow links are meant to endorse other WebPages to get the pass along ranking credit. The Nofollow links flag those external links. If the internal links are nofollowed, then it would do more harm than good by making it an orphaned content that cannot be crawled and so not can be indexed. Ahrefs Webmaster Tools helps you find the related issued via its Links Report which is already mentioned above.

No Follow Internal Links

Final Verdicts

There is a lot much more to add to this article, which we could not conclude as Technical SEO is a vast and sophisticated topic. Thus, above, we have tried to squeeze down the significant mishaps and solutions to improve your website’s performance as much we could do.

 

How to add FTP user in Plesk panel

In this tutorial, I will show you how to create FTP user. FTP (file transfer protocol) which used for access files via remotely here you can upload, delete or modify files.

Let’s start to create FTP user in Plesk panel Websites & Domain –> FTP Access

Next move to add FTP user in Plesk panel
Now here you have to fill details like user name, password and home directory access.
You add successfully FTP user in Plesk panel.

How to set php version and phpmyadmin in Plesk panel

Here today we go to set php version and phpmyadmin in plesk panel. So let’s start today task

Go and click on Website & Domain –> Php settings

Here in php settings you can change you php version as well as lot’s of settings to change in php like memory_limit, upload_max_size, max_execution_time etc.

Next we move towards phpmyadmin just click on database –> phpmyadmin

Now click on Phpmyadmin and here able to access phpmyadmin.

Here we successfully finished today task.

How to create MYsql database user in CWP panel

CentOS web panel is a free web hosting panel it works very easily and smoothly with the help of this panel you can manage several services like web server, ssh service, database management, email management, billingsuser management, file system management as well as DNS management, etc.

Here in this document, we will teach you how to create a database and user in MYSQL manager which are as follows-
cwp panel
You see in CWP panel several options are available there than just click on SQL SERVICES  and see several options are present many databases are already named like postfix, RoundCube here you can add a user by just click on ADD USER.
mysql-menu
After this step, you have to click on create a database by click on create the database. Please keep in your mind already have a user account or ar strong hostname. Here I already set a host domain name or user name for further steps-
create-database
Here my host domain name is Gulfam and i create a database name cloud_web
cwp-database-list
After this just click on add user for that database which you create an earlier name cloud_web 
user-list
Now click on List user you see your database user name and details which you created earlier. You did this successfully.

How to install WordPress with LEMP stack on CentOS 7 VPS (Part2)

5. Install Nginx

Nginx, pronounced as “Engine X” and is a very fast and lightweight web server, that can be used to support static files, used as a reverse proxy and also for load balancing.

Firstlly, update all the software packages by typing the following command:

# yum -y update

After that install EPEL repository that is required for Nginx packages by using command:

# yum -y install epel-release

Now install Nginx by typing the command:

# yum -y install nginx

After the installation is completed you must Enable and Start Nginx server by typing command:

# systemctl start nginx

And enable it with the command:

# systemctl enable nginx
Also check its status with

# systemctl status nginx

6. Configure Firewall

After completed with installation part, configure the firewall settings with the following command:

Open HTTP port by typing command with:

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

If firewalld package is not available then you can install it with command:

# yum -y install firewalld

And start firewalld service with command:

# systemctl start firewalld

Now reload firewall configuration file by typing:

# firewall-cmd –reload

Now verify your installation of Nginx by visiting the following URL on any browser you like with http://ip_address

7. Configure Nginx File

An Nginx server configuration file plays an important role, So you should be more careful when setting up this file.

For configuring Nginx file go inside the following path with the following command:# cd /etc/nginx/conf.d

# vi default.conf

And write the following code in the above file i.e. default.conf.

Also change your domain in place of ip_address

server {

listen 80;

server_name 54.161.140.2;

root /usr/share/nginx/html/wordpress;

index index.php index.html index.htm;

location / {

try_files $uri $uri/ =404;

}

error_page 404 /404.html;

location = /40x.html {

root /usr/share/nginx/html/wordpress;

}

error_page 500 502 503 504 /50x.html;

location = /50x.html {

root /usr/share/nginx/html/wordpress;

}

location ~* \.php$ {

try_files $uri =404;

fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;

fastcgi_index index.php;

include fastcgi_params;

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

}

}

And save it with :wq command, after that edit the configuration file of php-fpm with the following command:

# vi /etc/php-fpm.d/www.conf

Open the file with above command and edit the following lines i.e.

user = nginx

group = nginx

Add new listen under listen = 127.0.0.1:9000

listen = /var/run/php-fpm/php-fpm.sock

And also add

listen.owner = nginx

listen.group = nginx

Remove comment (;) from the above two lines and save it with :wq.

8. Install WordPress File

You can easily download WordPress archive file from the link I provided in this blog.
First go inside /tmp directory by typing below command:
# cd /tmp
Download the latest WordPress setup by using wget command
# wget https://wordpress.org/latest.tar.gz
And if wget command not work then you can download it with the following command
# yum -y install wget
Now extract the downloaded file using below command:
# tar xzvf latest.tar.gz
After that move wordpress directory in /var/www/html directory by using command:
# mv wordpress /usr/share/nginx/html
Also change the ownership of /var/www/html directory by using the following command
# sudo chown -R nginx: /usr/share/nginx/html
# chmod -R 755 /usr/share/nginx/html

9. Test WordPress

Now for testing the server of WordPress you should restart the server for that follow the command:
# nginx -t (If the command shows ‘successfully’ message then the changes in file are correct and else the changes are wrong in the nginx configuration file.)
# systemctl restart php-fpm
# systemctl restart nginx

Then open any browser and type inside URL i.e http://ip_address/

After then configuration page i.e. http://ip_address/wp-admin/ is open and select language.

 

 

 

CONCLUSION

After this installation, you will be able to create or manage blog in wordpress CMS in Centos VPS.

 

How to install WordPress with LEMP stack on CentOS 7 VPS (Part1).

WordPress is one of the most popular and widely used content management system, blogging platform in the world. It is popularly used as a Blog, Portfolio Website,  etc.

In this tutorial, you are going to learn how to install WordPress with LEMP(Linux,Nginx,MySQL,and PHP)  on CentOS 7 Linux VPS.


Table of Content

  1. Prerequisites
  2. Install MySQL 8.0
  3. Configure Database in MySQL
  4. Install & Configure PHP 7.2
  5. Install Nginx
  6. Configure Firewall
  7. Configure Nginx File
  8. Install WordPress File
  9. Test WordPress

1. Prerequisites


Before you start the installation of WordPress with (LEMP) stack on Centos 7 VPS, you must have one Centos 7 VPS with root privileges on it or you can use sudo for non-root user.  

 You should also run basis command on server to check the following things-:

# df -h (To check the disk space on the system.)

 

# cat /etc/os-release (To verify the version of the VPS.)

 

# yum -y update (To update all the packages of the VPS)

2. Install MySQL 8.0

WordPress uses a MySQL database for storage, MySQL is used in stack for storing user details in database.

For installing MySQL on Centos 7 first you need to enable MySQL repository and then you can install MySQL.

# yum localinstall    -y https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm

The command used for installing MySQL in CentOS 7 VPS is as follows:

# yum install mysql-server -y

Then check the MySQL version by typing following command:

# mysql -V(‘V’ is in uppercase)

After the installation is completed MySQL will start automatically and you can check it’s status by typing:

# systemctl status mysqld

If MySQL is not start automatically you can write the following command:

# systemctl start mysqld

Before going for the next step you should generate a temporary password to access MySQL root user with the following command:

# grep ‘temporary password’ /var/log/mysqld.log
Now configure the MySQL secure installation to improve the security by typing the following commands.
#
mysql_secure_installation

Login with the temporary password and assign new password, after that in this configuration it ask several questions you can give Y or N according to your requirement.

Change the password for root ? N

Remove anonymous users? Y

Disallow root login remotely? Y

Remove test database and access to it? Y

                  Reload privilege tables now? Y

 

3. Configure Database in MySQL

Now create database for WordPress in MySQL for that first login with MySQL server by using the following command:

# mysql -u root -p

And give its password, after that create database in it with the command:
mysql> CREATE DATABASE wordpress;

You can also check that database is created or not with the command:

mysql> SHOW  DATABASES;

Now create user and assign him password by using command:

mysql> CREATE USER ‘wordpress’@’localhost’ IDENTIFIED 

BY ‘Password’;

After that grant all privileges to the user created under that database with the command:

mysql> GRANT ALL ON  wordpress.* TO ‘wordpress’@’localhost’;       

Then flush all privileges on MySQL server with the command:

mysql> FLUSH PRIVILEGES;

Now exit from the MySQL server you can use commands:

mysql> exit;

mysql> \q;

Note-: In MySQL you must end each command with a semicolon(;).

4. Install & Configure PHP 7.2

PHP is used by WordPress to do various functions done by PHP like calling plugin, calling theme, validating user permissions, checking option, grab from database, etc.

In this Blog we are using PHP 7.2 versionand install it with epel-release with remi repository.

Firstly, install yum-utils packages using the following command:

    # yum -y install yum-utils

After that, install epel-release package by using command:

# yum -y install epel-release

Then import remi repository from the command:

# yum -y install  http://rpms.remirepo.net/enterprise/

remi-release-7.rpm

Enable the remi repository by typing:
# yum-config-manager –enable remi-php72

After that install PHP and all required modules by using command:

# yum -y install php-fpm php-mysql php-mbstring php-xml      php-gd php-cli php-json php-opcache php-curl
Now after the installation completed you can check the PHP version with the command:
# php -v (‘v’ is in smallcase)

 

To be Continued………

How to install Joomla with LEMP stack on CentOS 7 VPS (Part 2)

5. Install Nginx

Nginx, pronounced as “Engine X” and is a very fast and lightweight web server, that can be used to support static files, used as a reverse proxy and also for load balancing.

Firstlly, update all the software packages by typing the following command:

# yum -y update
After that install EPEL repository that is required for Nginx packages by using command:

    # yum -y install epel-release 

Now install  Nginx by typing the command:

    # yum -y install nginx

 After the installation is completed you must Enable and Start Nginx server by typing command:

    # systemctl start nginx

And enable it with the command:

    # systemctl enable nginx

Also check its status with

    # systemctl status nginx

6.Configure Firewall

After completed with installation part, configure the firewall settings with the following command:

Open HTTP port by typing command with:

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

If firewalld package is not available then you can install it with command:

    # yum -y install firewalld

And start firewalld service with command:

    # systemctl start firewalld

Now reload firewall configuration file by typing:

    # firewall-cmd –reload

Now verify your installation of Nginx by visiting the following URL on any browser you like with http://ip_address

7. Configure Nginx File

An Nginx server configuration file plays an important role, So you should be more careful when setting up this file.

For configuring Nginx file go inside the following path with the following command:

# cd /etc/nginx/conf.d

# vi default.conf (Creating new file)

And write the following code in the above file i.e. default.conf.    

Also change your domain in place of   ip_address       

server {

        listen       80;

        server_name  3.95.30.147;

root /usr/share/nginx/html/joomla;

        index index.php index.html index.htm;

location / {

          try_files $uri $uri/ =404;

       }

error_page 404 /404.html;

            location = /40x.html {

        root /usr/share/nginx/html/joomla;

     }

        error_page 500 502 503 504 /50x.html;

            location = /50x.html {

        root /usr/share/nginx/html/joomla;

}

        location ~* \.php$ {

        try_files $uri =404;

        fastcgi_pass unix: /var/run/php-fpm/php-fpm.sock;

        fastcgi_index index.php;

        include fastcgi_params;       

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

   

        }

}

And save it with :wq command, after that edit the configuration file of php-fpm with the following command:

    # vi /etc/php-fpm.d/www.conf

Open the file with above command and edit the following lines i.e.

user = nginx

group = nginx

Add new listen under listen  = 127.0.0.1:9000

listen = /var/run/php-fpm/php-fpm.sock

And also add 

listen.owner = nginx 

listen.group = nginx

Remove comment (;) from the above two lines and save it with :wq.

8. Install Joomla File

     You can easily download Joomla archive file from the link I provided in this blog.

First go inside /tmp directory by typing below command:

    # cd /usr/share/nginx/html

Make one directory i.e. joomla,

# mkdir joomla

Come inside the joomla directory:

    # cd joomla/

Download the latest Joomla setup by using wget command:

    # wget https://downloads.joomla.org/cms/joomla3/3-7-5/Joomla_3-7.5-Stable-Full_Package.zip  ?format=zip

And if wget command not work then you can download it with the following command:

    # yum -y install wget

Now unzip the downloaded file using below command:

    # unzip Joomla_3-7.5-Stable-Full_Package.zip

If unzip command is not work then install it first with the following command:

# yum -y install unzip

Also change the ownership of /var/www/html directory by using the following command:

    # chown -R nginx: /usr/share/nginx/html

# chmod -R 755 /usr/share/nginx/html

Note: Also change the ownership of group of /var/lib/php/session i.e. by default it is set as apache, so now change it’s ownership with:

ls -al /var/lib/php/session (It is used to check the ownership)

    chown root:nginx /var/lib/php/session (It is used to change the ownership)

9. Test Joomla

     Now for testing the server of Joomla you should restart the server for that follow the command:

    # nginx -t (If the command shows ‘successfully’ message then the changes in file are correct and else the changes are wrong in the nginx configuration file.)

    # systemctl restart php-fpm

# systemctl restart nginx

Then open any browser and type inside URL i.e http://ip_address/

After then configuration page i.e. http://ip_address/installation/ is open and then configure the following settings

CONCLUSION 

After the above installation, you will be able to manage your website by Joomla CMS in Centos VPS by using Nginx web server.

Note-: All commands are highlighted with the green color.
All links are highlighted with the blue color.
All files are highlighted with the yellow color.
All notes are highlighted with the red color.

How to install Joomla with LEMP stack on CentOS 7 VPS (Part 1)

Joomla is a popular open source Content Management System(CMS), which is used to build websites and online application. It is separated into front-end and back-end templates.

In Joomla CMS the more focused on portal-like websites.

In this tutorial, you are going to learn how to install Joomla with LEMP(Linux,Nginx,MySQL,and PHP)  on CentOS 7 VPS.


Table of Content

  1. Prerequisites
  2. Install MySQL 8.0
  3. Configure Database in MySQL
  4. Install & Configure PHP 7.2
  5. Install Nginx
  6. Configure Firewall
  7. Configure Nginx File
  8. Install Joomla File
  9. Test Joomla

     1. Prerequisites

Before you start the installation of Joomla with (LEMP) stack on Centos 7 VPS, you must have one Centos 7 VPS with root privileges on it or you can use sudo for non-root user.  

 You should also run basis command on server to check the following things-:

# df -h (To check the disk space on the system.)

# cat /etc/os-release (To verify the version of the VPS.)

# yum -y update (To update all the packages of the VPS)

  1. Install MySQL 8.0

    Joomla uses a MySQL database for storage, MySQL is used in stack for storing user details in database.

For installing MySQL on Centos 7 first you need to enable MySQL repository and then you can install MySQL.

    # yum localinstall  -y https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm

The command used for installing MySQL in CentOS 7 VPS is as follows:

    # yum install mysql-server -y

Then check the MySQL version by typing following command:

    # mysql -V(‘V’ is in uppercase)

After the installation is completed MySQL will start automatically and you can check it’s status by typing:

    # systemctl status mysqld

If MySQL is not start automatically you can write the following command:

    # systemctl start mysqld

Before going for the next step you should generate a temporary password to access MySQL root user with the following command:

    # grep ‘temporary password’ /var/log/mysqld.log

Now configure the MySQL secure installation to improve the security by typing the following commands.

# mysql_secure_installation

Login with the temporary password and assign new password, after that in this configuration it ask several questions you can give Y or N according to your requirement.

Change the password for root ? N

Remove anonymous users? Y

Disallow root login remotely? Y

Remove test database and access to it? Y

Reload privilege tables now? Y

  1. Configure Database in MySQL

     Now create database for Joomla in MySQL for that first login with MySQL server by using the following command:

    # mysql -u root -p

And give its password, after that create database in it with the command:

mysql> CREATE DATABASE joomla;

You can also check that database is created or not with the command:

mysql> SHOW  DATABASES;

Now create user and assign him password by using command:

    mysql> CREATE USER ‘joomla’@’localhost’ IDENTIFIED 

BY ‘Password’;

After that grant all privileges to the user created under that database with the command:

mysql> GRANT ALL ON  joomla.* TO ‘joomla’@’localhost’;       

Then flush all privileges on MySQL server with the command:

    mysql> FLUSH PRIVILEGES;

Now exit from the MySQL server you can use commands:

    mysql> exit;

    mysql> \q;

Note-: In MySQL you must end each command with a semicolon(;).

   4. Install & Configure PHP 7.2

    PHP is used by Joomla to do various functions done by PHP like calling plugin, calling theme, validating user permissions, checking option, grab from database, etc.

In this Blog we are using PHP 7.2 versionand install it with epel-release with remi repository.

Firstly, install yum-utils packages using the following command:

    # yum -y install yum-utils

After that, install epel-release package by using command:

    # yum -y install epel-release

Then import remi repository from the command:

    # yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm

Enable the remi repository by typing:

    # yum-config-manager –enable remi-php72

After that install PHP and all required modules by using command:

    # yum -y install php-fpm php-mysql php-mbstring php-xml      php-gd php-cli php-json php-opcache php-curl

Now after the installation completed you can check the PHP version with the command:

# php -v (‘v’ is in smallcase)

 

To be Continued…….

Get started with CloudMinister Today