This guide shows how to install Git manually on a low-memory Oracle Cloud Free Tier instance running Oracle Linux 9.x.
- Oracle Linux 9.7
- Architecture:
x86_64 - RAM: 512 MB
- Swap: 2 GB
| cd ~ | |
| curl -sS https://getcomposer.org/installer -o composer-setup.php | |
| HASH=`curl -sS https://composer.github.io/installer.sig` | |
| php -r "if (hash_file('SHA384', 'composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" | |
| #check your installation directory where all executables are stored. eg /usr/bin | |
| sudo php composer-setup.php --install-dir=/usr/bin --filename=composer | |
| php -r "unlink('composer-setup.php');" |
| <?php | |
| namespace App\Providers; | |
| use Illuminate\Support\ServiceProvider; | |
| class AppServiceProvider extends ServiceProvider | |
| { | |
| /** | |
| * Bootstrap any application services. |
| server { | |
| listen 80; | |
| server_name app.rehanmanzoor.me; | |
| charset utf-8; | |
| client_max_body_size 1M; | |
| location / { | |
| proxy_pass http://127.0.0.1:8001; | |
| proxy_http_version 1.1; |
title: Setting Up Laravel in Ubuntu / DigitalOcean keywords: servers, laravel, coderstape, coder's tape description: Let's take a look at settting up a server from scratch for Laravel. date: April 1, 2019 tags: servers, laravel permalink: setting-up-laravel-in-ubuntu-digitalocean img: https://coderstape.com/storage/uploads/GZTXUbyGum2xeUZM9qBD5aPv8EKLwG3C8RGcRon4.jpeg author: Victor Gonzalez authorlink: https://github.com/vicgonvt
| /** | |
| * Process datatables ajax request. | |
| * | |
| * @return \Illuminate\Http\JsonResponse | |
| */ | |
| public function allData(Request $request) | |
| { | |
| $registrations = Registration::with('product')->with('reg_type')->select('registrations.*'); | |
| $datatable = Datatables::of($registrations); |
| <?php | |
| class BlogController extends Controller | |
| { | |
| /** | |
| * Posts | |
| * | |
| * @return void | |
| */ | |
| public function showPosts() |