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 ?
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)
Great, thanks, that was what i was looking for.
Old topic - I know.
As I’m still migrating my SME 9.2 box I just want to make sure, if the settings for php are allright:
in the SME box:
config show php
php=service
AllowUrlFopen=Off
MaxExecutionTime=1800
MemoryLimit=512M
PostMaxSize=35M
UploadMaxFilesize=35M
status=enabled
in NethServer:
config show php
php=configuration
AllowUrlFopen=On
DateTimezone=UTC
ExposePhp=
MaxExecutionTime=1800
MaxFileUpload=20
MaxFileUploads=
MaxInputTime=60
MemoryLimit=512
PostMaxSize=35
ShortOpenTag=
UploadMaxFilesize=35
I’m wondering about the missing “M” and as these settings are for horde (installed from bug-section with the help of mrmarkuz) leaving the question, if the settings are also valit for rh-php73-php-fpm
no absolutely not, the change are done at the php-fpm level, we start for each vhost a php-fpm service and for this service we adjust the value we want.
There is a gap between SME Server and NethServer. SME is proud to be divergent of Centos, NethServer is a clone of Centos. In a short explanation we try to not overwrite default configuration files of services provided by Centos.
Of course sometimes you have no choices.
Thank you for clarification.
So I messed up the default - could you tell me the default values so I can get back to it?
And to the other part - where/how is the php-fpm adjusted?
in the cockpit http application virtualhost you can choose what php version you need and what php settings you can adjust. Global php settings are in the http>settings of the cockpit application
config show php
config delete php
/etc/e-smith/events/actions/initialize-default-databases
the only things I needed to adjust is
config setprop php DateTimezone Europe/Paris
Thank you for helping.
I found in cockpit
Web server Web server configuration with named virtual hosts and reverse proxy
Inside there’s one virtual host -> default. Can’t find anything for php-fpm?
Default is for /var/www/html folder
Use cockpit application httpd → settings
You have some documentations
I understand that customization of non-standard php has to be done by editing files. It cannot be done in cockpit. I decided to move from horde to sogo. In my virtual test machine this seems to be better integrated in NS.
If you want full nethserver integration give a test to webtop.
SOGo is a nethforge module, we provide the last stable binary however the development of SOGo is quiet if you want to compare.
However it works
If you want to adjust certain php usual settings like memory, file upload… You have the sliders of http settings in cockpit
After this you can drop a file in the php.d folder to modify the centos default configuration, this will be kept after upgrade
You can also make some custom template but you have to refer if something goes wrong
This is the three layers I know for php