Included are the steps for macOS and Ubuntu/Debian. I didn't do Windows because I don't have or use Windows. 😕
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find -type d -exec chmod 775 {} \; | |
find -type f -exec chmod 664 {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Docker | |
curl -sSL https://get.docker.com/ | CHANNEL=stable sh | |
# After the installation process is finished, you may need to enable the service and make sure it is started (e.g. CentOS 7) | |
systemctl enable docker.service | |
systemctl start docker.service | |
#Docker Composer | |
curl -L https://github.com/docker/compose/releases/download/$(curl -Ls https://www.servercow.de/docker-compose/latest.php)/docker-compose-$(uname -s)-$(uname -m) > /usr/local/bin/docker-compose | |
chmod +x /usr/local/bin/docker-compose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt update && apt install php7.4-fpm php7.4-xml php7.4-bz2 php7.4-zip php7.4-mysql php7.4-intl php7.4-gd php7.4-curl php7.4-soap php7.4-mbstring php7.4-bcmath -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget https://github.com/mautic/mautic/raw/staging/upgrade.php | |
php7.2 upgrade.php | |
php7.2 app/console doctrine:migration:status | |
php7.2 app/console doctrine:migration:migrate | |
php7.2 app/console doctrine:schema:update --dump-sql | |
php7.2 app/console doctrine:schema:update --force | |
#rm -rf app/cache | |
php7.2 app/console cache:clear |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
users: | |
- name: cloudrocket | |
groups: sudo | |
shell: /bin/bash | |
sudo: ['ALL=(ALL) NOPASSWD:ALL'] | |
ssh-authorized-keys: | |
- YOUR_PUB_KEY | |
- name: root |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Comandos para instalação do Docker | |
curl -sSL https://get.docker.com/ | CHANNEL=stable sh | |
systemctl enable docker.service | |
systemctl start docker.service | |
#Comandos para instalação do Docker Composer | |
curl -L https://github.com/docker/compose/releases/download/$(curl -Ls https://www.servercow.de/docker-compose/latest.php)/docker-compose-$(uname -s)-$(uname -m) > /usr/local/bin/docker-compose | |
chmod +x /usr/local/bin/docker-compose | |
#Comandos para instalação do Portainer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# This script configures WordPress file permissions based on recommendations | |
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
# | |
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org> | |
# | |
WP_OWNER=www-data # <-- wordpress owner | |
WP_GROUP=www-data # <-- wordpress group | |
WP_ROOT=$1 # <-- wordpress root directory |