Editing php.ini


(Ronald Montenegro) #1

Hey guys, I need to modify the php.ini file but it show: “Manual changes will be lost when this file is regenerated”,which would be the best way to modify it, since I need to increase the size of the variable upload_max_filesize ?


NextCloud memory limit
(Stéphane de Labrusse) #2

in fact you modify values from a db property

[root@nethserver-dev ~]# config show php
php=configuration
    AllowUrlFopen=1
    DateTimezone=UTC
    ExposePhp=0
    MaxExecutionTime=30
    MemoryLimit=32
    PostMaxSize=8
    ShortOpenTag=0
    UploadMaxFilesize=2

or it is the same

[root@nethserver-dev ~]# db configuration show php
php=configuration
    AllowUrlFopen=1
    DateTimezone=UTC
    ExposePhp=0
    MaxExecutionTime=30
    MemoryLimit=32
    PostMaxSize=8
    ShortOpenTag=0
    UploadMaxFilesize=2

since you want to modify it (32=32MB)

config setprop php UploadMaxFilesize 32
signal-event nethserver-php-update

or

db configuration setprop php UploadMaxFilesize 32
signal-event nethserver-php-update

the signal-event is a mandatory to rewrite all configuration files

you have a pointer in the grand mother website of neth, it could be nice that someone of the documentation team rewrite here (I’m one of the authors)

http://wiki.contribs.org/Db_command_tutorial


Memory Errors.... Php? Mysql? phpmyadmin? Server Hardware seems to be fine
(Ronald Montenegro) #3

Great, thanks, that was what i was looking for.