Until you use Python 3 system on Sakura rental server (create verification environment) Part 1 Contract-Initial setting

I write it as my memorandum.

Domain acquisition-name server, DNS settings

You don't have to get a domain. If you are not particular about your domain. It is recommended that you experience the explanation of the DNS mechanism from the explanation of the registrar, the name server in practice, and the DNS setting because it is important knowledge for isolating troubles. I've seen several cases where a web designer who has no experience or knowledge about infrastructure makes a mistake in DNS switching in a case that he undertook after independence.

mochikoAsTech's book is very easy to understand, so I recommend it. Getting Started with DNS-From Basics to Troubleshooting-Revised 2nd Edition

I use other registrars because Name.com doesn't like tedious confirmations and confusing pop-ups.

Contract phase

Plan selection

** Sakura Rental Server ** has different prices depending on the function. This time, we will also work with SSH connection, so it is necessary to work with standard or higher. Standard plan 524 yen / month is used. The initial cost is 1048 yen, and the usage fee for 2 months will be charged for the first time. If there is a coupon code, this area may be relaxed or the free period may be extended. Coupon codes are available at free seminars and events.

Immediately proceed to Sakura Rental Server ** Application Page **.

Sakura rental server application

Make a contract with the following contents.

plan Standard
Initial domain Arbitrary string
Own domain Contract only for rental server

Check the detailed procedure at ** [Startup] ① Let's rent a rental server **

Contract completion-Control panel initial setting

Set WAF

Setting method Web application firewall (WAF) settings

Always SSL

Setting method [Shared SSL] Setting method About certificate renewal Since the initial domain is a shared domain, it will be updated automatically on the Sakura side. In the case of the original domain, it is updated for 90 days, so update it yourself from the control panel as appropriate.

.htaccess settings

If http (port 80) can be connected, set the redirect to https (port 443). Setting method If encryption (SSL) is enabled, I want to lead to the encrypted page

SSL server certificate description

Even if you have your own domain, you can apply for Free SSL (Let's Encrypt) from Sakura's control panel. To supplement the quality of the SSL certificate, you can select it according to your purpose. Occasionally, it is easy to judge that Let's Encrypt is not sloppy, but I think that it should be judged for the purpose. The purpose of this time is to encrypt communication in a personal verification environment. It is not a proof of the existence of the organization. There is no change in the encryption strength, so there is no problem with Let's Encrypt. Click here for details Sakura Knowledge Let's know again, what is an SSL server certificate? (2nd)

Snapshot settings

Make a backup as it may be set irregularly. It's cheap, but it's convenient to have backup, snapshot, and staging environments.

Setting method [Backup & Staging] Backup procedure Normally, the directory is ./www of the website, but I want to make a backup of python, so I create a backup setting of ./local with additional settings and create a snapshot. You don't have to make a schedule. It's just used as a restore point for construction mistakes. I want to restore the file directly under it to the state before work, so I use ./ as a whole

SSH connection to Sakura's rental server

I will describe it for those who are new to infrastructure. If you don't know the directory structure when backing up, ssh and check. You cannot see all directories from Sakura's control panel.

Connect with Terminal for Mac, Command Pront or PowerShell for Win. Connect with a common ssh connection command. Login is a server account, not a member ID.

** Example: When the initial domain name is hogework ** ssh [email protected] The password is the hogework password.

The main commands used are Remember it because it's about cd, ls, rm, mkdir. After logging in Use ls -a -l to see a complete list of directories. Then, in addition to www, you can see MailBox db`` log local. It is easy to rewind if you take a snapshot of the required directory with snapup.

Postscript-- I can run Murikuri python3, but I stopped because it was impossible (bitter smile)

Recommended Posts

Until you use Python 3 system on Sakura rental server (create verification environment) Part 1 Contract-Initial setting
[Note] Python environment construction on rental server "CORESERVER"
Until you use PhantomJS with Python on Heroku
Building a Python environment on a Sakura VPS server
Until you create a machine learning environment with Python on Windows 7 and run it
Until you create Python Virtualenv on Windows and launch Jupyter
Install Python3 on Sakura server (FreeBSD)
Create a Python environment on Mac (2017/4)
Create a python environment on centos
Sakura Use Python on the Internet
Create a python environment on your Mac
Use Python external module on Sakura Internet
Create an OpenCV3 + python3 environment on OSX
Until you can use opencv with python
Until you install Python with pythonbrew and run Flask on a WSGI server
[Venv] Create a python virtual environment on Ubuntu
Create a Python execution environment on IBM i
Create a Python virtual development environment on Windows