Skip to main content

Installer Dotclear sur FreeBSD 13

Voilà, je viens enfin de créer mon blog que je vais dédier à ma passion jeu. Étant informaticien, j'ai choisi une plateforme, dotclear car elle permet à un non-geek de publier sans se prendre la tête. Comme j'aime la diversité, j'ai choisi d'utiliser FreeBSD comme mon OS de base. De même pour l'hébergement.

J'ai donc créé un compte sur virtua-cloud, j'ai choisi la taille, le processeur (Intel ou AMD) et la géographie pour ma machine virtuelle. J'ai attendu moins de 5 minutes et hop, j'avais une machine. J'ai noté les adresses IP v4 et v6 d'icelle et j'ai ajouté un champ A puis un champ AAAA dans la zone DNS de mon domaine.

Le choix suivant à faire fut de choisir le serveur web, sachant que je voulais pouvoir servir mon contenu avec du http/2. J'ai choisi Apache parce qu'il fait le job et c'est n'est pas le numéro un.

Ensuite, pour un blog dynamique, il nous faut une base de donnée. J'ai bien évidement choisi postgresql.

Une fois ces choix arrêtés, il suffit d'installer les paquets suivants :

  • apache24-2.4.56

  • postgresql13-server

  • php82-mbstring 

  • php82-iconv 

  • php82-simplexml 

  • php82-dom 

  • php82-gd

  • php-session

  • php82-session

  • php82-pgsql

  • php82-filter

  • php82-zlib-8.2.0

  • py-certbot

  • py-certbot-apache

  • bsdstats

J'ai choisi la version de PHP la plus rande de disponible et la version 13 de Pgsql car je n'avais pas de paquet PHP compatible avec pg15 et pg13. J'ai découvert le manque de certains paquet durant l'instalation de dotclear ou durant la configuration d'icelui (zlib, filter,session)

Un petit tour sur PGtune et hop, ma base de donnée est configurée. Je crée ensuite un utilisateur, une base de donnée dans postgresql. Et hop mon backend est prêt.

Une fois que j'ai testé mon installation en utilisant https://tools.keycdn.com/http2-test, il ne me reste plus qu'à installer dotclear en suivant la documentation

 Il ne me reste plus qu'à configurer dotclear et y écrire du contenu.

 J'ai installé BSDstats en plus pour donner plus de visibilité aux paquets que j'utilise. 

Dans les choses que je n'ai pas regardées, c'est l'existante ou non d'un rôle ansible pour automatiser le déploiement de dotclear.

 Il me reste encore les CSP à configurer pour obtenir mieux que D sur l'observatoire de mozilla. Et malheureusement il n'y rien sur le sujet dans la documentation de dotclear.


Edit 16/04/2024 :

Ajout du paquet php82-gmp pour avoir la liste des filtres ipv6 fonctionnelle.




Comments

Popular posts from this blog

Firefox OS's story from a mozilla insider not working on the project

  I clearly remember, but can't date it. I was working for Mozilla messaging at the time ( momo ), being the QA lead for Thunderbird. It was at the end of one of the Mozilla All-hands, maybe in 2011 or 2012. At one of the ending keynotes, we were introduced to Boot 2 Gecko. A hack that would let US - Mozilla own the platform to run a mobile browser on. At the time, the iPhone was going strong and Google was trying to catch up with Android. MeeGo had been in development at Nokia for a while but was going nowhere even when Intel tried to help. Blackberry was slowly starting to die. In the Silicon Valley everything was about mobile, mobile, mobile and the emerging South Easter Asian market, where people would skip computers and use smartphones to join the internet revolution. We were struggling with Chrome and the massive investment by Google to take market share. Our Firefox port on Android was having loads of issues. We were denied by Apple's policies to be present on iPhones....

Key signing party at fosdem 2024

I'm organizing a GnuPG key signing party in order to bolster our web of trust , since there is no official ksp this year. I have organized a few in the past using tools like biglumber (website is gone, if someone know of a replacement or where the source code of site is, I might end up running one again) and others tools . I've also run once the KSP at FOSDEM and helped running it a few other times.    === Details below === When, Where   We'll meet in front of the infodesk stand in building K around 12:00 Sunday Feb 4th 2024. I'll have a sing of some sort with KSP and or Key Signing Party . Once enough participants show up we will move outside to proceed with the party. What to Bring Warm cloths as the party will happen outside this year, like in the good old days. I hope it won't rain, but it might. Piece of papers with your fingerprint written on them. Each piece should look like below:  $ gpg --fingerprint 34246C61F792FBCC1F23BFF296BD1F38FEA32B4D pub ...

Are mozilla's fork any good?

To answer that question, we first need to understand how complex, writing or maintaining a web browser is.  A "modern" web browser is : a network stack, and html+[1] parser,  and image+[2] decoder, a javascript[3] interpreter compiler, a User's interface, integration with the underlying OS[4], And all the other things I'm currently forgetting.   Of course, all the above point are interacting with one another in different ways. In order for "the web" to work, standards are developed and then implemented in the different browsers, rendering engines. In order to "make" the browser, you need engineers to write and maintain the code, which is probably around 30 Million lines of code[5] for Firefox. Once the code is written, it needs to be compiled [6] and tested [6]. This requires machines that run the operating system the browser ships to (As of this day, mozilla officially ships on Linux, Microslop Windows and MacOS X - community builds for *BSD do ex...