Uploaded May 2024 | Updated November 2026, 5 hours ago
#PHPSandBox #SelfHosted #Linux
Full steps can be found at i12bretro.github.io/tutorials/0465.html
--------------------------------------------------------------------
What is PHPSandbox?
--------------------------------------------------------------------
A PHP-based sandboxing library with a full suite of configuration and validation options. - github.com/Corveda/PHPSandbox
01. Log into the Debian device
02. Run the following commands in a terminal:
# update repositories
sudo apt update
# install any available software updates
sudo apt upgrade -y
# install some dependencies
sudo apt install git composer apt-transport-https ca-certificates curl gnupg-agent software-properties-common -y
# install Apache HTTPD and PHP components
sudo apt install apache2 php7.3 libapache2-mod-php7.3 php-imagick php-gnupg php7.3-common php7.3-mysql php7.3-fpm php7.3-ldap php7.3-gd php7.3-imap php7.3-json php7.3-curl php7.3-zip php7.3-xml php7.3-mbstring php7.3-bz2 php7.3-intl php7.3-gmp php7.3-xsl -y
# change directory
cd /var/www
# clone php sandbox from github
sudo git clone github.com/Corveda/PHPSandbox.git
# rename PHPSandbox to phpsandbox
sudo mv ./PHPSandbox ./phpsandbox
# set the owner of the phpsandbox directory to www-data
sudo chown -R www-data:www-data /var/www/phpsandbox
# setup composer working directory
sudo mkdir /var/www/.composer
sudo chown -R www-data:www-data /var/www/.composer
# change directory
cd phpsandbox
# install dependencies with composer
sudo -u www-data composer install
# create and edit phpsandbox.conf
sudo nano /etc/apache2/sites-available/phpsandbox.conf
03. Paste the following into phpsandbox.conf
Alias /phpsandbox "/var/www/phpsandbox/toolkit/"
≪directory /var/www/phpsandbox/toolkit/≫
Options +FollowSymlinks
AllowOverride All
Require all granted
≪/directory≫
04. Press CTRL+O, Enter, CTRL+X to write the changes to phpsandbox.conf
05. Continue with the following commands
# enable the phpsandbox site
sudo a2ensite phpsandbox
# restart apache2
sudo systemctl restart apache2
06. Open a web browser and navigate to http://DNSorIP/phpsandbox
07. Welcome to your very own self-hosted PHP Sandbox
### Connect with me and others ###
★ Discord: discord.com/invite/EzenvmSHW8
★ Reddit: reddit.com/r/i12bretro
★ Twitter: twitter.com/i12bretro
#PHPSandBox #SelfHosted #Linux
Full steps can be found at i12bretro.github.io/tutorials/0465.html
--------------------------------------------------------------------
What is PHPSandbox?
--------------------------------------------------------------------
A PHP-based sandboxing library with a full suite of configuration and validation options. - github.com/Corveda/PHPSandbox
01. Log into the Debian device
02. Run the following commands in a terminal:
# update repositories
sudo apt update
# install any available software updates
sudo apt upgrade -y
# install some dependencies
sudo apt install git composer apt-transport-https ca-certificates curl gnupg-agent software-properties-common -y
# install Apache HTTPD and PHP components
sudo apt install apache2 php7.3 libapache2-mod-php7.3 php-imagick php-gnupg php7.3-common php7.3-mysql php7.3-fpm php7.3-ldap php7.3-gd php7.3-imap php7.3-json php7.3-curl php7.3-zip php7.3-xml php7.3-mbstring php7.3-bz2 php7.3-intl php7.3-gmp php7.3-xsl -y
# change directory
cd /var/www
# clone php sandbox from github
sudo git clone github.com/Corveda/PHPSandbox.git
# rename PHPSandbox to phpsandbox
sudo mv ./PHPSandbox ./phpsandbox
# set the owner of the phpsandbox directory to www-data
sudo chown -R www-data:www-data /var/www/phpsandbox
# setup composer working directory
sudo mkdir /var/www/.composer
sudo chown -R www-data:www-data /var/www/.composer
# change directory
cd phpsandbox
# install dependencies with composer
sudo -u www-data composer install
# create and edit phpsandbox.conf
sudo nano /etc/apache2/sites-available/phpsandbox.conf
03. Paste the following into phpsandbox.conf
Alias /phpsandbox "/var/www/phpsandbox/toolkit/"
≪directory /var/www/phpsandbox/toolkit/≫
Options +FollowSymlinks
AllowOverride All
Require all granted
≪/directory≫
04. Press CTRL+O, Enter, CTRL+X to write the changes to phpsandbox.conf
05. Continue with the following commands
# enable the phpsandbox site
sudo a2ensite phpsandbox
# restart apache2
sudo systemctl restart apache2
06. Open a web browser and navigate to http://DNSorIP/phpsandbox
07. Welcome to your very own self-hosted PHP Sandbox
### Connect with me and others ###
★ Discord: discord.com/invite/EzenvmSHW8
★ Reddit: reddit.com/r/i12bretro
★ Twitter: twitter.com/i12bretro




![Run MyBB - Open Source Forum Software - in Docker
#MyBB #Forum #Docker
*** Updated 05/24/2024
Full steps can be found at https://i12bretro.github.io/tutorials/0932.html
What is MyBB?
MyBB is the free and open source forum software powering thousands of engaging, vibrant, and unique communities across the internet. - https://mybb.com/
Installing Docker
01. Log into the Linux host and run the following commands in a terminal window
# install prerequisites
sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y
# add docker gpg key
curl -fsSL https://download.docker.com/linux/$(awk -F= /^ID=/{ print $NF } /etc/os-release)/gpg | sudo apt-key add -
# add docker software repository
sudo add-apt-repository deb [arch=$(dpkg print-architecture)] https://download.docker.com/linux/$(awk -F= /^ID=/{ print $NF } /etc/os-release) $(lsb_release -cs) stable
# install docker
sudo apt install docker-ce docker-compose containerd.io -y
# enable and start docker service
sudo systemctl enable docker && sudo systemctl start docker
# add the current user to the docker group
sudo usermod -aG docker $USER
# reauthenticate for the new group membership to take effect
su - $USER
Running MyBB Container
01. Continue with the following commands in a terminal window
# create working directories
mkdir ~/docker/mybb -p && mkdir ~/docker/postgresql -p && mkdir ~/docker/nginx -p
# set owner of docker directory
sudo chown $USER:$USER ~/docker -R
# allow the container to write to working directories
sudo chmod a+rwx -R ~/docker/mybb
# download the nginx conf file
wget -O ~/docker/nginx/default.conf https://gist.githubusercontent.com/kawaii/ed2fbbf11309b8f635a623fa87abce8d/raw/3a5a6e36b238e55aaef519693ca16c82fbafd2fd/default.conf
# create containers network
docker network create containers
# run the postgesql container
docker run -d name postgres network containers -p 5432:5432 -e POSTGRES_USER=mybb_rw -e POSTGRES_PASSWORD=My44_rw$ -e POSTGRES_DB=mybb -v ~/docker/postgresql:/var/lib/postgresql/data restart=unless-stopped postgres:latest
# run the mybb container
docker run -d name mybb -v ~/docker/mybb:/var/www/html:rw network containers restart=unless-stopped mybb/mybb
# run nginx webserver container
docker run -d name nginx network containers -p 8081:80 -v ~/docker/mybb:/var/www/html:ro -v ~/docker/nginx:/etc/nginx/conf.d:ro restart=unless-stopped nginx
02. Open a web browser and navigate to http://DNSorIP:8081
03. Click Next at the Welcome screen
04. Click Next at the License Agreement
05. Click Next at the Requirements Check
06. Complete the Database Configuration as shown below
Database Engine: PostgreSQL
Database Server Hostname: postgres
Database Username: mybb_rw
Database Password: My44_rw$
Database Name: mybb
Table Prefix: mybb_
07. Click Next after the table creation completes
08. Click Next to complete the Table Population
09. Click Next at the Theme Insertion screen
10. Modify the Board Configuration form as needed ≫ Click Next
11. Create an administrator account by entering a Username, Password and Email Address ≫ Click Next
12. Click the Admin Control Panel link
13. Login with the administrator username and password created earlier
14. Welcome to MyBB
Documentation: https://github.com/mybb/docker
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Run MyBB - Open Source Forum Software - in Docker](https://i.ytimg.com/vi/cBrApDiqw3o/mqdefault.jpg)


![Run VSCodium Containerized in Docker
#VSCodium #Linux #Docker
Full steps can be found at https://i12bretro.github.io/tutorials/0985.html
What is VSCodium?
VSCodium is a clone of Microsoft’s Visual Studio Code. The project’s sole aim is to provide you with ready to use binaries without Microsoft’s telemetry and tracking code. - https://vscodium.com/
Installing Docker
01. Log into the Linux Docker host and run the following commands in a terminal window
# install prerequisites
sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y
# add docker gpg key
curl -fsSL https://download.docker.com/linux/$(awk -F= /^ID=/{ print $NF } /etc/os-release)/gpg | sudo apt-key add -
# add docker software repository
sudo add-apt-repository deb [arch=$(dpkg print-architecture)] https://download.docker.com/linux/$(awk -F= /^ID=/{ print $NF } /etc/os-release) $(lsb_release -cs) stable
# install docker
sudo apt install docker-ce docker-compose containerd.io -y
# enable and start docker service
sudo systemctl enable docker && sudo systemctl start docker
# add the current user to the docker group
sudo usermod -aG docker $USER
# reauthenticate for the new group membership to take effect
su - $USER
Running VSCodium
01. Continue with the following commands in a terminal window
# list current uid and gid, note these for later
id $user
# create working directories
mkdir ~/docker/vscodium/{config,code} -p
# run the vscodium docker image
# replace PUID, GUID with the output of the id $user command above
docker run -d name=vscodium cap-add=IPC_LOCK -e PUID=1000 -e PGID=1000 -e TZ=America/New_York -p 8003:3000 -v ~/docker/vscodium/config:/config -v ~/docker/vscodium/code:/code shm-size=1gb restart unless-stopped lscr.io/linuxserver/vscodium:latest
02. Open a web browser and navigate to http://localhost:8003
03. Welcome to VSCodium
Source: https://hub.docker.com/r/linuxserver/vscodium
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Run VSCodium Containerized in Docker](https://i.ytimg.com/vi/dJgh13kYmoI/mqdefault.jpg)


