How to enable PDO extension on Coolify WodPress image

To enable the PHP PDO_MYSQL extension, you can add a new command to the docker compose.

Edit compose file

Add those lines in the wordpress service after retries: 10:

    command: >
      bash -c "
      docker-php-ext-install pdo pdo_mysql &&
      docker-entrypoint.sh apache2-foreground"

The file file should look like this:

services:
  wordpress:
    image: 'wordpress:latest'
    volumes:
      - 'wordpress-files:/var/www/html'
    environment:
      - SERVICE_FQDN_WORDPRESS
      - WORDPRESS_DB_HOST=mysql
      - WORDPRESS_DB_USER=$SERVICE_USER_WORDPRESS
      - WORDPRESS_DB_PASSWORD=$SERVICE_PASSWORD_WORDPRESS
      - WORDPRESS_DB_NAME=wordpress
    depends_on:
      - mysql
    healthcheck:
      test:
        - CMD
        - curl
        - '-f'
        - 'http://127.0.0.1'
      interval: 2s
      timeout: 10s
      retries: 10
    command: >
      bash -c "
      docker-php-ext-install pdo pdo_mysql &&
      docker-entrypoint.sh apache2-foreground"
  mysql:
    image: 'mysql:8'
    volumes:
      - 'mysql-data:/var/lib/mysql'
    environment:
      - MYSQL_ROOT_PASSWORD=$SERVICE_PASSWORD_ROOT
      - MYSQL_DATABASE=wordpress
      - MYSQL_USER=$SERVICE_USER_WORDPRESS
      - MYSQL_PASSWORD=$SERVICE_PASSWORD_WORDPRESS
    healthcheck:
      test:
        - CMD
        - mysqladmin
        - ping
        - '-h'
        - 127.0.0.1
      interval: 5s
      timeout: 20s
      retries: 10

Read more

Bitnami Discourse 3.3.2 update error

Problem: Do you get this error trying to update your Bitnami Discourse installation? NameError: uninitialized constant ChatMessageSerializer::BasicUserWithStatusSerializer (NameError) has_one :user, serializer: BasicUserWithStatusSerializer, embed: :objects ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Did you mean? BasicUserSerializer /opt/bitnami/discourse/plugins/chat/app/serializers/chat_message_serializer.rb Solution: You can fix this error and finalize the

By Cristian Buleandra