S
S
Swartex2017-05-26 00:25:15
linux
Swartex, 2017-05-26 00:25:15

Why are 2 php7.0 config files needed?

Hello everyone :)
installed php on ubuntu, and there are 2 php.ini files, the
first one is in this path: /etc/php/7.0/apache2/php.ini
the second one is in this path: /etc/php/7.0/cli/php.ini
all the modules that I tried to connect (PDO, xdebug, etc.) worked, only in this file /etc/php/7.0/cli/php.ini
the question is in which of these files you need to manipulate the modules (that is, connect: ) ) ?
And why do you need 2 different configurations at all?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2017-05-26
@Swartex

apache2/php.ini - for web server
cli/php.ini - for command line

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question