VPS configuration

From TITAN Wiki
Jump to: navigation, search
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.