So far this is what I have done to get 'webFileBrowser'
(
http://www.webfilebrowser.org/) working, *somewhat*, on SME
6beta3.
To enable uploads I changed @copy to @move_uploaded_file on
line 1146 in the webFilebrowser.php file.
if (@move_uploaded_file($HTTP_POST_FILES["file"]["tmp_name"], $fp)) {
To *try* to enable file upload sizes larger than 2MB I added
/php.ini to the templates-custom area.
etc/e-smith/templates-custom/etc/php.ini
I then added the following files to it.
20ResourceLimits
40DataHandling
60FileUploads
I edited each one changing the values below.
MaxExecutionTime 1800
MemoryLimit 100M
PostMaxSize 25M
UploadMaxFilesize 25M
I restarted httpd with
service httpd restart
(I also rebooted the server)
I tried changing the value of 'uploadmaxsize' in the
webFileBrowser.php file to 2621440.
I also performed these commands. Which appear to edit the
php.ini file itself.
/sbin/e-smith/config setprop php MaxExecutionTime 1800
/sbin/e-smith/config setprop php MemoryLimit 100M
/sbin/e-smith/config setprop php PostMaxSize 25M
/sbin/e-smith/config setprop php UploadMaxFilesize 25M
Expand the template: /etc/e-smith/events/actions/conf-php
So far I am *unable* to upload files larger than about 1M.
Note:
I have another 'webshare' installed which *will* accept
uploads of 25M or less.
p.s.
In the docs I read (
http://www.e-smith.org/custom/) it said;
--
Expand the template:
/sbin/e-smith/expand-template /etc/smb.conf
When you've finished, the new changes will appear in the /etc/smb.conf file
--
If that's the case, shouldn't changing the values in the
templates-custom/php.ini/ change the etc/php.ini file?