-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: php gd error #21262
Comments
Could you provide any simple minimal steps to reproduce the issue? |
p~ $ php -m |
any idea? |
Same issue here.
|
I think that after #21072 the After doing that, Don't know much about how php is normally packaged, but having a peek at how it works in ubuntu we should probably setup so that php automatically loads a |
If
Alpine Linux does the same. I'm exploring it. |
I added the line
so it IS installed.
But with Apache it does NOT work. EDIT: When there is no solution, how can I revert to PHP 8.3.8 ? |
In the phpinfo() as I stated above I see |
Please ensure you also have the |
Since other distros have already done so, it would be good if it stayed like that |
|
The issue has not been fixed yet. |
I tried a gd.ini in the same folder as php.ini |
You should add to $PREFIX/lib/php.ini |
I have added a pull request to fix this issue. Would you like to test the packages from GitHub Actions artifacts of that pull request? Link https://github.com/termux/termux-packages/actions/runs/10609522011 As I explained in #21262 (comment), I copied the behavior from Alpine Linux. As a user, you do not have to add or edit any file. You just install php and php-gd. Then php loads the extensions from files in Now I have to add those ini files for other php extensions as well ⏳ |
So what should I do now to get it working ? |
If you do not know how to test packages from CI artifacts, then just wait for the pull request to be merged. |
Well, I saw that there was a zip inside it with many deb files. |
The above workarounds with php.ini are not required and can be removed now. |
Well I just installed the patched dpkg modules, restarted Apache, but gd is still not loaded under Apache.
This issued errors appeared due to not all dependenscies already installed, so I did:
For sure I ran again (possible obsolete ?)
That worked normally and
in the browser it did not show gd. |
This issue is about php and I have not look into apache. Please provide some info about expected and current output and steps to reproduce it. |
I just added the terminal output above. |
I am not familiar with web dev stuff and do not know how to setup that. Just provide the commands to reproduce it and I will run. |
If I run |
Exactly that did it for me too, when run standalone, that already did it with the original 8.3.10 with the edit in php.ini. Can this issue be fixed by reverting to including compiling gd into php just as it was in php 8.3.8 and earlier ? |
To reproduce, install php and Apache: |
Now I updated PHP on another device where 8.3.10 was with the 'royal' way using
Now my original php settings were retained, but still no gd, despite there now is an automatically created file This is in the 'configure command' in phpinfo():
So this issue has still to be fixed, or reverted to a pre 8.3.10 version. |
No reaction yet ? |
The underlying issue is related to rpath. If you want to load php modules with apache, add this workaround |
That indeed worked and php under Apache works with gd. |
I've already told its a rpath issue and can't figure out any solution yet. |
So why not revert to the old situation as php 8.3.8 where it did work as before ? |
There was an issue to split gd dependencies from php #21068 |
Can confirm this issue - apache absolutely refused to load php-gd no matter what I did, until I used the workaround several comments back. I'm back online, but for the sake of others PR #21325 will be important. Thanks everyone for the work on this issue! |
Problem description
İ installed php and phpgd and when i run next cloud it says gd not installed
İ still can use an old version of nextcloud with php7.
What steps will reproduce the bug?
Running php
What is the expected behavior?
Working well like php7
System information
The text was updated successfully, but these errors were encountered: