Skip to content

Commit

Permalink
aguia-pescadora-bravo (#16), php (#7), mongo (#48), dreamfactory (#52)…
Browse files Browse the repository at this point in the history
…: instalado extensão de PHP (compilada, PECL) para satisfazer requerimentos de Dream Factory
  • Loading branch information
fititnt committed May 31, 2019
1 parent 5d5af04 commit d9893e4
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions logbook/aguia-pescadora-bravo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,8 @@ sudo ln -s /etc/nginx/sites-available/dreamfactory.apb.etica.ai.conf /etc/nginx/
sudo nginx -t
sudo systemctl reload nginx

sudo certbot --nginx -d dreamfactory.apb.etica.ai

# Cria uma página de teste (use para testar o PHP)
echo "dreamfactory <br>Servidor comunitario: http://aguia-pescadora-bravo.etica.ai <br>Arquivo: /home2/dreamfactory/web/dreamfactory/index.php <br><?php phpinfo(); ?>" | sudo -u dreamfactory tee /home2/dreamfactory/web/dreamfactory/index.php

Expand Down Expand Up @@ -570,20 +572,23 @@ cd /home2/dreamfactory/
## Seguimos agora o passo a passo da wiki oficial
# @see http://wiki.dreamfactory.com/DreamFactory/Installation



# sudo apt install php-mongodb (Instala php-mongo 1.3.4, porém o dreamfactory requer ext-mongodb ^1.5.0)
# Precisamos instalar versão de PECL
sudo apt install php-dev php-pear
sudo pecl install mongodb
sudo sh -c 'echo "extension=mongodb.so" > /etc/php/7.2/mods-available/mongodb.ini'
sudo phpenmod mongodb

git clone https://github.com/dreamfactorysoftware/dreamfactory.git /home2/dreamfactory/web/dreamfactory/
cd /home2/dreamfactory/web/dreamfactory/

## Nota: vamos criar

sudo -u dreamfactory composer install --no-dev

# php-mongodb

sudo certbot --nginx -d dreamfactory.apb.etica.ai

composer install --no-dev

## Preparar banco de dados em Elefante Borneu
# mysql -u root -p
# CREATE DATABASE dreamfactory;
# GRANT ALL PRIVILEGES ON dreamfactory.* to 'dreamfactoryadmin'@'localhost' IDENTIFIED BY 'YOUR_PASSWORD_HERE';
# FLUSH PRIVILEGES;
# quit

## Atalhos úteis nesta conta

Expand Down

0 comments on commit d9893e4

Please sign in to comment.