Skip to content

Instantly share code, notes, and snippets.

@developerck
developerck / pulling up docker image from aws ecr repo.md
Last active January 11, 2024 16:58
pulling up docker image from aws ecr repo

aws configure set aws_access_key_id ""

aws configure set aws_secret_access_key ""

eval $(aws ecr get-login --no-include-email --region <region | us-east-1> | sed 's;https://;;g')

docker pull

@developerck
developerck / general apache2 conf for moodle lms according to ec2 size.md
Created January 11, 2024 17:02
general apache2 conf for moodle lms according to ec2 size

2x large

<IfModule mpm_prefork_module>
  StartServers    10
  MinSpareServers 10
  MaxSpareServers 30
  ServerLimit             600
  MaxRequestWorkers       600

MaxConnectionsPerChild 5000

@developerck
developerck / MOODLE 4 env on ubuntu .md
Last active January 11, 2024 17:10
MOODLE 4 env setup on ubuntu

apache and php

apt update
apt-get install software-properties-common
add-apt-repository ppa:ondrej/php
apt update

sudo apt install apache2 mysql-client mariadb-server php8.2 php8.2-fpm

sudo apt install graphviz aspell ghostscript clamav php8.2-pspell php8.2-curl php8.2-gd php8.2-intl php8.2-mysql php8.2-xml php8.2-xmlrpc php8.2-ldap php8.2-zip php8.2-soap php8.2-mbstring

FROM ubuntu:20.04
LABEL copyright=devck
LABEL by=developerck@gmail.com
LABEL env=lms-moodle4
ENV TZ=UTC
## ubunutu env setup ##
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && apt update -y && apt install -y \
sudo \
apache2 \
wget \
@developerck
developerck / LAMP env for moodle
Created January 12, 2024 02:58
PHP + Apache + MYSQL + phpmyadmin env for Moodle
# for localhost runing the lms /mysql / phpmyadmin
# lms is exposed at 80 url http://localhost
# phpmyadmin is exposed at 8009 http://localhost:8009
# login in phpyadmin
# host : mysql
# username : root
# password : root
# code can be directly edited without build
# commands
# to run
@developerck
developerck / xdebug3_ docker_vscode_conf.md
Created January 12, 2024 03:05
xdebug3_ docker_vscode_conf.md
xdebug setup 7.4
    pecl install xdebug-3.1.6
    docker-php-ext-enable xdebug
add in xdebug.ini file
  [xdebug]
  xdebug.mode=develop,debug
  xdebug.client_port = 9095 ## any port number which is exposed
  xdebug.discover_client_host = 1

xdebug.idekey = VSCODE