linux - Safest way to write into /etc from php application?
Get the solution ↓↓↓Solution:
If the Apache user (www-data
) can write or modify/etc
all the system is compromised.
If any user of the PHP application can change the demon's configuration the behaviour may be a mess. You told about "users", changing simultaneously that config file.
As @quentin says use a database if you need persistence; or an application file (not in/etc
or other system directory).
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.