From d9893e44bffeb52ffafa6515f1cc8bb30b3eff48 Mon Sep 17 00:00:00 2001 From: Emerson Rocha Luiz Date: Thu, 30 May 2019 22:54:28 -0300 Subject: [PATCH] =?UTF-8?q?aguia-pescadora-bravo=20(#16),=20php=20(#7),=20?= =?UTF-8?q?mongo=20(#48),=20dreamfactory=20(#52):=20instalado=20extens?= =?UTF-8?q?=C3=A3o=20de=20PHP=20(compilada,=20PECL)=20para=20satisfazer=20?= =?UTF-8?q?requerimentos=20de=20Dream=20Factory?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logbook/aguia-pescadora-bravo.sh | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/logbook/aguia-pescadora-bravo.sh b/logbook/aguia-pescadora-bravo.sh index 300747a..982fdba 100644 --- a/logbook/aguia-pescadora-bravo.sh +++ b/logbook/aguia-pescadora-bravo.sh @@ -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
Servidor comunitario: http://aguia-pescadora-bravo.etica.ai
Arquivo: /home2/dreamfactory/web/dreamfactory/index.php
" | sudo -u dreamfactory tee /home2/dreamfactory/web/dreamfactory/index.php @@ -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