![]() ![]() The next step is starting the MySQL Server and change the root password. When done, it’s time to install MySQL 8.0 Server: ~]$ sudo yum install mysql-community-server ![]() We have to install first the MySQL Repository also available on this page: sudo yum install -y Warning: Permanently added '10.0.0.5' (ECDSA) to the list of known ~]$ The authenticity of host '10.0.0.5 (10.0.0.5)' can't be established.ĮCDSA key fingerprint is SHA256:/S2NAcn0LCFKqdXPubfD3MEYfaQ2abq8aFQmjx2h+E0.ĮCDSA key fingerprint is MD5:d5:ee:fe:ae:42:ef:19:08:21:9c:71:fe:5d:72:43:f5.Īre you sure you want to continue connecting (yes/no)? yes Now we can connect to our MySQL VM from the WordPress instance (or still publicly), but we must not forget to forward the ssh agent: ssh -A -i ~/.ssh/id_rsa_oci note the -AĪnd we can connect to our MySQL instance: ~]$ ssh 10.0.0.5 Removing the public IP must be done only after installing all the required software as the server won’t be able to connect to Internet anymore and we can’t have a NAT Gateway with the Free Trier. The WordPress instance is ready, let’s setup the database now.Īs we don’t want to connect directly to the MySQL Server, we will remove the plublic IP and use the WordPress server to jump on our MySQL instance. Just put the public IP in your browser and you should see the following page: Installing MySQL We can start apache and try it: www]$ sudo systemctl start httpd Now let’s configure the local firewall too using the ssh connection: www]$ sudo firewall-cmd -zone=public -permanent www]$ sudo firewall-cmd -reload ![]() Let’s do so and add an new Ingress Rules:Īnd we add the rule to allow the traffic from everywhere to the port 80: We are now in the Security Lists, we can only edit the existing one when using the Free Trier. We reach the VCN’s page and we can click again on “Public Subnet”: On the Instance’s Information Page, we click on the Public Subnet: It’s time to configure OCI to open port 80 on our webserver and then configure the local firewall of our instance to allow connections to port 80. We can unpack it and replace the html folder by the wordpress one: www]$ sudo tar zxvf www]$ sudo rm -rf html/ www]$ sudo mv wordpress www]$ sudo chown apache. We will install WordPress as the default site as this will be the only site hosted in this micro instance: ~]$ cd www]$ sudo wget Perfect ! We could also see that as dependency, yum installed apache ( httpd). Let’s verify that MySQL is supported with all the authentication methods: Let’s enable remi’s PHP 7.4 repository: sudo yum-config-manager -enable remi-php74Īnd finally install all required packages (I used a list of some that I usually need with WordPress): sudo yum install php php-cli php-mysqlnd php-zip php-gd \ To install latest PHP 7.4 we will use EPEL and Remi’s repository: sudo yum -y install To connect in ssh, we need to use the opc user with the ssh key we added, something like: ssh -i ~/.ssh/id_rsa_oci we want to use PHP for WordPress and connect to MySQL 8.0 using the new default secure authentication plugin, auth_plugin_caching_sha2_password, we need to install PHP >= 7.4.2 support of auth_plugin_caching_sha2_password in PHP Installing PHP 7.4 This is the one we will use as webserver (you can free the public IP on the other one, the MySQL one):Īt the creation, we entered a ssh key to access our instances. When our instances are deployed, we can find the public IP of one of them. We will use the Oracle Linux 7.7 on Micro Instances:Īs I am in Belgium, I use the Frankfurt datacenter. Let’s start by creating 2 compute instances: ![]() We will use one public IP to reach our site and our two servers will communicate using their own private network: Deploying 2 compute instances the webserver (apache, PHP and WordPress).We will use Oracle Cloud’s Free Trier and deploy 2 compute instances: Today we will see how to install WordPress in Oracle Cloud (OCI). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |