To access your Virtual Machine as Administrator,
- Type command sudo -s
- Enter same password
Type command passwd to change password for root user.
Note: choose a strong password otherwise it won't allow you to change.
Type command
cd to shift to root directory and type command
sudo yum install perl to install perl as its cpanel dependency.
Enter
Y to install its dependencies.
Perl is now installed.
To set the system’s host name type command hostname [your domain],
- E.g. hostname usmansheikh.pk
Note:
Hostname is the program that is used to either set or display the current host, domain or node name of the system. These names are used by many of the networking programs to identify the machine. The domain name is also used by NIS/YP.
To install Cpanel on linux type command:
- cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest
- Visit for more details.
Tip:
Install screen widget using this command sudo yum install screen wget then type command screen to open widget screen and enter this command. If somehow the screen is closed or anything happens the setup is running in background.
Press CTRL + A + D to shift back to main screen.
It will take several minutes to complete.
Go to Microsoft Azure Portal,
- Click on your Virtual Machine.
- Click ENDPOINTS.
- Click the Add button as shown in screen.
When you click add this,
dialog will open. Choose this option as shown in screenshot and move to next step.
Enter the following:
- NAME (It can be any but keep it simple and meaningful)
- PROTOCOL (UDP OT TCP)
- PUBLIC PORT (Port Number)
- PRIVATE PORT (Port Number)
Make sure you have these ENDPOINTS with the same Protocol and Port Numbers.
Note: Use as in the following,
- 2086 ,2087 for WHM both TCP, UDP
- 2082,2083 for cPanel TCP, UDP
Login with https://IP addres:2087.
INTERNAL IP ADDRESS
Now you can access your Cpanel.