find php.ini file in linux
by this command :php -i | grep "Loaded Configuration File"
Masoud Hosseini
by this command :php -i | grep "Loaded Configuration File"
find your local ip and paste into command below instead of 192.168.1.0sudo ufw allow from 192.168.1.0/24 to any port 8000 proto tcp
https://www.cloudbooklet.com/how-to-install-mongodb-on-ubuntu-22-04/
Docker file sections FROM WORKDIR COPY ADD RUN ENV EXPOSE USER CMD ENTRYPOIN FROM It specifies a base image and can be a bunch of files and directories, and we…
install docker : apt install docker.io install docker-compose : DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker} mkdir -p $DOCKER_CONFIG/cli-plugins curl -SL https://github.com/docker/compose/releases/download/v2.17.2/docker-compose-linux-x86_64 -o $DOCKER_CONFIG/cli-plugins/docker-compose chmod +x $DOCKER_CONFIG/cli-plugins/docker-compose docker compose version install GitLab self-hosted: https://github.com/sameersbn/docker-gitlab wget https://raw.githubusercontent.com/sameersbn/docker-gitlab/master/docker-compose.yml…
To compress a file or folder into a tar.gz archive in Ubuntu, you can use the following command in the terminal: tar -czvf archive-name.tar.gz file-or-folder-name For example, to compress a…
wget https://raw.githubusercontent.com/sameersbn/docker-gitlab/master/docker-compose.yml refrence : https://github.com/sameersbn/docker-gitlab#quick-start
https://docs.portainer.io/start/install-ce/server/docker/linux docker volume create portainer_data docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest https://localhost:9443 usefull link: https://portal.portainer.io/knowledge/client-sent-an-http-request-to-an-https-server
1 . create a shell file and store it wherever you want (it's recommended to store it on /home/<user>) #!/bin/bash # Set variables DATE=$(date +"%Y-%m-%d") SRC_DIR="/" DEST_HOST="remote_host" DEST_USER="remote_user" DEST_DIR="/path/to/backup/directory" #…
delete all containers : docker rm -f $(docker ps -a -q) delete all volumes : docker volume rm $(docker volume ls -q) ---to delete images : -- docker image rm…