Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
22
rated 0 times [  22] [ 0]  / answers: 1 / hits: 33667  / 3 Years ago, sat, september 4, 2021, 9:10:45

I want to change the upload_max_filesize = 2M to 50M, then I started edit on php.ini, but when try to save it, it displays error message below



Could not create a backup file while saving /etc/php5/apache2/php.ini


gedit could not back up the old copy of the file before saving the new one. You can ignore this warning and save the file anyway, but if an error occurs while saving, you could lose the old copy of the file. Save anyway?



cannot save php.ini


More From » 12.04

 Answers
3

You are opening that file in a folder owned by root! Hence you need root access to that file. Type this code in the terminal:



sudo -H gedit /etc/php5/apache2/php.ini


When the file opens edit the file and you can save it normally by pressing Ctrl+S


[#37799] Sunday, September 5, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
hirtieve

Total Points: 207
Total Questions: 104
Total Answers: 114

Location: Cook Islands
Member since Thu, May 21, 2020
4 Years ago
;