containers icon indicating copy to clipboard operation
containers copied to clipboard

[bitnami/php-fpm] Docker PHP8.3 FPM xdebug.so is missing

Open alexh-swdev opened this issue 1 year ago • 16 comments

Name and Version

bitnami/php-fpm:8.3

What architecture are you using?

amd64

What steps will reproduce the bug?

Pull the image, try to activate xdebug

What is the expected behavior?

xdebug is available and working

What do you see instead?

xdebug is missing in php-fpm8.3

....... ls -lah /opt/bitnami/php/lib/php/extensions/
total 5.3M
drwxr-xr-x  2 root root 4.0K Dec 20 13:15 .
drwxr-xr-x 14 root root 4.0K Dec 20 13:15 ..
-rwxr-xr-x  1 root root  84K Dec 20 13:06 apcu.so
-rwxr-xr-x  1 root root 472K Dec 20 13:06 imagick.so
-rwxr-xr-x  1 root root  27K Dec 20 13:06 maxminddb.so
-rwxr-xr-x  1 root root 176K Dec 20 13:06 memcached.so
-rwxr-xr-x  1 root root 3.4M Dec 20 13:06 mongodb.so
-rwxr-xr-x  1 root root 974K Dec 20 13:06 opcache.so
-rwxr-xr-x  1 root root  31K Dec 20 13:06 pdo_dblib.so
-rwxr-xr-x  1 root root  52K Dec 20 13:06 pdo_pgsql.so
-rwxr-xr-x  1 root root 140K Dec 20 13:06 pgsql.so

but it is available in php-fpm8.2

...... ls -lah /opt/bitnami/php/lib/php/extensions
total 5.8M
drwxr-xr-x  2 root root 4.0K Nov 21 16:50 .
drwxr-xr-x 14 root root 4.0K Nov 21 16:50 ..
-rwxr-xr-x  1 root root  84K Nov 21 16:38 apcu.so
-rwxr-xr-x  1 root root 472K Nov 21 16:38 imagick.so
-rwxr-xr-x  1 root root  27K Nov 21 16:38 maxminddb.so
-rwxr-xr-x  1 root root 176K Nov 21 16:38 memcached.so
-rwxr-xr-x  1 root root 3.4M Nov 21 16:38 mongodb.so
-rwxr-xr-x  1 root root 974K Nov 21 16:39 opcache.so
-rwxr-xr-x  1 root root  31K Nov 21 16:39 pdo_dblib.so
-rwxr-xr-x  1 root root  52K Nov 21 16:39 pdo_pgsql.so
-rwxr-xr-x  1 root root 136K Nov 21 16:39 pgsql.so
-rwxr-xr-x  1 root root 486K Nov 21 16:39 xdebug.so 

Images: bitnami/php-fpm 8.3 5ec01242a481 10 days ago 282MB bitnami/php-fpm 8.2 2cec7a3b0e98 6 weeks ago 282MB

Please add it again to the 8.3 version of php-fpm

Additional information

No response

alexh-swdev avatar Jan 03 '24 09:01 alexh-swdev

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

github-actions[bot] avatar Jan 19 '24 01:01 github-actions[bot]

Just assigned, looks not fixed yet according to the states -> keep not-state.

alexh-swdev avatar Jan 19 '24 05:01 alexh-swdev

Still not there...

CraigVella avatar Jan 20 '24 14:01 CraigVella

Still missing.... When can we expect it to be added again like in the prior PHP versions?, @aoterolorenzo @carrodher

grafik

alexh-swdev avatar Jan 29 '24 16:01 alexh-swdev

Hi @alexh-swdev, @ChaseHQ

Not sure of the reason behind it being missing. I will create a task for the team in order to add the module to the 8.3 version of PHP. We will reach you back here.

aoterolorenzo avatar Jan 31 '24 15:01 aoterolorenzo

Hi, Is there any other way to install xdebug.so missing file? Thanks

rahulgupta-acquia avatar Feb 07 '24 13:02 rahulgupta-acquia

Hi @aoterolorenzo can you give an estimate when we can expect xdebug to be added again to php fpm 8.3? Two weeks have passed and I just pulled the newest php fpm 8.3 image 9ae8bebd6cfc and it is still missing. Debugging is not possible without it, so this is indeed kind of a serious issue.

alexh-swdev avatar Feb 11 '24 19:02 alexh-swdev

pecl install xdebug Temporary I used install xdebug via pecl command.

rahulgupta-acquia avatar Feb 12 '24 04:02 rahulgupta-acquia

When I try to execute this workaround in the container, I get:

(....) pecl install xdebug
Failed loading /opt/bitnami/php/lib/php/extensions/xdebug.so:  /opt/bitnami/php/lib/php/extensions/xdebug.so: cannot open shared object file: No such file or directory
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
downloading xdebug-3.3.1.tgz ...
Starting to download xdebug-3.3.1.tgz (258,953 bytes)
.....................................................done: 258,953 bytes
102 source files, building
running: phpize
Configuring for:
PHP Api Version:         20230831
Zend Module Api No:      20230831
Zend Extension Api No:   420230831
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.

ERROR: `phpize' failed

Do you know, what else is required? I never had to use pecl before...

/Edit: Ok, had to also install autoconf gcc make

/Edit: Thanks, btw, rahulgupta-acquia

alexh-swdev avatar Feb 12 '24 11:02 alexh-swdev

@aoterolorenzo A month later: Any updates? Or is the workaround still required?

alexh-swdev avatar Mar 15 '24 08:03 alexh-swdev

Feels like a standstill... switching to https://hub.docker.com/r/webdevops/php-dev/tags

alexh-swdev avatar Mar 20 '24 09:03 alexh-swdev

it's hard to get these guys to add something you need. I've failed in the past to achieve adding missing modules, 'stale' seems to be their resolution.

deonthomasgy avatar Apr 01 '24 02:04 deonthomasgy

The thing is: It was already part of it and somehow dropped out w/o notice.

alexh-swdev avatar Apr 02 '24 08:04 alexh-swdev

I hope they fix it for you.

deonthomasgy avatar Apr 02 '24 16:04 deonthomasgy

Oh, idc anymore, tbh. As I said, I am using webdevops/php-dev now. Not perfect either, but works well enough for me.

alexh-swdev avatar Apr 02 '24 16:04 alexh-swdev