Skip to content
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

php(-apache): fix rpath for php-gd #21325

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

php(-apache): fix rpath for php-gd #21325

wants to merge 1 commit into from

Conversation

licy183
Copy link
Member

@licy183 licy183 commented Sep 2, 2024

Closes #21262

@Biswa96
Copy link
Member

Biswa96 commented Sep 2, 2024

I have tried this but I can not see gd module in Apache. How did you test it?

@licy183
Copy link
Member Author

licy183 commented Sep 3, 2024

I haven't tested it...

@truboxl
Copy link
Contributor

truboxl commented Oct 17, 2024

Need to add LoadModule php_module libexec/apache2/libphp.so
in $PREFIX/etc/apache2/httpd.conf

But starting apachectl will error

[php:crit] [pid 24463:tid 24463] Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe.  You need to recompile PHP.
AH00013: Pre-configuration failed

I am starting to doubt apache2 + php8 ever worked in the first place

Edit: nvm, search around again and need to fix in httpd.conf

LoadModule mpm_prefork_module libexec/apache2/mod_mpm_prefork.so
#LoadModule mpm_worker_module libexec/apache2/mod_mpm_worker.so
echo "<?php phpinfo(); ?>">  $PREFIX/share/apache2/default-site/htdocs/info.php

localhost:8080/info.php
But still no gd subsection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: php gd error
3 participants