Road trip equipment

Written by pmd - - no comments

Road trip around France.

The car is a Citroën C4 Picasso:

It is planned to take all these during the trip:

  • 1 matelas 140x190x8
  • 1 couettes une personne + 1 duvet + 1 traversin
  • 1 bouteille de gaz Primagaz Twiny 6kg
  • 1 détendeur Clip-On bleu lagon (Un détendeur est fourni avec la première Twiny achetée. Source)
  • 1 tuyau de raccord gaz 1.5m
  • 1 réchaud gaz Base Camp Lid
  • 1 carton dans lequel placer le réchaud pour couper le vent
  • 1 poêle + 1 casserole + 1 couvercle
  • 1 planche à découper
  • 1 cuillère en bois
  • 2 torchons
  • 2 tupperwares
  • 2 sets de couverts (assiette + fourchette + couteau + cuillère)
  • 2 tasses
  • 1 éponge
  • 1 paic citron
  • 2 jerricans eau 10L
  • bac de manutention l.45 x P.35 x H.26.6 cm
  • dalles d'agencement 100 x 60 x 1.8 cm
  • 2 tréteaux
  • 1 poutre
  • 1 speaker bluetooth
  • 1 chargeur USB / emetteur FM alimenté allume cigare
  • 2 batterie portable 10000mAh
  • 1 routeur 4G
  • 1 savon de Marseille

One application has been used to find places to sleep : https://park4night.com/

An improvement that could be useful is to design a parcel shelf (plage-arrière) in wood in order to put the gaz cooker on it and be able to cook at the back of the car during rainy days. We thankfully didn't get any rainy days except the very first one of the trip.
It could be nice to take two folding chairs to sit anywhere you stop. But I don't know where to store it while sleeping...

Pizza/Tarte à la tomate

Written by pmd - - no comments

Prepare a pizza base

 Recipe pour 3 pâtes fines:

  • Farine : 500g
    • Farine : 100 g = 200 ml
  • 1 sachet de levure de boulangerie express
    • 1 sachet de levure = 3 cuillères à café
  • 1 cuillère à café de sel
  • 250mL d'eau tiède
  • 1 cuillère à café de sucre
  1. Verser la levure, le sel et le sucre dans un verre doseur. Ajouter 1/4 de litre d'eau tiède, bien mélanger. Couvrir d'un film plastique et laisser reposer environ 10 minutes (jusqu'à l'apparition d'une mousse brune bien épaisse en surface).
  2. Verser la farine dans un grand saladier et y faire un puits.
  3. Verser le mélange du verre doseur dans le saladier, mélanger à la main. Puis quand la pâte n'est plus collante pétrir environ 5 minutes à la main sur une surface farinée.Arroser d'un peu d'huile d'olive, puis pétrir à nouveau environ 5 minutes.
  4. Laisser reposer au moins 1 h sous un linge humide dans un endroit tiède (à côté d'un radiateur, d'une cheminée ou d'un poêle en hiver).
  5. Après repos, pétrir quelques instants puis diviser la pâte en trois boules égales (on peut en congeler).
    Etaler la pâte sur une surface farinée.

Make the pizza

  1. Switch on the oven at 180°C.
  2. Spread mustard everywhere on the base.
  3. Slice tomatoes and put it on the base.
  4. Mix an egg with tomato paste and pour it on the tomatoes.
  5. Disperse herbs and pepper on the tomatoes.
  6. Grate cheese (Emmental) and disperse it.
  7. Add sliced peperoni/salami.
  8. Put the pizza in the oven for 20min.

If you compare with Insanity MAX:30 nutrition plan:

  • 1 veggie (tomato) + 1 protein (egg + pepperoni) + 2 carbs (base) + 2 healthy fat (cheese) + 2 oil & nuts

Classified in : Food - Tags : none

Звери - Районы-кварталы

Written by pmd - - no comments

Районы-кварталы, аккорды @ amdm.ru
Звери - Районы-кварталы (песня под гитару)

Am  X  0  2  2  1  0
Dm  X  X  0  2  3  1
E   0  2  2  1  0  0
F   1  3  3  2  1  1

ms

 Am         Dm           E          Am
Больше нечего ловить - все, что надо я поймал,
 Am        Dm         E            Am
Надо сразу уходить, чтоб никто не привыкал.
 Am       Dm        E          Am
Ярко-желтые очки, два сердечка на брелке,
 F       Dm          E      E   
Развеселые зрачки, твое имя на руке.

Припев:
  Am         Dm      E     Am    
Районы, кварталы, жилые массивы, 
F     Dm     E     Am             
Я ухожу, ухожу красиво.           
  Am         Dm      E     Am    
Районы, кварталы, жилые массивы, 
F     Dm     E     Am             
Я ухожу, ухожу красиво.           

 Am         Dm           E          Am
У тебя все будет класс, будут ближе облака,
 Am         Dm           E          Am
Я хочу как в первый раз и поэтому пока.
 Am         Dm           E          Am
Ярко-желтые очки, два сердечка на брелке,
 F       Dm          E      E
Развеселые зрачки, я шагаю налегке.

Припев:
  Am         Dm      E     Am    
Районы, кварталы, жилые массивы, 
F     Dm     E     Am             
Я ухожу, ухожу красиво.           
  Am         Dm      E     Am    
Районы, кварталы, жилые массивы, 
F     Dm     E     Am             
Я ухожу, ухожу красиво.           

 Am         Dm           E          Am
Вот и все никто не ждет и никто не в дураках,
 Am         Dm           E          Am
Кто-то любит, кто-то врет и летает в облаках.
 Am         Dm           E          Am
Ярко-желтые очки, два сердечка на брелке,
 F       Dm          E      E
Развеселые зрачки, я шагаю налегке.

Припев:
  Am         Dm      E     Am    
Районы, кварталы, жилые массивы, 
F     Dm     E     Am             
Я ухожу, ухожу красиво.           
  Am         Dm      E     Am    
Районы, кварталы, жилые массивы, 
F     Dm     E     Am             
Я ухожу, ухожу красиво.           
  Am         Dm      E     Am    
Районы, кварталы, жилые массивы, 
F     Dm     E     Am             
Я ухожу, ухожу красиво.           
  Am         Dm      E     Am    
Районы, кварталы, жилые массивы, 
F     Dm     E     Am             
Я ухожу, ухожу красиво.    

Daft Punk - Get Lucky

Written by pmd - - no comments

Capo 2
Am  0  0  2  2  1  0
C   0  3  2  0  1  0
Em  0  2  2  0  0  0
D   0  0  0  2  3  2

ms

Like the legend of the phoenix, huh
All ends with beginnings
What keeps the planets spinning, uh huh
The force from the beginning, huh, look

We've come too far
To give up who we are
So let's raise the bar
And our cups to the stars

She's up all night 'til the sun
I'm up all night to get some
She's up all night for good fun
I'm up all night to get lucky

We're up all night 'til the sun
We're up all night to get some
We're up all night for good fun
We're up all night to get lucky

We're up all night to get lucky
We're up all night to get lucky
We're up all night to get lucky
We're up all night to get lucky

The present has no ribbon
Your gift keeps on giving
What is this I'm feeling?
If you want to leave, I'm with it, uh huh

We've come too far
To give up who we are
So let's raise the bar
And our cups to the stars

She's up all night 'til the sun
I'm up all night to get some
She's up all night for good fun
I'm up all night to get lucky

We're up all night 'til the sun
We're up all night to get some
We're up all night for good fun
We're up all night to get lucky

We're up all night to get lucky
We're up all night to get lucky
We're up all night to get lucky
We're up all night to get lucky

We're up all night to get
We're up all night to get
We're up all night to get
We're up all night to get

We're up all night to get
We're up all night to get
We're up all night to get
We're up all night to get

We're up all night to get together
We're up all night to get (Oh, we might get funked again)
We're up all night to get lucky
We're up all night to get lucky

We're up all night to get lucky
We're up all night to get lucky
We're up all night to get lucky
We're up all night to get lucky

We're up all night to get lucky
We're up all night to get lucky
We're up all night to get lucky
We're up all night to get lucky

(We're up all night to get lucky) We've come too far
(We're up all night to get lucky) To give up
(We're up all night to get lucky) Who we are
(We're up all night to get lucky) So let's
(We're up all night to get lucky) Raise the bar
(We're up all night to get lucky) And our cups
(We're up all night to get lucky) To the stars
(We're up all night to get lucky)

She's up all night 'til the sun
I'm up all night to get some
She's up all night for good fun
I'm up all night to get lucky

We're up all night 'til the sun
We're up all night to get some
We're up all night for good fun
We're up all night to get lucky

We're up all night to get lucky
We're up all night to get lucky
We're up all night to get lucky
We're up all night to get lucky

We're up all night to get lucky
We're up all night to get lucky
We're up all night to get lucky
We're up all night to get lucky

Manu Chao - Me gustas tu

Written by pmd - - no comments

All song:

Bm  7  9  9  7  7  7
A   5  7  7  6  5  5
Em  X  7  9  9  8  7
 e|---------|
 B|---------|
 G|---------|
 D|---------|
 A|-7-------|
 E|---7-9-8-|

ms

Spoken:
Te lo dije muy clarito
12 de la noche en La Habana, Cuba
11 de la noche en San Salvador, El Salvador
11 de la noche en Managua, Nicaragua

Me gustan los aviones, me gustas tú,
me gusta viajar, me gustas tú,
me gusta la mañana, me gustas tú,
me gusta el viento, me gustas tú,
me gusta soñar, me gustas tú,
me gusta la mar, me gustas tú,

Qué voy a hacer, je ne sais pas
qué voy a hacer, je ne sais plus,
qué voy a hacer, je suis perdu
¿qué horas son mi corazón?,

Me gusta la moto, me gustas tú,
me gusta correr, me gustas tú,
me gusta la lluvia, me gustas tú,
me gusta volver, me gustas tú,
me gusta marihuana, me gustas tú,
me gusta colombiana, me gustas tú,
me gusta la montaña, me gustas tú,
me gusta la noche (me gustas tú).

Qué voy a hacer, je ne sais pas
qué voy a hacer, je ne sais plus,
qué voy a hacer, je suis perdu
¿qué horas son mi corazón?,

Spoken: Doce, un minuto

Me gusta la cena, me gustas tú,
me gusta la vecina, me gustas tú,
(Spoken: Radio reloj: una de la mañana)
me gusta su cocina, me gustas tú,
me gusta camelar, me gustas tú,
me gusta la guitarra, me gustas tú,
me gusta el reggae, me gustas tú,

Qué voy a hacer, je ne sais pas
qué voy a hacer, je ne sais plus,
qué voy a hacer, je suis perdu
¿qué horas son mi corazón?,

Me gusta la canela, me gustas tú,
me gusta el fuego, me gustas tú,
me gusta menear, me gustas tú,
me gusta La Coruña, me gustas tú,
me gusta Malasaña, me gustas tú,
me gusta la castaña, me gustas tú,
me gusta Guatemala, me gustas tú.

Qué voy a hacer, je ne sais pas
qué voy a hacer, je ne sais plus,
qué voy a hacer, je suis perdu
¿qué hora son mi corazón?

(qué voy a hacer, je ne sais plus,
qué voy a hacer, je ne sais plus,
qué voy a hacer, je suis perdu),
¿qué hora son mi corazón...?
(qué voy a hacer, je ne sais plus,
qué voy a hacer, je ne sais plus,
qué voy a hacer, je suis perdu),
¿qué hora son mi corazón...?
¿qué hora son mi corazón...?
(¿qué hora son mi corazón...?)

¿qué hora son mi corazón...?
¿qué hora son mi corazón...?
¿qué hora son mi corazón...?

Spoken:
4 de la mañana

Alabim alabam alabim bom bam
alabim alabam alabim bom bam
obladi, oblada obladi da da
alabim alabam alabim bom bam

Spoken:
Radio reloj: 5 de la mañana.
No todo lo que es oro brilla; remedio chino e infalible...

Classified in : Guitare - Tags : none

Shakira - Chantaje

Written by pmd - - no comments

C#m  X  4  6  6  5  4
G#m  4  6  6  4  4  4
B    X  2  4  4  4  2

ms

[INTRO]
C#m C#m G#m B C#m C#m G#m B

[Verse 1: Maluma]
C#m
Cuando estás bien te alejas de mí
C#m
Te sientes sola y siempre estoy ahí
G#m
Es una guerra de toma y dame
B
Pues dame de eso que tiene' ahí
C#m       
Oye baby, no sea' mala
C#m        
No me deje' con las ganas
G#m           
Se escucha en la calle
Que ya no me quieres
B
Ven y dímelo en la cara...!

[Pre-Chorus: Shakira & Maluma]
C#m
  Pregúntale a quien tú quieras
          C#m
Vida, te juro que eso no es así
G#m
  Yo nunca tuve una mala intención
B             
  Yo nunca quise burlarme de ti
C#m
  Conmigo ves, nunca se sabe
C#m                               
  Un día digo que no, y otro que sí
G#m
  Yo soy masoquista
B
  Con mi cuerpo un egoísta

[Coro: Dúo & Shakira & Maluma]
        C#m       
Tú eres puro, puro chantaje
C#m       
Puro, puro chantaje
G#m            
Siempre es a tu manera
B                   
Yo te quiero aunque no quiera
       C#m        
Tú eres puro, puro chantaje
C#m       
Puro, puro chantaje
G#m              
Vas libre como el aire
B                  
No soy de ti ni de nadie


[Verse 2: Maluma & Shakira]
C#m                             
Como tú me tientas, cuando tú te mueves
C#m
Esos movimientos sexys, siempre me entretienen
          G#m
Sabe' manipularme bien con tus caderas
   B
No sé porque me tienes en lista de espera
C#m
Te dicen por ahí que voy haciendo y deshaciendo
C#m
Que salgo cada noche, que te tengo ahí sufriendo
G#m
Que en esta relación, soy yo la que manda
B                              
No pares bola' a toda esa mala propaganda

[Puente: Shakira & Maluma]
C#m                       
Pa, pa' que te digo na', te comen el oído
C#m
No vaya' a enderezar lo que nació torcido
G#m                      
Y como un loco sigo tras de ti, muriendo por ti
B
Dime que hay pa' mi bebe
N.C
Qué!

[Pre-Coro: Shakira & Maluma]
C#m
Pregúntale a quien tú quieras
C#m                       
Vida, te juro que no es así
G#m
Yo nunca tuve una mala intención
B                         
Y nunca quise burlarme de ti
C#m
Conmigo ves, nunca se sabe
C#m
Un día digo que no, y otro que sí
G#m   
Yo soy masoquista
B
Con mi cuerpo un egoísta

[Coro: Dúo & Shakira & Maluma]
        C#m       
Tú eres puro, puro chantaje
C#m       
Puro, puro chantaje
G#m            
Siempre es a tu manera
B
Yo te quiero aunque no quiera
       C#m        
Tú eres puro, puro chantaje
C#m       
Puro, puro chantaje
G#m               
Vas libre cómo el aire

[Post-Coro: Shakira]                         
C#m
No soy de ti ni de nadie, eh-eh-eh
      C#m             G#m      
Nadie eh-eh-eh, nadie eh-eh-eh, nadie
B
Con mi cuerpo un egoísta


[Coro: Dúo & Shakira & Maluma]
        C#m       
Tú eres puro, puro chantaje
C#m       
Puro, puro chantaje
G#m           
Siempre es a tu manera
B
Yo te quiero aunque no quieras
        C#m       
Tú eres puro, puro chantaje
C#m       
Puro, puro chantaje
G#m              
Vas libre cómo el aire

[Post-Coro: Shakira]                         
                        C#m
No soy de ti ni de nadie (eh-eh-eh)
     C#m             G#m          B
Nadie eh-eh-eh, nadie eh-eh-eh, nadie eh-eh-eh

NTFS HDD plugged to Raspberry Pi 3

Written by pmd - - no comments

Choose where to mount the disk:

mkdir /home/pi/HDD

Partition is NTFS, so if we wanna write on it:

sudo apt-get install ntfs-3g

To know the UUID of the HDD:

sudo blkid

Edit how to mount disk partition:

sudo nano /etc/fstab

Add this line and save:

UUID=AADEEA03DEE9C7A1 /home/pi/HDD ntfs-3g uid=1000,gid=1000,auto,umask=000 0 0

Mount  all filesystems mentioned in fstab to be mounted as indicated :

sudo mount -a

 

Luis Fonsi - Despacito ft. Daddy Yankee

Written by pmd - - no comments


Bm  X  2  4  4  3  2
G   3  5  5  4  3  3
D   X  5  7  7  7  5
A   5  7  7  6  5  5

ms

[Intro]
Ay...
Fonsi
Oh oh...
Oh no, oh no...
Oh...
Yeah...
Dididiri Daddy
Go!

Bm                             G
Si, sabes que ya llevo rato mirándote
D                         A
Tengo que bailar contigo hoy(DY)
Bm                              G
Vi, que tu mirada ya estaba llamándome
D                          A
Muéstrame el camino que yo voy (oh)

[Verse 1]
Bm                              G
Tú, tú eres el imán y yo soy el metal
                                  D
Me voy acercando y voy armando el plan
                                A
Solo con pensarlo se acelera el pulso (oh yeah)
Bm                                   G
Ya, ya me está gustando más de lo normal
                                D
Todos mis sentidos van pidiendo más
                                 A
Esto hay que tomarlo sin ningún apuro

[Chorus]
     Bm
Despacito
                              G
Quiero respirar tu cuello despacito
                            D
Deja que te diga cosas al oído
                                    A
Para que te acuerdes si no estás conmigo
      Bm
Despacito
                               G
Quiero desnudarte a besos despacito
                               D
Firmo en las paredes de tu laberinto
                                  A
Y hacer de tu cuerpo todo un manuscrito
    A   
Sube sube sube, sube sube...

[Post-Chorus]
Bm
Quiero ver bailar tu pelo
              G
Quiero ser tu ritmo
                    D
Que le enseñes a mi boca
                 A
Tus lugares favoritos (favorito, favorito baby)
Bm                               G
Déjame sobrepasar tus zonas de peligro
                    D
Hasta provocar tus gritos
                    A
Y que olvides tu apellido

[Verse 2]
                        Bm
Si te pido un beso, ven dármelo
                   Bm  
Yo sé que estás pensándolo
                 G
Llevo tiempo intentándolo
                      G
Mami esto es dando y dándolo
              D
Sabes que tu corazón conmigo te hace bom bom
              A                            
Sabes que esa beba está buscando de mi bom bom
                 Bm
Ven prueba de mi boca para ver como te sabe
                   G
Quiero quiero, quiero ver cuanto amor a ti te cabe
             D
Yo no tengo prisa yo me quiero dar el viaje
           A
Empezamos lento, después salvaje

[Pre-Chorus]
            Bm
Pasito a pasito, suave suavecito
              G
Nos vamos pegando, poquito a poquito
              D
Cuando tú me besas, con esa destreza
              A          
Veo que eres malicia, con delicadeza
           Bm       
Pasito a pasito, suave suavecito
             G
Nos vamos pegando, poquito a poquito
              D
Y es que esa belleza, es un rompecabezas
            A
Pero pa' montarlo aquí tengo la pieza

[Chorus]
A     Bm
Despacito
                                G
Quiero respirar tu cuello despacito
                           D
Deja que te diga cosas al oído
                                    A
Para que te acuerdes si no estás conmigo
     Bm
Despacito
                               G
Quiero desnudarte a besos despacito
                                D
Firmo en las paredes de tu laberinto
                                   A
Y hacer de tu cuerpo todo un manuscrito
     A
Sube, sube, sube, sube, sube

[Post-Chorus]
Bm
Quiero ver bailar tu pelo
              G
Quiero ser tu ritmo
                    D
Que le enseñes a mi boca
                A
Tus lugares favoritos (favorito, favorito baby)
Bm                               G
Déjame sobrepasar tus zonas de peligro
                    D
Hasta provocar tus gritos
                     A
Y que olvides tu apellido

[Verse 3]
A    Bm
Despacito
                                     G
Vamo' hacerlo en una playa en Puerto Rico
                                 D
Hasta que las olas griten ‘ay bendito'
                                  A
Para que mis hechos se queden contigo

[Outro]
           Bm        
Pasito a pasito, suave suavecito
             G
Nos vamos pegando, poquito a poquito
                    D
Que le enseñes a mi boca
                A
Tus lugares favoritos (favorito, favorito baby)
           Bm
Pasito a pasito, suave suavecito
             G
Nos vamos pegando, poquito a poquito
                   D
Hasta provocar tus gritos (Fonsi)
                      A
Y que olvides tu apellido (DY)
     Bm
Despacito

Дима Билан - Держи

Written by pmd - - 1 comment

ms

вся песня:
Fm   X  8 10 10  9  8
D#   X  6  8  8  8  6
A#m  6  8  8  6  6  6

[Куплет 1, Дима Билан]:
Fm                      D#
Давай с тобой мы отдохнём,
            A#m
С тобой вдвоём. С тобой, вдвоём
Fm                    D#            A#m
Мы этот мир перевернём, с тобой вдвоём!
(С тобой вдвоём!)

[Переход]:
Fm
Скажи, зачем нужны нам эти люди, -
D#               A#m
Мы никому об этом не расскажем.
Fm                     D#
Давай с тобой мы отдохнём,
          A#m
С тобой вдвоём! Ага!

Припев:
Fm
Держи! Держи! Руку мою держи!
D#                      A#m
Что хочешь, скажи! Получишь! Держи! Ага!
Fm
Держи! Держи! Руку мою держи!
D#                      A#m
Что хочешь, скажи! Получишь! Держи! Ага!
Fm D# A#m

[Куплет 2, Дима Билан]:
Давай с тобой мы не уснём
С тобой вдвоём. С тобой вдвоём
Мы эту ночь перевернем, с тобой вдвоём!
(С тобой вдвоём!)

[Переход]:
Скажи, зачем нужны нам эти люди, -
Мы никому об этом не расскажем.
Давай с тобой мы отдохнём,
С тобой вдвоём! Ага!

Припев:
Держи! Держи! Руку мою держи!
Что хочешь, скажи! Получишь! Держи! Ага!
Держи! Держи! Руку мою держи!
Что хочешь, скажи! Получишь! Держи! Ага!

Держи! Держи! Руку ты мою держи!
Что хочешь, скажи! Получишь! Держи! Ага!
Держи! Держи! Руку ты мою держи!
Что хочешь, скажи! Получишь! Держи! Ага!

[Song Instrumental Bridge]:

Держи! Держи!

Ага! Держи! Держи! Руку мою держи!
Что хочешь, скажи! Получишь! Держи! Ага!
Держи! Держи! Руку мою держи!
Что хочешь, скажи! Получишь! Держи! Ага!

Backup ftp server + pluxml on Raspberry

Written by pmd - - no comments

Information from shellhacks.com.

Download

The following command recursively downloads your site with all its files and folders from FTP server and saves them to the current directory.

wget -r -l 0 -nH -X folder_to_skip ftp://user:pass@ftp.server.com

 

option description
user FTP username
pass FTP password
ftp.server.com IP address or domain name of an FTP server
-r Recursive retrieving
-l Maximum recursion depth (0 = unlimit) (default = 5)
-nH Disable generation of host-prefixed directories
-X exclude a list of directories

Backup

Now you can compress the folder with your site as follows:

tar -czf site-backup-$(date +%Y%m%d-%H%M%S).tar.gz yoursite.com

Install pluxml on raspberry pi

I am using nginx + php7 + pluxml following these 3 links:

  1. https://www.raspberrypi.org/documentation/remote-access/web-server/nginx.md
  2. https://blog.norore.fr/index.php?article13/pluxml-nginx-et-php-7-sont-dans-un-bateau
  3. https://docs.nginx.com/nginx/admin-guide/security-controls/configuring-http-basic-authentication/

To find which php version should be installed, you can search what is available:

$ apt-cache search php7

Install php and nginx (see here to install nginx):

$ sudo apt-get install php7.3-fpm php7.3-xml php7.3-gd

Once all is installed, configure php :

$ sudo nano /etc/php/7.3/fpm/pool.d/www.conf
[www]
user = www-data
group = www-data
listen = /run/php/php7.3-fpm.sock
listen.owner = www-data
listen.group = www-data
;listen.mode = 0660
$ sudo nano /etc/nginx/sites-available/default
server {
        listen 80 default_server;
        listen [::]:80 default_server;

        # Add index.php to the list if you are using PHP
        index index.php index.html index.htm index.nginx-debian.html;

        server_name _;

        location @handler {
                rewrite ^/(.*)$ /index.php? last;
        }

        # pass PHP scripts to FastCGI server
        #
        location ^~ /pluxml_folder {
                auth_basic "admin";
                auth_basic_user_file /etc/apache2/.htpasswd;

                location ~ \.php$ {
                        include snippets/fastcgi-php.conf;
                        fastcgi_pass unix:/run/php/php7.3-fpm.sock;
                }
        }

        # deny access to .htaccess files, if Apache's document root
        # concurs with nginx's one
        #
        location ~ /(data/configuration|version|update|\.ht) {
                deny all;
        }
}

Then restart both services.

 

Interesting problem : Nginx sucessfully password protects PHP files, but then prompts you to download them

Answer : The problem is a fundamental misunderstanding as to how nginx processes a request. Basically, nginx chooses one location to process a request.
You want nginx to process URIs that begin with /admin in a location block that requires auth_basic. In addition, URIs that end with .php need to be sent to PHP7.
So you need two fastcgi blocks, one to process normal PHP files and one to process restricted PHP files.

 

SSL certificate with no-ip.com

SSL Certificate Now Included with No-IP Free Dynamic DNS.

Tutorial #0: How to Configure the TrustCor Standard DV SSL
Tutorial #1: NGINX Server setup for TrustCor SSL

Generate the private key and CSR from the NGINX server by running this command:

$ sudo openssl req -nodes -days 365 -newkey rsa:2048 -keyout nginx1-trustcor.key -out nginx1-trustcor.csr
Ignoring -days; not generating a certificate
Generating a RSA private key
.....................................................+++++
.................................................................+++++
writing new private key to 'nginx1-trustcor.key'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:FR
State or Province Name (full name) [Some-State]:France
Locality Name (eg, city) []:none
Organization Name (eg, company) [Internet Widgits Pty Ltd]:none
Organizational Unit Name (eg, section) []:none
Common Name (e.g. server FQDN or YOUR name) []:DOMAIN_NAME.ddns.net
Email Address []:none
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:none
$

 

Troubleshooting

Sometimes, I've had the situation where http requests from browsers are being served old versions of the PHP files, missing updates to the PHP scripts that have been uploaded to the server.

To solve this issue, I had to modify the php.ini file by setting :

opcache.enable=0

To find your php.ini location, run this php file on your server:

<?php
phpinfo();
?>

Then to reload php.ini file, restart php-fpm:

$ sudo systemctl stop php7.4-fpm
$ sudo systemctl start php7.4-fpm
$

Source 1, 2

Rss feed of the articles