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

Apache Modules not recognized #32

Closed
MaximeCulea opened this issue Jul 4, 2022 · 5 comments
Closed

Apache Modules not recognized #32

MaximeCulea opened this issue Jul 4, 2022 · 5 comments

Comments

@MaximeCulea
Copy link
Contributor

MaximeCulea commented Jul 4, 2022

Hello there 👋
For the Apache Modules the Script states that there are some missing modules, however, they are loaded. They just have a different name, which can vary across distributions:

root [~] # apachectl -M |egrep -i 'deflate|env|expires|headers|filter|mime|rewrite|setenvif'
 deflate_module (shared)
 env_module (shared)
 filter_module (shared)
 headers_module (shared)
 rewrite_module (shared)
 setenvif_module (shared)
 mime_module (shared) 
@Rahe
Copy link
Member

Rahe commented Jul 4, 2022

Hello,

What returns the function apache_get_modules ? the env_module etc. ?
Is the values pushed on the $_SERVER ?
The .htaccess file (https://github.com/BeAPI/phpwpinfo/blob/master/.htaccess#L13) does work ?

@MaximeCulea
Copy link
Contributor Author

Hello Nicolas 👋
The function apache_get_modules only works if PHP is running as an apache module (which is not the case anymore in most setups these days) and does not report anything when running as PHP-FPM or FastCGI. So far I could not find a reliable way to test for apache modules with PHP running on FPM/CGI.
The best option would maybe be to try to run the functions of these modules and catch the error message if they are not there.

@Rahe
Copy link
Member

Rahe commented Jul 5, 2022

Hello Maxime,

Yes this is why we have the .htaccess file to be pushed alongside the phpwpinfo.php file that pushes the env variables in case of the Apache modules are loaded into Apache.
Can you check with the .htaccess file ?

On my side, if I add the .htacess alongside the phpwpinfo.php file everything is fine :

Capture d’écran 2022-07-05 à 10 04 52
Capture d’écran 2022-07-05 à 10 04 59

@MaximeCulea
Copy link
Contributor Author

I have created the .htaccess file, it is working. Thank you!
As the installation tells to get the PHP file, I suppose that about the htaccess that is not documented :)

@Rahe
Copy link
Member

Rahe commented Jul 7, 2022

Great, we'll update the installation process i this way ;)

@Rahe Rahe closed this as completed Jul 7, 2022
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

No branches or pull requests

2 participants