Difference between revisions of "Eagle-rock.org:Working with images"

From eagle-rock.org
(Created page with "''Please add new entries at the '''bottom''' of the thread and add your signature with time stamp'' * This [http://www.mediawiki.org/wiki/Manual:Configuration_settings page]...")
 
Line 35: Line 35:
  
 
This will give us our private upload folder and set permissions for all but ''regular users'' to upload files there. --[[User:Charles|Charles]] 11:48, 18 December 2011 (PST)
 
This will give us our private upload folder and set permissions for all but ''regular users'' to upload files there. --[[User:Charles|Charles]] 11:48, 18 December 2011 (PST)
 +
 +
----
 +
== See also ==
 +
* [[Eagle Rock Wiki:Community portal]]

Revision as of 04:45, 19 December 2011

Please add new entries at the bottom of the thread and add your signature with time stamp


  • This page tells more about uploading files --John Eagles 23:46, 17 December 2011 (PST)* Wikimedia Commons offers many free images, but embedding them here didn't work (yet). Probably needs configuring the server. --John Eagles 09:41, 18 December 2011 (PST)
  • Manual:Configuring file uploads. I think this needs to be done by changing settings in the server. --John Eagles 23:44, 17 December 2011 (PST)* There seems to be a possibility here: "A group of wikis may have designated one "preferred wiki" to upload files to, with sharing of those files enabled. Among Wikimedia wikis, Wikimedia Commons works for this. If images are uploaded to Wikimedia Commons, they can be used in all Wikimedia wikis." (Help:Images and other uploaded files). However, i think we should also create our own upload possibility for files. ----

I've asked Steve to make the following changes to configuration files. He says he can have them done by Tuesday morning : --Charles 11:48, 18 December 2011 (PST)

  • 1. Make sure uploads are enabled in PHP

The following needs to be set in php.ini (which may be located somewhere like /etc/php/php.ini, /etc/php4/php.ini, /etc/php5/cli/php.ini &/etc/php5/apache2/php.ini (openSUSE 11.2), /usr/local/lib/php.ini or on Win32 C:\Windows\php.ini): file_uploads = On If this is not set, PHP scripts cannot use the upload functions, and MediaWiki's uploads will not be enabled.

  • 2. Check for Windows and IIS users

Set %SystemRoot%\TEMP to have permissions for the Internet Guest Account (IUSR_MachineName, or IUSR for IIS 7+): Read, write and execute;

  • 3. Check directory security

The upload directory needs to be configured so that it is not possible for an end user to upload and execute other scripts, which could then exploit access to your web directory and damage your wiki or web site.

Set the /images folder (or the /uploads folder in previous versions) to have permission "755":

  • 4. Setting uploads on/off'

MediaWiki version: In MediaWiki version 1.5 and later, the attribute to be set resides in LocalSettings.php and $wgEnableUploads is set as follows: ≥ 1.5 $wgEnableUploads = true; # Enable uploads This enables uploads, as one might expect. To disable them, set the attribute to false:

  • 5. Upload permissions

Per default, all registered users can upload files. This is the biggest security worry we have so we want to be sure to restrict Normal Users from having upload privileges. To restrict this, you have to change $wgGroupPermissions: To prevent normal users from uploading files: $wgGroupPermissions['user']['upload'] = false;

This will give us our private upload folder and set permissions for all but regular users to upload files there. --Charles 11:48, 18 December 2011 (PST)


See also