First, download and install Mediawiki using their installation instructions. In
order for the integration of Mediawiki in Group-Office to work, Mediawiki MUST
be installed at the same host as Group-Office. To integrate Mediawiki with
Group-Office, do the following:

1. Copy modules/mediawiki/extensions/* to the extensions directory of
   mediawiki.

2. Add the following line to the LocalSettings.php file of mediawiki:
	
	
	$wgGroupPermissions['*']['read'] = false;
	$wgGroupPermissions['*']['createaccount'] = false;
	
	//https://www.mediawiki.org/wiki/Thread:Project:Support_desk/show_mediawiki_in_a_frame/reply_%282%29
	$wgEditPageFrameOptions = 'SAMEORIGIN';

	require_once "$IP/extensions/GOAuth_remoteuser.php";
	$wgAuth = new GOAuth_remoteuser();


3. Make sure the Mediawiki module is installed in Group-Office, and, as admin,
   set the full Mediawiki URL in the Group-Office Mediawiki Administration. If
   Group-Office and Mediawiki share the same host(domain name), and the URL is correct, you
   should immediately see Mediawiki, where your GO user settings are
   automatically transferred to Mediawiki.


###   Add image support   ###

Allow External Images soures
https://www.mediawiki.org/wiki/Manual:$wgAllowExternalImages
$wgAllowExternalImages = true;


Allow upload files to the wikie
https://www.mediawiki.org/wiki/Help:Images
$wgEnableUploads = true;

https://www.mediawiki.org/wiki/Manual:Configuring_file_uploads
sudo chown -R www-data:www-data images/



###   upload folder in group office!   ###

cd /home/groupoffice/public/
Create the folder mediawiki in data/public
Create the folder images in data/public/mediawiki
AND
sudo chown -R www-data:www-data images/

$wgUploadDirectory = "/home/groupoffice/public/mediawiki/images";
$wgUploadPath = "http://go61.loc/public/mediawiki/images";


<VirtualHost *:80>

        ServerName go61.loc
        DocumentRoot /var/www/groupoffice-6.1/www

				#mediawiki public folder
        Alias /public /home/groupoffice/public/
        <Directory /home/groupoffice/public/>
                Options -Indexes +FollowSymLinks
                AllowOverride None

                #Enable for apache 2.4
                Require all granted
        </Directory>
</VirtualHost>



