Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: jerryh on November 27, 2005, 03:41:12 PM
-
As a newbie I think I've missed something fundamental here.
Can anybody help Please
I needed to change some PHP settings so I copied
20ResourceLimits, 40DataHandling, 60FileUploads
from
/etc/e-smith/templates/etc/php.ini/
to
/etc/e-smith/templates-custom/etc/php.ini
Using pico I set
max_execution_time: 300
post_max_size: 32M
upload_max_filesize: 32M
and saved the files then a reboot.
Is there something else I needed to do as the custom templates do not seem to have been applied.
-
jerryh
> Is there something else I needed to do as the
> custom templates do not seem to have been applied.
Yes, expand the template
/sbin/e-smith/expand-template /etc/php.ini
then reboot (which would restart services)
or you could just restart the applicable service
/etc/ini.d/servicename restart
alternatively the command that will cover all situations is:
make your changes
then
/sbin/e-smith/signal-event post-upgrade
/sbin/e-smith/signal-event reboot
-
jerryh
Having said the above you should note that there are db commands for those settings:
/sbin/e-smith/config setprop php MaxExecutionTime 1800
/sbin/e-smith/config setprop php MemoryLimit 100000000
/sbin/e-smith/config setprop php PostMaxSize 20000000
/sbin/e-smith/config setprop php UploadMaxFilesize 20000000
/etc/e-smith/events/actions/conf-php
/etc/init.d/httpd-e-smith graceful
-
Thanks for your help.
I did notice there were commands for this but wasn't sure if they would update the existing template or create a custom one.
I've just started 'playing' with Linux and never seem to do things the easy way. But do learn a lot.
-
jerryh
Having said the above you should note that there are db commands for those settings:
/sbin/e-smith/config setprop php MaxExecutionTime 1800
/sbin/e-smith/config setprop php MemoryLimit 100000000
/sbin/e-smith/config setprop php PostMaxSize 20000000
/sbin/e-smith/config setprop php UploadMaxFilesize 20000000
/etc/e-smith/events/actions/conf-php
/etc/init.d/httpd-e-smith graceful
Are these db commands documented somewhere? I have searched and search, but could not find anything....
Jonas
-
To jerry and jonas & others
> Are these db commands documented somewhere?
contribs.org is a good attempt at bringing to one place the many scattered HOWTOs and contribs from many different authors. While not everything is on contribs.org, you would do well to have a slow read of ALL the contributors folders and review their contents. You will be surprised at the extent of what you will find, including a HOWTO that detailed these commands.
See
http://mirror.contribs.org/smeserver/contribs//
and particualrly see
http://mirror.contribs.org/smeserver/contribs//dmay/smeserver/5.x/howto/webmail-attachment-size-howto.html