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

From eagle-rock.org
 
Line 2: Line 2:
  
  
* This [http://www.mediawiki.org/wiki/Manual:Configuration_settings 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)
+
== Uploading images ==
 +
* You can upload your own images
 +
* You can download copyright-free images from the internet to your own computer and then upload them again here (see link 'Upload file' in the toolbox in the left bar
 +
* Wikipedia (Commons) has many images free from copyright. Refer in the Licensing section to the page where you got it
 +
* You can find copyright-free images with Google search, for example search 'public domain image cauliflower.'
  
* [http://www.mediawiki.org/wiki/Manual:Configuring_file_uploads#Uploading_directly_from_a_URL_.28.22Sideloading.22.29 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." ([http://meta.wikimedia.org/wiki/Help:Images_and_other_uploaded_files 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  : --[[User:Charles|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. --[[User:Charles|Charles]] 11:48, 18 December 2011 (PST)
 
 
----
 
 
== See also ==
 
== See also ==
 
* [[Eagle Rock Wiki:Community portal]]
 
* [[Eagle Rock Wiki:Community portal]]

Latest revision as of 09:18, 7 January 2012

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


Uploading images

  • You can upload your own images
  • You can download copyright-free images from the internet to your own computer and then upload them again here (see link 'Upload file' in the toolbox in the left bar
  • Wikipedia (Commons) has many images free from copyright. Refer in the Licensing section to the page where you got it
  • You can find copyright-free images with Google search, for example search 'public domain image cauliflower.'

See also