I got stuck in a very easy place but I can’t solve it
I would be glad if you can help me even if it is a hint.
What is the full path to the php.ini file for Apache?
/etc/php/7.4/cli/php.ini
but doesnt work Did I just misunderstand question?
I got stuck in a very easy place but I can’t solve it
I would be glad if you can help me even if it is a hint.
What is the full path to the php.ini file for Apache?
/etc/php/7.4/cli/php.ini
but doesnt work Did I just misunderstand question?
fixed
find / -name "*.ini"
You will see too many files
use ctrl+f “php.ini”
Find the php.ini in the apache file
just type the file name php.ini
find / -name “php.ini”
No need to use wildcard as we know the file name
I know this is old and the commands above will get you the answer. But, I want to share a more precise command that will only output the required path if anyone stumbles upon this: find / -name php.ini 2>/dev/null | grep apache
This will redirect standard errors to silence them and filter out any paths not containing apache.