GithubHelp home page GithubHelp logo

Comments (5)

centminmod avatar centminmod commented on July 24, 2024

also my additional .ini files registered by PHP configscandir compile option

php --ini
Configuration File (php.ini) Path: /usr/local/lib
Loaded Configuration File:         /usr/local/lib/php.ini
Scan for additional .ini files in: /etc/centminmod/php.d
Additional .ini files parsed:      /etc/centminmod/php.d/a_customphp.ini,
/etc/centminmod/php.d/curlcainfo.ini,
/etc/centminmod/php.d/zendopcache.ini

you could add that to array of .ini files you check for php.ini which you grep for any checked php variables like expose_php and make sure those get higher priority over php.ini as they would potentially override php.ini values ?

although simple

php -i | grep expose

would be easier

from lynis.

adisatria avatar adisatria commented on July 24, 2024

how to set "expose_php = Off" in Debian server ?

from lynis.

quantumpacket avatar quantumpacket commented on July 24, 2024

Correction to initial bug report, php.d/*.ini has nothing to do with PHP-FPM. That is what php-fpm.d/*.conf is for.

What's going on here is similar to psecio/iniscan#82 where PHP settings can be defined in additional .ini files in php.d/*.ini, and/or defined per site pool in PHP-FPM config files in php-fpm.d/*.conf.

php -i | grep expose

Will work for the .ini files overriding the master php.ini values, but will not work to check values set via the PHP-FPM .conf files. At least via commandline.

from lynis.

mboelen avatar mboelen commented on July 24, 2024

This item is "on hold", as it is hard to parse them properly. We will do more research later, to see if we can create a reliable way to parse different PHP configurations and keep the versions in mind as well.

from lynis.

mboelen avatar mboelen commented on July 24, 2024

Closing this issue, to clean up a little bit. Right now, no changes are made to the PHP scanning logic, as it needs a rewrite.

from lynis.

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.