How do I edit php.ini if I don't have permission?
I need to change value in php.ini
, but I do not have permission to edit the file. Can Linode make a change for me?
2 Replies
As we are primarily an infrastructure provider, we are not able to login to your Linode and view it's logs, or perform any troubleshooting on your behalf. That said, php.ini
is not editable by any user other than 'root'. To edit this file, you can add sudo
to the beginning of your command. I've added a couple of examples below:
sudo vi php.ini
sudo nano php.ini
When using the sudo
command, you will be prompted for your password. This is the same password used to login to the Linode. By opening the file as root/sudo, you will be able to make and save changes to the file.
You can also try logging in directly as the root user to make the changes. In this case, you would not need to use the sudo
command.