Oracle Cloud: Difference between revisions

From Wildsong
Jump to navigationJump to search
Brian Wilson (talk | contribs)
mNo edit summary
Brian Wilson (talk | contribs)
mNo edit summary
Line 22: Line 22:
yum install mysql-server
yum install mysql-server


yum install php-mysqlnd php-fpm
yum install php php-cli php-mysqlnd php-fpm


yum install nginx
yum install nginx


Install phpfpm
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 ==

Revision as of 16:47, 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.

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 mysql-server

yum install php php-cli php-mysqlnd php-fpm

yum install nginx

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