Deploy a Laravel app on Oracle Cloud with database

Assumptions:

  • Ubuntu 22
  • PHP 7.3
  • Laravel 5.5
  • Apache 2
  • PHP-Redis
  • Download the public and private keys on your local machine.
  • You have created your VM instance!
  • Create an always free Autonomous Database [if your application uses a database]
  • Select your desired database
  • After creating your database, go to “DB Connection” tab
  • Download the Oracle Wallet on your local machine to connect to your database

Read more

Share

Mount Oracle Object Storage to Ubuntu Linux

Step 1. Install s3fs on an OCI compute instance running Ubuntu

SSH remotely into your Ubuntu server and run sudo apt update to update your system repository. Then type the command 

sudo apt install s3fs awscli -y 

to install S3fs on your system. To verify proper installation, run which s3fs and you should be able to see the path of the program.

Note: refer to our other tutorials  on how to create and connect to cloud compute instance through Bastion host.

Read more

Share

Mounting OCI bucket on CentOS 7 Linux

Install s3fs-fuse

In order to use this you have to enable EPEL Repository-

sudo yum install epel-release
sudo yum install s3fs-fuse
[opc@linux8 ~]$ sudo yum install s3fs-fuse
Last metadata expiration check: 0:00:41 ago on Sun 15 May 2022 05:40:13 PM CST.
Dependencies resolved.
=================================================================================================================================
Package Architecture Version Repository Size
=================================================================================================================================
Installing:
s3fs-fuse x86_64 1.91-1.el8 ol8_developer_EPEL 273 k
Installing dependencies:
fuse x86_64 2.9.7-12.0.4.el8 ol8_baseos_latest 84 k
fuse-common x86_64 3.2.1-12.0.4.el8 ol8_baseos_latest 22 k

Transaction Summary
=================================================================================================================================
Install 3 Packages

Total download size: 379 k
Installed size: 856 k
Is this ok [y/N]: y
......
Installed:
fuse-2.9.7-12.0.4.el8.x86_64 fuse-common-3.2.1-12.0.4.el8.x86_64 s3fs-fuse-1.91-1.el8.x86_64

Complete!

Read more

Share

Oracle Linux 8: How To Access the GRUB

Reboot or start the instance.

After the console screen is blank, there is only one or two seconds to press <escape key>. Press it several times as quickly as possible.

If escape was pressed successfully, the Boot menu will be displayed, if not try again.

Note that it is possible that instead of the Boot menu, a BIOS is displayed:

In that case, navigate to “Continue”, press Enter followed by Escape.

Share

Enable Password based authenticaiton in OCI compute instance

If you want to use a password to access the SSH server, a solution for fixing the Permission denied error is to enable password login in the sshd_config file.

To do this, open the file in a text editor.  This example uses the nano editor:

sudo nano /etc/ssh/sshd_config

In the file, find the PasswordAuthentication line and make sure it ends with yes.

Find the ChallengeResponseAuthentication option and disable it by adding no.

If lines are commented out, remove the hash sign # to uncomment them. Save the file and exit. Restart the SSH service by typing the following command:

sudo systemctl restart sshd
Share

Multipart Upload on OCI Bucket / Object Storage using OCI-CLI in Windows or Linux

Oracle OCI-CLI requires Python packages v 3.6 or higher. During installation it is auto installed on windows server/OS, however on Linux, there might be preinstalled Python package installed, that might need to be updated manually before running the installer. (In few cases, the installation failed and the package needed to be be updated seperately)

Installation on Linux

bash -c "$(curl -L https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.sh)"

For CentOS-7 few additional steops might needed-

sudo yum groupinstall 'Development Tools'
sudo yum install centos-release-scl
sudo yum install rh-python36
scl enable rh-python36 bash
yum -y install python-pip

afterwards, run the installer command mentioned above.

Read more

Share

OCI Architecture Diagram Toolkits

Oracle Cloud Infrastructure (OCI) Architecture Diagram Toolkit in three formats:

Use these assets to draw custom architecture diagrams for your OCI implementation. Each of these formats contains OCI service icons and templates where possible. Examples and guidance on how to create diagrams for your specific cloud deployment are in the PowerPoint file.

In addition, we have the following assets for you.

Share

Enabling Ping requests to OCI Instance

If you want to test with Ping requests you’ll need to modify the Ingress rules on the security list associated with the VCN, Subnet, network device, thing, what ever, to allow ICMP packets. Allowing ICMP traffic is not required, it’s an option. Please only take this option if you understand the possible impact. The following directions cover enabling ICMP requests for a subnet.

Read more

Share