Does two php.ini files mean that I installed PHP twice?
Get the solution ↓↓↓Solution:
Thecli
in/etc/php5/cli
stands forCommand Line Interface
, so it uses thatphp.ini
file when you're invoking php from the command line.
Thephp.ini
in/opt/lampp/etc
is the one that lampp installed and, as you noticed, is the one that apache uses for web requests. (For those not using a lampp package, you'll likely see apache'sphp.ini
in/etc/php5/apache2/
)
PHP does act a little differently in each environment, which is why the two config files are necessary. See here for more info there.
If you never use php from the command line (don't forget about cron jobs!) then you can ignore the one in/etc/php/cli
, but no you shouldn't uninstall either.
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: object of class stdclass could not be converted to string
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.