Difference between revisions of "VPS configuration"

From TITAN Wiki
Jump to: navigation, search
m
(Tag: visualeditor)
m (SSMS)
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
[[File:VPS.jpg|thumb|Virtual Private Server|400x400px]]
 
[[File:VPS.jpg|thumb|Virtual Private Server|400x400px]]
'''VPS''' - Virtual private server is a virtual machine sold as a service by an Internet hosting service. For more infromtaion go to [https://en.wikipedia.org/wiki/Virtual_private_server Wikipedia].
+
'''VPS''' - Virtual Private Server is a virtual machine sold as a service by an Internet hosting company.
  
 
[[File:Options.png|Options for third step of IIS installation.|thumb|665x665px]]
 
[[File:Options.png|Options for third step of IIS installation.|thumb|665x665px]]
Line 8: Line 8:
 
# [https://en.wikipedia.org/wiki/Internet_Information_Services IIS] - Download directly from Server Manager on the VPS
 
# [https://en.wikipedia.org/wiki/Internet_Information_Services IIS] - Download directly from Server Manager on the VPS
 
# [https://en.wikipedia.org/wiki/Microsoft_SQL_Server MS SQL] - [https://www.microsoft.com/en-us/sql-server/sql-server-downloads Download - SQL Server 2016 SP1 Express edition]
 
# [https://en.wikipedia.org/wiki/Microsoft_SQL_Server MS SQL] - [https://www.microsoft.com/en-us/sql-server/sql-server-downloads Download - SQL Server 2016 SP1 Express edition]
# [https://en.wikipedia.org/wiki/SQL_Server_Management_Studio SSMS] - [https://docs.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms Download - SQL Server Management Studio (16.5.3)]
+
# [https://en.wikipedia.org/wiki/SQL_Server_Management_Studio SSMS] - [https://docs.microsoft.com/en-us/sql/ssms/release-notes-ssms?view=sql-server-2017#previous-ssms-releases Download - SQL Server Management Studio (17.9.1)]
 
# [https://en.wikipedia.org/wiki/MailEnable MailEnable] - [https://www.mailenable.com/download.asp Download - Standard Edition (FREE)]
 
# [https://en.wikipedia.org/wiki/MailEnable MailEnable] - [https://www.mailenable.com/download.asp Download - Standard Edition (FREE)]
  
Line 37: Line 37:
 
To install MailEnable please download MailEnable directly on your VPS and start install with creator following steps below:
 
To install MailEnable please download MailEnable directly on your VPS and start install with creator following steps below:
 
# Click next before you get "Get Postoffice Details".
 
# Click next before you get "Get Postoffice Details".
# Set "Post Office Name" on your domain and password.  
+
#[[File:12.png|frame]]Set "Post Office Name" on your domain and password.  
#Click next before you get "SMTP Connector configuration", set "Domain Name" on your domain.
+
#[[File:123.png|frame]]Click next before you get "SMTP Connector configuration", set "Domain Name" on your domain.  
#Finish installation with creator.
+
#[[File:vps_mail_1.png|thumb]]TESTX 1
[[File:12.png|thumb]] [[File:123.png|thumb]]
+
#[[File:vps_mail_2.png|thumb]]TESTX 2
 +
#Finish installation with creator.
 +
 
  
  
Line 59: Line 61:
  
 
=== Firewall ===
 
=== Firewall ===
# Go to C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools --> Windows Firewall with Advanced Security.
+
# Open C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools --> Windows Firewall with Advanced Security.
 
# Click Inbound Rules.
 
# Click Inbound Rules.
# Add new rule.
+
# Add new rule.
# Set port type for rule and click next
+
# Set port type for rule and click next
# Check TCP and set specific local port for 1433.
+
# Check TCP and set specific local port for 1433.
# Click next until you get to Name section. Set Name, Description and create rule.  
+
# Click next until you get to Name section. Set Name, Description and create rule.
  
 
=== SSMS ===
 
=== SSMS ===
Line 77: Line 79:
 
# Uncheck "Enforce password policy"
 
# Uncheck "Enforce password policy"
 
# Go to "Server roles" and check all available options.
 
# Go to "Server roles" and check all available options.
# Go to "User Mapping" and check all available options.
+
# Go to "User Mapping" and check forum and site database.
# Try login to SSMS using SQL Server authentication with user which you created. If you login correctly you can continue configuration. If not it means that some with previous steps have been configured incorrectly.
+
# Click on forum database and check all available options from ,,Database role membership for:"
 +
# Click on site database and check all available options from ,,Database role membership for:"
 +
# Go to ,,Securables" and click Search... check "The server..." And check all available options in Grant column.
 +
# Try login to SSMS using SQL Server authentication with user which you created. If you login correctly you can continue configuration. If not it means that some with previous steps have been configured incorrectly.
  
 
=== MailEnable ===
 
=== MailEnable ===
#  
+
# Open MailEnable
#  
+
# Go to Servers - > localhost -> Services and Connectors -> Right click on SMTP and Properties
#
+
# In "General" tab "Local domain name" and "Default mail domain name" should be the same with domain which you set during installation.
 +
#Go to "Relay" tab and uncheck "Allow relay for privileged IP ranges"
 +
#Next click on "Authentication Method...", check "Authenticate against the following username/password" and set "Username" on '''contact@YourDomain.com'''  and "Password.
 +
#Close properties, stop and start SMTP server.
 +
#Open Post Offices --> Mailboxes and add New Mailbox
 +
##set mailbox name to '''contact'''
 +
##set password
 +
##change mailbox type to '''ADMIN'''
 +
#Go to '''IIS''', type '''MailEnable WebMail''' on left panel and go to Bindings. Add new binding, set Host name to '''mail.YourDomain.com'''
 +
#Your domain must have '''CNAME''' DNS record with '''value= mail''' pointed to your domain IP address
 +
 
 +
Now you are able to login your mailbox via '''mail.YourDomain.com'''.

Latest revision as of 13:18, 22 November 2019

Virtual Private Server

VPS - Virtual Private Server is a virtual machine sold as a service by an Internet hosting company.

Options for third step of IIS installation.

Installation

To install Titan on your VPS you need install few additional programs. Log into your VPS server using RDC and download following programs:

  1. IIS - Download directly from Server Manager on the VPS
  2. MS SQL - Download - SQL Server 2016 SP1 Express edition
  3. SSMS - Download - SQL Server Management Studio (17.9.1)
  4. MailEnable - Download - Standard Edition (FREE)

Next install them in the same order.

IIS

Internet Information Services is an extensible web server created by Microsoft for use with the Windows NT family.

To install IIS please follow steps below:

  1. Open Server Manager on the VPS using RDC.
  2. Add roles and features and clicking next until you get to "Server Roles".
  3. Find and check "Web Server(IIS)" and make sure that the following options are checked which you can see on the rigth side.
  4. Finish installation with creator.

MS SQL

Microsoft SQL Server is a relational database management system developed by Microsoft.

To install MS SQL please download MS SQL directly on your VPS and start install with creator using default options.

SSMS

SQL Server Management Studio is a software application which is used for configuring, managing, and administering all components within Microsoft SQL Server.

To install SSMS please download SSMS directly on your VPS and start install with creator using default options.

MailEnable

MailEnable is a Windows-based, commercial mail server distributed by MailEnable Pty.

To install MailEnable please download MailEnable directly on your VPS and start install with creator following steps below:

  1. Click next before you get "Get Postoffice Details".
  2. 12.png
    Set "Post Office Name" on your domain and password.
  3. 123.png
    Click next before you get "SMTP Connector configuration", set "Domain Name" on your domain.
  4. Vps mail 1.png
    TESTX 1
  5. Vps mail 2.png
    TESTX 2
  6. Finish installation with creator.


When you will finish all installations, VPS server have to be restarted before you start configuring installed programs.

Configuration

IIS

  1. Open Control Panel\System and Security\Administrative Tools --> Internet Information Services (IIS) Manager
  2. Expand first position in tree on the left side and in the sites section add new website
  3. Site name should be your domain and physical path should be C:\inetpub\yourdomain.com where should be all installation files

MS SQL

  1. Open C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft SQL Server 2016\Configuration Tools --> SQL Server 2016 Configuration Manager.
  2. Go to SQL Server Network Configuration -> Protocols for SQLEXPRESS -> TCP/IP.
  3. In the "IP Addresses" tab make active and enable "IP2" and set "IP address" to your VPS server ip. Next make sure that "TCP Port" is set for 1433.
  4. Go to SQL Server Services -> SQL Server (SQLEXPRESS) and using right click stop and start sql server.

Firewall

  1. Open C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools --> Windows Firewall with Advanced Security.
  2. Click Inbound Rules.
  3. Add new rule.
  4. Set port type for rule and click next
  5. Check TCP and set specific local port for 1433.
  6. Click next until you get to Name section. Set Name, Description and create rule.

SSMS

  1. Open C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft SQL Server 2016 --> Microsoft SQL Server Management Studio.
  2. Connect to your MS SQL using Windows Authentication.
  3. Click right button on the first position in tree on the left and choose "Properties".
  4. Co go "Security" and check "SQL Server and Windows Authentication mode".
  5. Create two database for the website and for the forum using right click on the "Databases" on the tree.
  6. Go to "Security" and using right click on the "Logins" create new login.
  7. Set name.
  8. Check the "SQL Server authentication" and set password.
  9. Uncheck "Enforce password policy"
  10. Go to "Server roles" and check all available options.
  11. Go to "User Mapping" and check forum and site database.
  12. Click on forum database and check all available options from ,,Database role membership for:"
  13. Click on site database and check all available options from ,,Database role membership for:"
  14. Go to ,,Securables" and click Search... check "The server..." And check all available options in Grant column.
  15. Try login to SSMS using SQL Server authentication with user which you created. If you login correctly you can continue configuration. If not it means that some with previous steps have been configured incorrectly.

MailEnable

  1. Open MailEnable
  2. Go to Servers - > localhost -> Services and Connectors -> Right click on SMTP and Properties
  3. In "General" tab "Local domain name" and "Default mail domain name" should be the same with domain which you set during installation.
  4. Go to "Relay" tab and uncheck "Allow relay for privileged IP ranges"
  5. Next click on "Authentication Method...", check "Authenticate against the following username/password" and set "Username" on contact@YourDomain.com and "Password.
  6. Close properties, stop and start SMTP server.
  7. Open Post Offices --> Mailboxes and add New Mailbox
    1. set mailbox name to contact
    2. set password
    3. change mailbox type to ADMIN
  8. Go to IIS, type MailEnable WebMail on left panel and go to Bindings. Add new binding, set Host name to mail.YourDomain.com
  9. Your domain must have CNAME DNS record with value= mail pointed to your domain IP address

Now you are able to login your mailbox via mail.YourDomain.com.