[How-To] Install the perfect Sentora server using CentOS 7
10-18-2017, 12:55 AM
(This post was last modified: 10-18-2017, 05:52 AM by betatester3.0.)
NOTES: I will be using a virtual machine for this installation process, if you bought a dedicated server then simply login to your account and install CentOS 7 Minimal. That's if they support CentOS.
How to install CentOS 7 (for new users):
CentOS 7:
1: Select the appropriate language
2: Fix any issues, Enable your network and set the date&time.
Secure your server with a secure and lengthy password (try to make it as random as possible).
3: Login to your server.
4: Now we need to set a static ip for the server.
SIDE NOTE: if you are going use it in a Virtual Machine you will NEED to set the network type to "bridged adapter".
Now edit the following in the ifcfg-enp0s3 file:
Previous: BOOTPROTO="dhcp"
Change To: BOOTPROTO="static"
Hit Enter and in the next line enter your details
NOTE: to save and exit changes use CTRL+x and then type y and hit enter it will save and close
FYI: DNS ip addresses are for googles dns
End result should look something like this but obviously on your network as I have multiple, I will be using my first network 192.168.1.0 for this as its used for demos etc.
now you need to restart your network for those changes we made to take effect.
I usually test if I am able to resolve both domain names as well as ip's
If they both are able to send and receive data, congratulations you have a static ip
Finally, we can begin installing sentora panel.
Step 1: goto the Docs and grab the auto install script.
Step 2: login to your panel using ssh or even directly(VM users).
paste the link in the terminal and hit enter
If you are able to set the cname as well as the ip you would get "All is ok. Do you want to install Sentora now (y/n)? y"
if your panel does not resolve because you are going to use the current server for your domain and dns management simply force the install when it prompts you to force continue installation.
Give it up to 10+ minutes (depends on internet speed, usually its less than 10minutes) for it to complete.
you will then get the last prompt after it has been installed:
"Restart your server now to complete the install (y/n)?"
enter y and hit enter.
You should now have successfully installed Sentora v1.0.3 using CentOS 7, we are not yet done.
Login to your panel using the details in /root/passwords.txt
Now locate to Domains and add your domain. Note it will not go live until you do the next step.
Goto Dns Manager->select_a_domain_&_hit_enter->click_on"Create Records". //If your dns is managed by cloudflare or any other dns manager this might cause issues.
if you go back to "Domains" in a couple of minutes you should see that your domain is "Live";
Congratulations, You have successfully setup Sentora Panel & Your Domain using CentOS 7 Server.
How to install CentOS 7 (for new users):
CentOS 7:
- Download CentOS 7 Minimal from http://centos.mirror.ac.za/7/isos/x86_64...l-1708.iso
1: Select the appropriate language
2: Fix any issues, Enable your network and set the date&time.
Secure your server with a secure and lengthy password (try to make it as random as possible).
3: Login to your server.
4: Now we need to set a static ip for the server.
Code:
//before we set the static ip lets get a few essentials
sudo yum install nano openssh -y
//now the fun part setting up a static IP for your server
sudo nmcli dev
//that should display either display "eth0" or"enpos3"
//I am using enp0s3
//jump to the network scripts folder
cd /etc/sysconfig/network-scripts/
ls
//do ls and it will display the file we are going to edit "ifcfg-enp0s3"
nano ifcfg-enp0s3
SIDE NOTE: if you are going use it in a Virtual Machine you will NEED to set the network type to "bridged adapter".
Now edit the following in the ifcfg-enp0s3 file:
Previous: BOOTPROTO="dhcp"
Change To: BOOTPROTO="static"
Hit Enter and in the next line enter your details
Code:
IPADDR=192.168.x.x
NETMASK=255.255.255.0
NETWORK=192.168.x.x
GATEWAY=192.168.x.x
DNS1=8.8.8.8
DNS2=8.8.4.4
NM_CONTROLLED=no //must be set as NO
FYI: DNS ip addresses are for googles dns
End result should look something like this but obviously on your network as I have multiple, I will be using my first network 192.168.1.0 for this as its used for demos etc.
now you need to restart your network for those changes we made to take effect.
Code:
systemctl restart network
//then type
ip add
//the output will show you if your ip has been set my one displayed 192.168.1.11 as I set it to .11
I usually test if I am able to resolve both domain names as well as ip's
Code:
ping google.com
//if request timed out , something went wrong
ping 8.8.8.8
//same as previous comment
If they both are able to send and receive data, congratulations you have a static ip
Finally, we can begin installing sentora panel.
Step 1: goto the Docs and grab the auto install script.
Code:
//double check the below url with the above link
bash <(curl -L -Ss http://sentora.org/install)
Step 2: login to your panel using ssh or even directly(VM users).
paste the link in the terminal and hit enter
- INSTALLATION PROMPTS:
- 1st Prompt: "Please select a continent or ocean."
2nd Prompt: "Please select a country."
3rd Prompt: "Is the above information OK?"
4th Prompt: "Enter the sub-domain you want to access Sentora panel:" //Please Enter the corrent domain name eg: panel.site.tld or sen.site.tld or whateveryouwant.site.tld
- 1st Prompt: "Please select a continent or ocean."
If you are able to set the cname as well as the ip you would get "All is ok. Do you want to install Sentora now (y/n)? y"
if your panel does not resolve because you are going to use the current server for your domain and dns management simply force the install when it prompts you to force continue installation.
Give it up to 10+ minutes (depends on internet speed, usually its less than 10minutes) for it to complete.
you will then get the last prompt after it has been installed:
"Restart your server now to complete the install (y/n)?"
enter y and hit enter.
You should now have successfully installed Sentora v1.0.3 using CentOS 7, we are not yet done.
Login to your panel using the details in /root/passwords.txt
Now locate to Domains and add your domain. Note it will not go live until you do the next step.
Goto Dns Manager->select_a_domain_&_hit_enter->click_on"Create Records". //If your dns is managed by cloudflare or any other dns manager this might cause issues.
if you go back to "Domains" in a couple of minutes you should see that your domain is "Live";
Congratulations, You have successfully setup Sentora Panel & Your Domain using CentOS 7 Server.
-BetaTester3.0 || Just Another Sentora User.
Did you know, Sentora has a full Support Documentation ?
If I helped +rep & Thanks is appreciated.
BTC: 1Bps3ZerDFDDnXJ9XdWtHhdhwsV4MVGLkw
If I helped +rep & Thanks is appreciated.
BTC: 1Bps3ZerDFDDnXJ9XdWtHhdhwsV4MVGLkw