Hello everyone,
I tried to change the data in the php.ini file.
When I try to save the modified file, I get the “error writing php.ini: Read-only file system”.
Does anyone know how to do this ?
Thank a lot for your help.
One hint may be possible, even we have no information about your installation: You will need root permission to edit php.ini.
If you have tried to make the change as root (or sudo), the file system may really be mounted read-only due to an error. Take a look at how it is mounted.
Use this command with root or sudo:
mount
Sorry, I forgot. I use snap 30.0.2snap2 (45417)
Nextcloud is installed on it.
Thank for your answer, I tried:
sudo nano php.ini => error while saving
sudo mount php.ini => mount: php.ini: can’t find in /etcc/fstab
Thanks. I already tried, but it didn’t work.
I want to change the values of “upload_max_filesize” and “post_max_size” in php.ini
Nextcloud Snap is quite limited. I have searched again. There seems to be no way to change the values you mentioned.
what is wrong with the default settings?
Files larger than 1GB do not work
please be more clear, what does not work?
default instances allow uploading and downloading files of any size
Sorry. I tried to upload a 1GB file on Nextcloud, it didn’t work. Searching on the web, I found this :
https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/big_file_upload_configuration.html
I try to change the values to see if it works
please note, the snap does not throttle data transfer in any way! although some folks like @devnull still believe that the snap is limited, this is not so! the config file may be edited as you please, see PHP configuration options
we all know that @devnull is no fan of the snap…
if you are experiencing throttling somewhere it will most certainly be some network issue, possibly reverse proxy or your ISP maybe even some firewall issue or local DNS or something.
Thank a lot for your help.
I going check my firewall.
could you check your DDNS provider? some DNS providers are free but throttle bandwidth or volume.
Perhaps you can post the actual error/etc that you see.
@Dududu1977 please post your logs as @jtr suggested. see Managing logs and run the debugging script posting the result here
I don’t know how to find the logs for the errors.
Can you help me for that ?
did you see the pointers?
Thank a lot for your help.
The probleme came from SWAP space.
I increased the size.
It’s working now.