To detect if your PHP script is being called via a web client or via CLI, you can use the php_sapi_name function. If you use this simple code: echo php_sapi_name(); Then from a web browser you will see either fpm-fcgi or cgi-fcgi (depending on PHP handler your site uses) and from CLI you will see cli.
Continue ReadingNextcloud App Bundles
Nextcloud has released a new concept in apps — app bundles. An app bundle is a set of apps, that either work together or complement each other to achieve a shared goal. See their blog post Discover Nextcloud Groupware App Bundle to learn more about the Groupware app bundle.
Continue ReadingSite Conversions
We offer conversions of sites from static HTML or platforms such as Wikispaces, WordPress, Joomla, Drupal and others. We can convert such sites to target platforms including WordPress, DokuWiki and MediaWiki. Contact us for more details.
Continue ReadingDisable Anonymous Registration on MediaWiki
By default, MediaWiki allows anyone to register as a user. For private wikis, if you want to disable that, just add this: $wgGroupPermissions[‘*’][‘createaccount’] = false; to your LocalSettings.php file.
Continue ReadingPHP CLI Version
The default PHP interpreter for CiviHosting today is PHP 7.2. But that is only for web service, not for CLI. For CLI, the default version is 7.2. All servers have PHP 7.1, 7.2, 7.3 and 7.4 also available for CLI of course. To run PHP 7.1, use: php71.cli To run PHP 7.2, use: php7.cli To run PHP 7.3, use: php73.cli To run PHP 7.4, use: php74.cli To run drush with a different version of PHP, use the full path for drush after the PHP executable, meaning something like this: php73.cli /usr/local/bin/drush
Continue ReadingWhat is MediaWiki
MediaWiki is free wiki software that anyone can download and use to build any wiki they want. MediaWiki is old and established and works, but is also under constant development and is therefore also modern and up to date. For more information, see our navigation links to the right.
Continue ReadingGetting Started with DokuWiki
Installation This page presumes you already have DokuWiki installed and working. If not, see our How to Install DokuWiki page. The last step there is how to login, so we will carry on here from that step. Edit the Home Page To get to your home page, either click the red “start” link or click on the DokuWiki logo on the top left of your site. Then you will see the “This topic does not exist yet” message: To create the page, put your mouse on the pencil icon on the far right side of the page (directly to the right of “This topic does not exist yet”) and a… Read More
Continue ReadingHow to Install Jekyll
We will of course install Jekyll for you, but if you prefer to do it yourself, here is a sample install procedure to create a new blog: 1. Install Jekyll and bundler gems gem install jekyll bundler 2. Create a new Jekyll site at ./myblog jekyll new myblog 3. Change into your new directory cd myblog 4. Create a new app via the Web Apps section of your hosting Control Panel and use these values: Engine: Custom Name: Jekyll (or whatever you want) Subdomain: Your choice Port: System will assign this Memory: Default Deployment Directory: /private/jekyll/myblog Start Command: /home/myuser/private/.rvm/gems/ruby-2.5.3/wrappers/bundle exec jekyll serve where myuser is your hosting account username. 5.… Read More
Continue ReadingDokuWiki
What Is DokuWiki? DokuWiki is lightweight open source wiki software for documentation, manuals, internal knowledge bases, private team wikis, and simple public wiki sites. DokuWiki is written in PHP and does not require a database. It stores pages, revisions, configuration, and user data in files, which makes it simpler to host, back up, migrate, and maintain than many database-backed wiki platforms. Start DokuWiki Hosting Ask Which Wiki Fits No Database Required DokuWiki stores content in plain text files, which makes backups and migrations straightforward. Good for Documentation It is a strong fit for manuals, policies, internal documentation, project notes, and knowledge bases. Easy Administration Access control, plugins, templates, and many… Read More
Continue ReadingHow to Create a database for MediaWiki
Login to your hosting Control panel and click on the “MySQL Databases” tool. Enter a name in the Database name box and click on the Create button. We recommend you use mediawiki. The database name will be automatically prefixed with your hosting username, so you don’t have to worry about this database name being already used. The database name can contain only regular letters, numbers and underscores. The master MySQL user is the same as your hosting account Control Panel username, and it’s password is the same as the Control Panel password and this user has all rights to all databases you create. You can either use that user, or… Read More
Continue Reading