How to Install Semantic MediaWiki

Simple instructions, that work on CiviHosting: 1. Install composer and MediaWiki. 🙂 2. Edit composer.json and add this line: “mediawiki/semantic-media-wiki”: “3.0.2” in the “required” section. 3. Run composer update –no-dev 4. Add enableSemantics( ‘example.org’ ); to your LocalSettings.php and change that “example.org” to your URL 5. Run php7.cli maintenance/update.php That’s it.

Continue Reading

WP Super Cache

We recommend WP Super Cache for caching in WordPress. In our experience, it works best, and it’s also very easy to use. It works best alone, meaning without any other caching tools added. Just install it, and then visit the settings page (under the main Settings menu in your WordPress dashboard) and and then for “Cache Delivery Method” choose “Expert” and then click Update. That’s it. Now it works by itself.

Continue Reading

System Side Compression

All of our servers come equipped with mod_deflate and mod_brotli. We recommend this code for mod_deflate: AddOutputFilterByType DEFLATE text/css text/csv text/html text/plain text/richtext text/sgml text/tab-separated-values application/javascript application/x-javascript httpd/unix-directory AddOutputFilter DEFLATE html htm shtml php php4 pl rb py cgi css js txt BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSIE !no-gzip !gzip-only-text/html and this for mod_brotli: AddOutputFilterByType BROTLI_COMPRESS text/css text/csv text/html text/plain text/richtext text/sgml text/tab-separated-values application/javascript application/x-javascript httpd/unix-directory

Continue Reading

How to Install CiviCRM in Drupal 8

CiviCRM for Drupal 8 can only be installed on one of our WebApps accounts. Here is how to do it: 1. Create an App called nodeapp in a subdomain different from the one where Drupal needs to be installed. 2. Log in to the app via the command line running sureapp project shell nodeapp 3. Install bower running npm install -g bower 4. Create a Drupal installation in the ~/www/www/drupal8 directory running php7.cli ~/private/composer.phar create-project roundearth/drupal-civicrm-project:8.x-dev ~/www/www/drupal8 –no-interaction 5. You will now need to complete the Drupal installation by accessing the installation wizard via your browser 6. Install CiviCRM by running php7.cli ~/www/www/drupal8/vendor/drush/drush/drush.php en -y civicrm 7. If you were… Read More

Continue Reading

How to Install Drupal 8

Drupal 8 runs on all of our hosting packages. To install Drupal 8 on CiviHosting: composer create-project drupal-composer/drupal-project:8.x-dev some-dir –no-interaction where you can replace some-dir with whatever directory you want. If you are in /www/www/ then you could use just a dot: .. If you now try to run Drush, it will fail however. 🙁 That is due to a PHP version issue. By default, the command line executes PHP with the 5.6 interpreter. To work around this, you can run drush like this: php7.cli vendor/drush/drush/drush.php Alternatively, you can set the following alias in the .bashrc file: alias drush=’php7.cli ~/www/www/drupal8/vendor/drush/drush/drush.php’ and then drush will work.

Continue Reading

SSO for MediaWiki with Azure

There is a an excellent tutorial on Medium.com called Mediawiki and Azure AD Single Sign On with step by step instructions how to set SSO for MediaWiki with Azure, but it’s a bit outdated. One note is that the Reply URLs is now called “Redirect URIs” in Azure, in the Authentication tab. We also used both of these URI’s there: https://wikisite.com/simplesaml/module.php/saml/sp/metadata.php/default-sp https://wikisite.com/simplesaml/module.php/saml/sp/saml2-acs.php/default-sp as it wasn’t clear which one was working, but with both, it anyhow works. 🙂 Beyond that, the code for the username provided did not work for us, so we left the code and used this for the settings: $wgSimpleSAMLphp_UsernameAttribute = ‘http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname’; Aside from that, the basic directions… Read More

Continue Reading

CiviHosting vs DigitalOcean

We recently received the follow email (text adjusted slightly) from a client who uses us for hosting Nextcloud on a VPS, including monthly upgrades. The relevant part is this: The problem is that my boss is complaining and wants to move it to our own hosting. He says it will be way less to host ourselves on digital ocean and I can update it myself, I would rather not do that, so can you help us to understand why it’s worth it to stay with you? This is a very good question — very valid. The answer we provided is also good. We answered that the boss is correct that… Read More

Continue Reading

WikiMedia Foundation Joins the W3C

The WikiMedia Foundation has announced that they are joining the World Wide Web Consortium! In a blog post by Gilles Dubuc, a Senior Software Engineer with WikiMeda, the Foundation has declared that they are “becoming a member of the W3C,” which means they are joining the world wide effort to standardize the underlying code structure of the Internet. As Dubuc writes: Founded by Tim Berners-Lee in 1994, W3C works with hundreds of organizations to ensure that the web’s basic building blocks—like HTML or CSS—remain consistent across browsers, platforms, and more. You can learn more about what W3C does over on Wikipedia. Joining the W3C fits right into our 2030 strategy,… Read More

Continue Reading

ConfirmEdit MediaWiki Extension

One of the most popular MediaWiki extensions is ConfirmEdit, and with good reason. It comes bundled with MediaWiki, since version 1.18, so you don’t need to download it. You just need to enable it and then configure it. What is it? In short: The ConfirmEdit extension lets you use various different CAPTCHA techniques, to try to prevent spambots and other automated tools from editing your wiki, as well as to foil automated login attempts that try to guess passwords. To enable, just add this to your LocalSettings.php: wfLoadExtension( ‘ConfirmEdit’ ); Now you need to configure it, as the default configuration is not, in general, terribly helpful. They say there that… Read More

Continue Reading