Code Monkey home page Code Monkey logo

Comments (5)

Rahe avatar Rahe commented on August 28, 2024

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 ?

from phpwpinfo.

MaximeCulea avatar MaximeCulea commented on August 28, 2024

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.

from phpwpinfo.

Rahe avatar Rahe commented on August 28, 2024

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โ€™eฬcran 2022-07-05 aฬ€ 10 04 52
Capture dโ€™eฬcran 2022-07-05 aฬ€ 10 04 59

from phpwpinfo.

MaximeCulea avatar MaximeCulea commented on August 28, 2024

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 :)

from phpwpinfo.

Rahe avatar Rahe commented on August 28, 2024

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

from phpwpinfo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.