Recently i have faced a problem that i was unable to upload to osTicket file to Knowledge Base larger that 12MB.
Since NethServer 7 is based on CentOS7 i have looked into php.ini file and changed required entries and restarted httpd server but nothing has changed…
Then I realised that since I a using NS7 I have to change somewhere else 😉
So this is what I have done:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# db configuration show php php=configuration DateTimezone=UTC ExposePhp= MaxExecutionTime= MemoryLimit= PostMaxSize= ShortOpenTag= UploadMaxFilesize=16 # db configuration setprop php UploadMaxFilesize 32 # signal-event nethserver-php-update # db configuration setprop php PostMaxSize 32 # signal-event nethserver-php-update # db configuration show php php=configuration DateTimezone=UTC ExposePhp= MaxExecutionTime= MemoryLimit= PostMaxSize=32 ShortOpenTag= UploadMaxFilesize=32 |
And to make sure it’s working:
1 |
# systemctl restart httpd |
And now I was able to upload large files.
Thank’s to NethServer Community for this solution!