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 module name #48026

Closed
jfcolom opened this issue Jan 2, 2024 · 0 comments · Fixed by #48028
Closed

php-apache module name #48026

jfcolom opened this issue Jan 2, 2024 · 0 comments · Fixed by #48028
Labels
bug Something isn't working needs-testing Testing a PR or reproducing an issue needed

Comments

@jfcolom
Copy link

jfcolom commented Jan 2, 2024

Is this a new report?

Yes

System Info

Void 6.6.8_1 x86_64 GenuineIntel notuptodate rrFFFFF

Package(s) Affected

php-apache-8.3_1

Does a report exist for this bug with the project's home (upstream) and/or another distro?

No response

Expected behaviour

After installing the package and setting the module in /etc/apache/httpd.conf, the web server should start and run PHP pages

Actual behaviour

Apache does not run PHP pages, it delivers the PHP code instead

Steps to reproduce

  1. To load the module in Apache without a syntax error the following line must be set in /etc/apache/httpd.conf

LoadModule php_module /usr/libexec/httpd/modules/libphp8.3.so

Note that the name of the module is php_module instead of php8.3_module; otherwise you get a syntax error when starting

  1. Create a PHP page, for example
cat - > /srv/www/apache/info.php << EOF
<?php
phpinfo ();
?>
EOF
  1. From a web brower load info.php. The page doesn't get run, and the source code is retrieved instead

  2. Workaround: edit /etc/apache/extra/php8.3_module.conf and replace php8.3_module by php_module

@jfcolom jfcolom added bug Something isn't working needs-testing Testing a PR or reproducing an issue needed labels Jan 2, 2024
@sgn sgn closed this as completed in #48028 Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-testing Testing a PR or reproducing an issue needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant