CakePHP 5 - Install Live and Development Environments on Ubuntu 24.04 VM

Published: 19 June 2024
on channel: James McDonald
147
3

Parallel php8.3-fpm live and test environments
Installing and connecting to Postgres DB
Passing environment variables via dotenv or fastcgi_params

Sample code: https://github.com/toggenation/cakeph...

00:00 Intro
00:57 Enabling password-less sudo for a user
01:50 Displaying the IP address of the VM
03:40 Generate a SSH key on Windows 11 and configuring VM for public key access
07:06 Installing PHP and necessary extensions, nginx, Postgresql
08:45 Changing the password of the postgres user to allow login
09:20 Connecting pgAdmin via SSH tunnel and logging into postgresql
10:27 Creating postgres roles and databases
13:05 Installing composer
14:20 Create live and test directories to hold CakePHP 5.x.
17:40 Installing a nginx configuration for /live /test
20:45 Creating a parallel php8.3-fpm installation
28:30 Configuration of database connections using Postgres::class
34:30 Enabling dotenv configuration in test environment
35:36 Passing environment variables to live environment using fastcgi_param's instead of dotenv
42:00 Create a simple one-action controller and template to display APP_NAME env var


Watch video CakePHP 5 - Install Live and Development Environments on Ubuntu 24.04 VM online without registration, duration hours minute second in high quality. This video was added by user James McDonald 19 June 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 147 once and liked it 3 people.