Revision history for FilesActionInfo


Revision [2391]

Last edited on 2015-04-10 17:58:43 by BrianKoontz [Added SELinux note]
Additions:
<<==Note==
If the WikkaWiki directory tree is copied or moved from an old system to another system that has SELinux enabled (enforcing) then the copied/moved files and directories may not have the correct SELinux context types. If this is the case, the ##""{{files}}""## action could be prevented from working correctly by SELinux enforcement even if the owner and permissions are already set correctly.
The ##actions/files/files.php## script file (and possibly other .php files in the WikkaWiki install directory) must have the SELinux context type ##httpd_sys_script_exec_t## to permit use of the PHP file creation routines. Without the correct context on the script, file uploads may fail. From the wiki base install directory, check for the correct SELinux context by entering the command:
ls -Z actions/files/files.php
If the listed SELinux security context type is not ##httpd_sys_script_exec_t##, change it with the command:
chcon -t httpd_sys_script_exec_t actions/files/files.php
Assuming the permissions and owner on the ##uploads## directory are correct, the entire ##uploads## directory tree must have the ##httpd_sys_script_rw_t## SELinux context type so that scripts (.php files) running in the web server process are allowed read/write access. Check this with the command:
ls -dZ uploads
If the listed SELinux security context type is not ##httpd_sys_script_rw_t##, change it with the command:
chcon -R -t httpd_sys_script_rw_t uploads
//Thanks to Mike Shultz and [[http://www.mediawiki.org/wiki/SELinux#Uploading_Images]]//
<<
>>**See | also**
[[http://wikkawiki.org/FilesActionSafeModeWorkaround | FilesActionSafeModeWorkaround]]>>::c::
Deletions:
>>**See also**
[[http://wikkawiki.org/FilesActionSafeModeWorkaround | FilesActionSafeModeWorkaround]]>>
example:
{{files}}


Revision [2336]

Edited on 2013-07-30 17:51:28 by ChrisCase [fixed the documentation on changing the max upload size]
Additions:
[[http://wikkawiki.org/Mod015fFilesAction Mod for the files action]]
%%(php;58;files.php)
// if(!defined('MAX_UPLOAD_SIZE')) define('MAX_UPLOAD_SIZE', 2097152);
if(!defined('MAX_UPLOAD_SIZE')) define('MAX_UPLOAD_SIZE', 4194304);
Deletions:
[[http://wikkawiki.org/Mod015fFilesAction | Mod for the files action]]
%%(php;44;files.php)
// $max_upload_size = "1048576"; // 1 Megabyte
$max_upload_size = "2097152"; // 2 Megabyte


Revision [1877]

Edited on 2009-01-31 02:04:48 by NilsLindenberg [Removed carriage return]

No Differences

Revision [1332]

Edited on 2008-11-01 23:23:06 by NilsLindenberg [Removed HomePage link]
Deletions:
HomePage


Revision [1104]

Edited on 2008-06-16 09:21:20 by NilsLindenberg [note on file upload limits]
Additions:
==Upload limits==
As for a default install, a limit of 2 Megabyte for the (maximum) size of a file exists. You can find it in
%%(php;44;files.php)
// $max_upload_size = "1048576"; // 1 Megabyte
$max_upload_size = "2097152"; // 2 Megabyte
%%
If you want to enhance the limit you can do so by changing the file (note that the limit has to be written as a number of bytes).
Please note that PHP itself imposes a limit on file-uploads. You can find the parameter in the
%%(ini;php.ini)
upload_max_filesize
%%
with a default set to 2 megabyte.


Revision [303]

Edited on 2006-11-19 09:23:47 by YanB [minor formatting typo]
Additions:
[[http://wikkawiki.org/FilesActionSafeModeWorkaround | FilesActionSafeModeWorkaround]]>>
Deletions:
[[http://wikkawiki.org/FilesActionSafeModeWorkaround | FilesActionSafeModeWorkaround]]


Revision [302]

Edited on 2006-11-19 09:23:10 by YanB [updated links]
Additions:
[[http://wikkawiki.org/FilesActionSafeModeWorkaround | FilesActionSafeModeWorkaround]]
Deletions:
http://wikkawiki.org/FilesActionSafeModeWorkaround FilesActionSafeModeWorkaround]]


Revision [301]

Edited on 2006-11-19 09:22:48 by YanB [updated links, + cat.]
Additions:
HomePage
[[http://wikkawiki.org/Mod015fFilesAction | Mod for the files action]]
For the development page, take a look at [[http://wikkawiki.org/FilesAction | FilesAction]].
http://wikkawiki.org/FilesActionSafeModeWorkaround FilesActionSafeModeWorkaround]]
[[http://wikkawiki.org/VictorManuelVarela | VictorManuelVarela]]
CategoryEN
Deletions:
[[WikkaDocumentation | Wikka Documentation]]
[[http://wikka.jsnx.com/Mod015fFilesAction | Mod for the files action]]
For the development page, take a look at FilesAction.
FilesActionSafeModeWorkaround
>>//Once the planned 'autodoc' feature for actions is "live", this page will contain the automatically-generated documentation by just including an action; for now, I've just manually created the text.//
VictorManuelVarela
CategoryDocumentation


Revision [204]

The oldest known version of this page was created on 2006-09-23 11:45:32 by BrianKoontz [updated links, + cat.]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki