modificación instrucciones readme
This commit is contained in:
parent
1a0b3d10a0
commit
bdb8b4bc91
22
README.md
22
README.md
@ -45,14 +45,20 @@ export forma_db='{
|
|||||||
#/////////////////////////////////////
|
#/////////////////////////////////////
|
||||||
```
|
```
|
||||||
|
|
||||||
## Movemos el archivo de configuración a Apache (solo se hace 1 vez)
|
## Movemos el archivo de configuración a Apache y los habilitamos (solo se hace 1 vez)
|
||||||
### SI TE DA ERROR PRIMERO DESACTIVA APACHE EL PROBLEMA ES LAS VARIABLES DE ENTORNO
|
```bash
|
||||||
|
sudo mv formha_com_mx.conf /etc/apache2/sites-available/
|
||||||
|
sudo mv formha_mx.conf /etc/apache2/sites-available/
|
||||||
|
cd /etc/apache2/sites-available/
|
||||||
|
sudo a2ensite formha_com_mx.conf
|
||||||
|
sudo a2ensite formha_mx.conf
|
||||||
|
```
|
||||||
|
|
||||||
|
## SI TE DA ERROR PRIMERO DESACTIVA APACHE EL PROBLEMA ES LAS VARIABLES DE ENTORNO
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo systemctl stop apache2
|
sudo systemctl stop apache2
|
||||||
sudo mv formha.conf /etc/apache2/sites-available/
|
# vulve a intentar habilitar los archivos de configuración de formha (.conf)
|
||||||
cd /etc/apache2/sites-available/
|
|
||||||
sudo a2ensite formha.conf
|
|
||||||
```
|
```
|
||||||
## Reiniciar apache
|
## Reiniciar apache
|
||||||
```bash
|
```bash
|
||||||
@ -60,21 +66,21 @@ sudo systemctl reload apache2
|
|||||||
sudo systemctl restart apache2
|
sudo systemctl restart apache2
|
||||||
```
|
```
|
||||||
# IMPORTANTE
|
# IMPORTANTE
|
||||||
- Debes de dar permisos a la ruta de archivos UPLOAD (solo se ejecuta una vez)
|
## Debes de dar permisos a la ruta de archivos UPLOAD (solo se ejecuta una vez)
|
||||||
```bash
|
```bash
|
||||||
|
sudo chown -R dix:dix /var/www/formha
|
||||||
sudo chown -R www-data:www-data /var/www/formha/static/uploads
|
sudo chown -R www-data:www-data /var/www/formha/static/uploads
|
||||||
sudo chmod -R 755 /var/www/formha/static/uploads
|
sudo chmod -R 755 /var/www/formha/static/uploads
|
||||||
```
|
```
|
||||||
|
|
||||||
# PERMISOS DEL CACHE
|
# PERMISOS DEL CACHE
|
||||||
Reemplaza www-data por el usuario de Flask/Apache
|
Reemplaza **www-data** por el **usuario** de Flask/Apache
|
||||||
```bash
|
```bash
|
||||||
sudo mkdir -p /var/www/formha/cache
|
sudo mkdir -p /var/www/formha/cache
|
||||||
sudo chown -R www-data:www-data /var/www/formha/cache
|
sudo chown -R www-data:www-data /var/www/formha/cache
|
||||||
sudo chmod 700 /var/www/formha/cache
|
sudo chmod 700 /var/www/formha/cache
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
# BACKUP DB FORMHA
|
# BACKUP DB FORMHA
|
||||||
```psql
|
```psql
|
||||||
n_file="db_formha_backup_$(date +"%d_%m_%Y-%H_%M_%S").sql"
|
n_file="db_formha_backup_$(date +"%d_%m_%Y-%H_%M_%S").sql"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user