Line 39: |
Line 39: |
| ---- | | ---- |
| | | |
− | ==Upload size limit== | + | ==Upload size limit bug== |
| Must document that on the Wiki: | | Must document that on the Wiki: |
| Max allowed packet value is set to 50M with a custom-template by the RPM. | | Max allowed packet value is set to 50M with a custom-template by the RPM. |
Line 72: |
Line 72: |
| | | |
| stephen | | stephen |
| + | ---- |
| + | I was also testing this right now... Just figured out modifications to my.cnf are useless (still locked at 10M) |
| + | Got these info from www/ocs/install.php |
| + | WARNING: You will not be able to build any auto deployment package with size greater than 10M. |
| + | You must raise both post_max_size and upload_max_filesize in your php.ini to correct this. |
| + | |
| + | WARNING: The user you typed does not seem to be root |
| + | If you encounter any problem with files insertion, try setting the global max_allowed_packet mysql value to at least 2M in your server config file. |
| + | |
| + | I've tested these without success: |
| + | #-------------------------------------------------------------- |
| + | # OCS Inventory Next Generation |
| + | #-------------------------------------------------------------- |
| + | Alias /download /opt/inventory/ocs/download |
| + | Alias /ocs /opt/inventory/ocs/ocsreports |
| + | { |
| + | if (exists $ocs{'URL'}) |
| + | { $OUT .= "Alias /$ocs{'URL'} /opt/inventory/ocs/ocsreports"; } |
| + | } |
| + | |
| + | <Directory /opt/inventory/ocs/download> |
| + | Options None |
| + | Options +Indexes |
| + | Options +Includes |
| + | AllowOverride None |
| + | order deny,allow |
| + | deny from all |
| + | allow from { $localAccess } |
| + | php_admin_value open_basedir /opt/inventory/ocs/download:/tmp |
| + | php_admin_value post_max_size { $ocs{PhpLimit} }M |
| + | php_admin_value upload_max_filesize { $ocs{PhpLimit} }M |
| + | </Directory> |
| + | Values expand correctly, but I still get an error page... |
| + | |
| + | Did it worked for you? I still can upload a 24MB file (-> getting an error |
| + | |
| + | Cool34000 |
| ---- | | ---- |
| | | |