Showing posts with label VPS. Show all posts
Showing posts with label VPS. Show all posts

Monday, 20 April 2020

How to install cPanel on CentOS

Introduction:- cPanel is a very simple and easy online based control panel to manage your hosting services. The best thing is that non-technical people can also handle all aspects of their web site without any technical skill. With the cPanel you can manage all the important aspects like upload files to your server, install wordpress, connect domain name to your hosting, checking your bandwidth and other usage stats, taking backup of your web sites, setup e-mails for your site, Set up various optimizations and a lot more !!

Quick Tip: You can run this installation on a Cloud Instance or a Virtual Private Server or Dedicated server, and even on a Container such as Docker!

Let's Start:
Login to server as root (SSH).
cPanel is programmed in Perl language. So before starting the installation we need to install Perl if it isn't installed on the server.

yum users should run the following command:

#yum install -y perl

Now you need to set the hostname for your server. Using hostname you can identify your computer in the network. To change your hostname run the following command

#hostname vps.mydomain.com

You can replace vps.mydomain.com with your hostname. You must have to purchase the domain which your are setting up the hostname.

Next, step is you will need to change your current directory to /home directory, run the following command to do this.

#cd /home

It’s time to download the installation script from cPanel official website.

#curl -o latest -L https://securedownloads.cpanel.net/latest

Now, run the below execution script and install the cPanel.

#sh latest

This command will start your cPanel installation, you need to wait around half and hour and can now sit back and relax as the installation takes around half hour to complete. Once the installation script is finished you will see the following type of output:

--------------------------------------------------------------------------------------------------------------------------------

[2020-04-14 10:04:57 +0000] [9869] ( INFO): cPanel install finished in 5 minutes and 35 seconds!

[2020-04-14 10:04:57 +0000] [9869] ( INFO): Congratulations! Your installation of cPanel & WHM 11.86 is now complete. The next step is to configure your server.

[2020-04-14 10:04:57 +0000] [9869] ( INFO):

[2020-04-14 10:04:57 +0000] [9869] ( INFO): Before you configure your server, ensure that your firewall allows access on port 2087.

[2020-04-14 10:04:57 +0000] [9869] ( INFO):

[2020-04-14 10:04:57 +0000] [9869] ( INFO): After ensuring that your firewall allows access on port 2087, you can configure your server.

[2020-04-14 10:04:57 +0000] [9869] ( INFO):

[2020-04-14 10:04:57 +0000] [9869] ( INFO): 1. Open your preferred browser

[2020-04-14 10:04:57 +0000] [9869] ( INFO):

[2020-04-14 10:04:57 +0000] [9869] ( INFO): 2. Navigate to the following url using the address bar and enter this one-time autologin url:

[2020-04-14 10:04:57 +0000] [9869] ( INFO):

[2020-04-14 10:04:57 +0000] [9869] ( INFO): https://13.127.207.50:2087/cpsess0353546322/login/?session=root%3aroyqyQSyp90CRSSv%3acreate_user_session%2c08904fd92d0fea5549ca256a84ac2b18

[2020-04-14 10:04:57 +0000] [9869] ( INFO):

[2020-04-14 10:04:57 +0000] [9869] ( INFO): After the login url expires you generate a new one using the 'whmlogin' command or manually login at:

[2020-04-14 10:04:57 +0000] [9869] ( INFO):

[2020-04-14 10:04:57 +0000] [9869] ( INFO): https://13.127.207.50:2087

[2020-04-14 10:04:57 +0000] [9869] ( INFO):

[2020-04-14 10:04:57 +0000] [9869] ( INFO): Visit https://go.cpanel.net/whminit for more information about first-time configuration of your server.

[2020-04-14 10:04:57 +0000] [9869] ( INFO):

[2020-04-14 10:04:57 +0000] [9869] ( INFO): Visit http://support.cpanel.net or https://go.cpanel.net/allfaq for additional support

[2020-04-14 10:04:57 +0000] [9869] ( INFO):

[2020-04-14 10:04:57 +0000] [9869] ( INFO): Thank you for installing cPanel & WHM 11.86!

Removing /root/installer.lock.

--------------------------------------------------------------------------------------------------------------------------------

Congratulations !!

Your cPanel installation is completed and now, you can now open your browser and go to https://your-server-ip:2086 to access cPanel. Login with username root and your root account's password. For example if your IP is 192.168.1.82 then you will have to go to

https://192.168.1.82:2086

Note:-

Once cPanel is installed you can not be uninstall it from server as it does not have any uninstaller. To uninstall you need to reinstall your operating system. cPanel is commercial software and offers a 15 day trial period. Once cPanel is installed on server it is automatically activated.

Thursday, 18 April 2019

How To Set Up Your First Instance With Amazon Lightsail

Amazon Web Services (AWS) launched a new service called Amazon Lightsail in 2016. Amazon Lightsail is a flat-rate, low-cost computing solution with easy setup and it has low maintenance. In the server hosting world, these systems are known as VPS i.e Virtual Private Servers.

AWS Lightsail VPS is a scaled-down version of its Elastic Compute Cloud (EC2) service. For production workloads, EC2 instances require a range of fine-tuning like selecting the right Amazon Machine Image (AMI), placement in a virtual private cloud (VPC), assigning security groups, configuring network interfaces, and so on.

Amazon Lightsail instances don’t need any of these. This ease of set up and operation means that Lightsail instances don’t need to be maintained by dedicated server teams. They are classical for developers, devotee, and small teams.

Step 1 : Sign-Up For AWS
To launch your first lightsail instance you requires an AWS account. Sign up for AWS, or Sign in to AWS if you already have an account.

Step 2 : After Login In AWS Management Console, Select Amazon Lightsail
Amazon Lightsail is a low cost VPS(virtual private server) service launched by Amazon Web Services(AWS). Launching an instance become very easy for non-technical people. With Lightsail you can launch a virtual machine preconfigured with SSD-based storage, DNS management, and a static IP address with a few simple clicks.






Step 3 : Click On The Create Instance Button



Step 4 : Choose The AWS Region And Availability Zone For Your Instance



Step 5 : Choose Your Platform And OS Which You Want To Install For Instance



Step 6 : Create New SSH Key
If you don't choose to use the default key, you can create a new key pair at the time you create your Lightsail instance.

  1. If you haven't done it yet, choose Create instance.
  2. On the Create an instance page, choose change SSH key pair.
  3. Choose Create new.
  4. Lightsail displays the region where we're creating the new key.


Step 6 : Choose An Instance Plan
A plan includes a low, predictable cost, machine configuration (RAM, SSD, vCPU), and data transfer allowance. You can try the $3.50 USD Lightsail plan without charge for one month (up to 750 hours). AWS credits one free month to your account.



Step 7 : Identify Your Instance
You can rename your instance to something more appropriate, and at last click on create.



Step 8 : Create A Lightsail Static IP Address And Attach It To Your Instance
The default public IP for your Lightsail instance changes if you stop and start the instance. A static IP address, attached to an instance, stays the same even if you stop and start your instance.

Create a static IP address and attach it to your Lightsail instance.



With reference to this article, you must be able to launch your first Lightsail instance. If you have any queries then write us at support@cloud.in

Reduce Amazon Bedrock costs by 50% using Intelligent Prompt Routing

The problem: premium models are quietly draining your AWS budget Here's a pattern that shows up in almost every Bedrock account we look ...