Oracle Cloud: Difference between revisions
Brian Wilson (talk | contribs) mNo edit summary |
Brian Wilson (talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 13: | Line 13: | ||
When I tried to create an ARM CPU it told me there were none available in the San Jose data center. | 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) == | == Cloud Shell (not what you want) == | ||
Line 20: | Line 22: | ||
yum update | yum update | ||
yum install | 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 == | == Database replication == | ||
== Daily backup == | == Daily backup == |
Latest revision as of 17:31, 11 January 2024
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