I am trying to use sed to overwrite my index.php file, but I am getting an error:
$ sed -i \'s@@
You need to have the write permissions to the folder whose file you are changing.
As explained here: https://stackoverflow.com/a/36404569/5381704