I have installed Apache2 on my Raspberry Pi, and installed the php5 module. The webserver works as expected.
First i have coded a small php script to parse the dhcpcd config file (
/etc/dhcpcd.conf). I open the file only as readable, and this works properly.
Now I want to change the IP. Therefore, I need to open the file as writeable. But I get an error, that I have insufficient rights to write to this file.
I am new to Apache; where can I set the rights to write to
/etc/dhcpcd.conf? And what rights need to be set?