Oracle Cloud

From Wildsong
Jump to navigationJump to search

This wiki is running in an Oracle Cloud virtual machine. Its database is replicated and its file storage is synced every day.

Cloudflare Zero Trust makes the site available publicly while keeping the IP address hidden.

Set up

Set up an account at https://oraclecloud.com and opt for the free service level.

I think it required TOTP for authentication.

See "Create a VM Instance" https://cloud.oracle.com/compute/instances/create?region=us-sanjose-1

At the free level you get a choice of 1 AMD core and 1GB of RAM or an ARM CPU with one core and 6 GB of RAM.

When I tried to create an ARM CPU it told me there were none available in the San Jose data center.

I used the Oracle Linux Cloud Developer 8 image, it has the packages I want pre-installed (php, mysql)

Cloud Shell (not what you want)

They let you spin up a little shell in a separate container if you want. Under the Developer tab. It is transient, the whole container goes away when you exit.

Provisioning

yum update

yum install nginx php-fpm php-mysqlnd

systemctl enable nginx

systemctl start ngninx

firewall-cmd --permanent --zone=public --add-service=http

firewall-cmd --permanent --zone=public --add-service=https

firewall-cmd --reload

systemctl enable mysqld

systemctl start mysqld

mysql_secure_installation

Database replication

Daily backup