Thanks. That does help.
When you login to the desktop you should be logging on as a sudo user ... like kpreston (what ever account you set up upon initial install of Ubuntu.
When you browse files using file manager you are that user, but that user doesn't have credentials/level of access to edit either of those php.ini's.
Open terminal. At the user prompt, it might show: kpreston type in:
sudo -s
The -s means stay as root user in a sudo session.
You will be prompted to give your kpreston password.
If kpreston is in sudoers, the prompt will change to root:
Now change diretories to the location of the php.ini file you desire to edit.
cd /etc/php/7.0/apache2/
Look at ownerships/permissions on php.ini
ls -l php.ini
It *might* show you something like:
-rw-r--r--. 1 root root 62660 Oct 21 12:57 php.ini
r means read
w means write (can edit)
x means execute - file if set to execute will do something if called.
The root:root above is the owner of the file and group - thus rw- (no x) applies to php.ini
This means as root user, the php.ini file can be edited.
So...
nano php.ini
Should allow you to open, edit, and save the file.
There are two settings you need to change to increase the size of a file to be uploaded:
post_max_size
and
upload_max_filesize
Set those to = 1G
Save the file
Restart the apache 2 service. Must do this for Moodle to recognize new values.
To exit the terminal, you must type: exit twice ... once to get out of root and again to close the user session.
Login to the Moodle and check the settings on a course for uploads.
You might want to bookmark/favorite: https://help.ubuntu.com/
specifically the link to 16.04 or download the PDF for local reference.
'spirit of sharing', Ken