Skip to content

nextcloud: fix ftps support disabled due to missing openssl-dev at ftp configur… - #8562

Open
yGhazi-LUSEO wants to merge 1 commit into
nextcloud:mainfrom
yGhazi-LUSEO:fix-ftps-support
Open

nextcloud: fix ftps support disabled due to missing openssl-dev at ftp configur…#8562
yGhazi-LUSEO wants to merge 1 commit into
nextcloud:mainfrom
yGhazi-LUSEO:fix-ftps-support

Conversation

@yGhazi-LUSEO

Copy link
Copy Markdown

FTPS mounts fail with SSL/TLS required on the control channel even though
the Dockerfile already passes --with-openssl-dir=/usr to
docker-php-ext-configure ftp. Root cause: openssl-dev was not installed
yet when that configure call ran, so PHP's ftp extension silently built
without SSL support (ftp_ssl_connect() undefined at runtime).

On top of that, ftp was being built a second time later in the same
RUN (in the imap/samba block), without re-passing the openssl flag — this
second build overwrote the first, correctly-configured one.

Fix

  • Added openssl-dev to the first .build-deps block (where ftp is
    configured with --with-openssl-dir=/usr)
  • Moved ftp into the first docker-php-ext-install call, right after its
    docker-php-ext-configure call
  • Removed the duplicate ftp install from the second block

Verification

Before:

FTP support => enabled
FTPS support => disabled

After:

FTP support => enabled
FTPS support => enabled

Thanks in advance for reviewing this, happy to adjust based on feedback.

…e time

Signed-off-by: yGhazi-LUSEO <yghazi@luseogroup.com>
@szaimen szaimen added 3. to review Waiting for reviews bug Something isn't working labels Aug 15, 2026
@szaimen szaimen added this to the next milestone Aug 15, 2026
@szaimen szaimen changed the title Fix: FTPS support disabled due to missing openssl-dev at ftp configur… nextcloud: fix FTPS support disabled due to missing openssl-dev at ftp configur… Aug 15, 2026

@szaimen szaimen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, thanks a lot but one comment below:

docker-php-ext-install -j "$(nproc)" \
bcmath \
exif \
ftp \

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, why did you put this here and did not leave it further down?

@szaimen szaimen changed the title nextcloud: fix FTPS support disabled due to missing openssl-dev at ftp configur… nextcloud: fix ftps support disabled due to missing openssl-dev at ftp configur… Aug 17, 2026
@szaimen szaimen modified the milestones: v13.6.0, next Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants