Installation and update
Requirements
- Apache web server 1.3.34 or above with the ability to use local .htaccess files (mod_rewrite module is optional, but highly recommended).
- MySQL database 5.0 or above.
- PHP 7.2.5 or above with PDO, pdo_mysql, cURL, mbstring and GD extensions.
Getting the sources
At the moment there are several options to get the source of Mibew Messenger.
Prebuilt version
This version should be used in most cases. The installation package is just
a .zip
archive (.tar.gz
archive is also available) with all files of
Mibew Messenger. It contains all third party dependencies too. The link to
the current stable version is available at the
dedicated page on the official site of the
project.
Building from sources
Prebuilt version cannot suit all needs of the community. In some cases a user may be interested in the latest development version of Mibew Messenger, or in using custom (patched) version of the Core.
The following instructions are addressed to users who have basic knowledge about node.js, npm, Gulp, and Composer.
There are several steps one should take before using the development version of Mibew Messenger from the repository:
- Obtain a local copy of the repository using
git clone
, download button, or in another way. - Make sure that PHP is installed and can be used in CLI mode.
- Install node.js and npm.
- Install Gulp.
- Navigate to
src/
directory of the local copy of the repository. - Install npm dependencies using
npm install
. - Run Gulp to build Mibew Messenger using
gulp default
.
Finally, .tar.gz
and .zip
archives of the ready-to-use development version
of Mibew Messenger will be available in src/release
directory.
Installation
When the archive with Mibew Messenger is downloaded the installation process can be started. Here are the instructions:
- Create the directory with name 'mibew' in the document root of your website.
- Upload all files from the installation archive (retaining the directory
structure) into the created directory.
Make sure that both you and your web server can access the contents of the
directory. On *nix platform you may have to manually set the permissions
bitmask to
0755
(chmod 0755 mibew
). - In case of *nix platform change the owner of
mibew/files/avatar
andmibew/cache
directories to the user of the web server (depending on system the name of the user could vary, for example it can bewww
orwww-data
). The owner should have all rights on the directoriesmibew/files/avatar
andmibew/cache
(chmod 0700 mibew/files/avatar && chmod 0700 mibew/cache
). - Create a MySQL database with the name
mibew
. - Copy the file
mibew/configs/default_config.yml
tomibew/configs/config.yml
. - Edit
mibew/configs/config.yml
to specify the information needed to connect to the database. - Using your web browser visit
http://<yourdomain>/mibew/install
and perform step-by-step installation via the web interface. - Delete the
mibew/install.php
file. - Login as
user: `admin` password: `<your password>`
Configure periodically running tasks by setting up an automated process to access the web page
http://<yourdomain>/cron?cron_key=<cron key>
The full URL including the secret "cron key" used to protect against unauthorized access can be seen on the 'General' tab at the 'Settings' page in the administrative interface of your Mibew Messenger.
Update
Starting from the 2.0.0-beta.1 version Mibew Messenger can be updated to later versions using built-in update tool.
Please note that the update tool doesn't fully automate the whole update process, but only the database migrations.
Also please note that there are neither migration tools nor update guides for the obsolete 1.6.x versions of Mibew Messenger.
Here are the instructions for the update process:
- Backup your
mibew/configs/config.yml
file. - Backup your
mibew/files/avatar
directory. - Backup your database. Although it's not required, it's strongly recommended to do so.
- Disable all plugins.
- Delete all items in
mibew
directory on the server. - Upload all files from the installation archive (retaining the directory
structure) into
mibew
directory. - In case of *nix platform change the owner of
mibew/files/avatar
andmibew/cache
directories to the user of the web server (depending on system the name of the user could vary, for example it can bewww
orwww-data
). The owner should have all rights on the directoriesmibew/files/avatar
andmibew/cache
(chmod 0700 mibew/files/avatar && chmod 0700 mibew/cache
). - Restore all Mibew Messenger settings in
mibew/configs/config.yml
. - Restore contents of
mibew/files/avatar
directory. - Using your web browser Visit
http://<yourdomain>/mibew/update/
and follow the instructions to update the database tables (if needed). - Delete the
mibew/install.php
file. - Enable disabled plugins.
Get started
Congratulations! You finished the installation/update process. Now you should take several steps to get started:
- Configure and generate the button code at
http://<yourdomain>/mibew/operator/button-code
. - Add HTML code of the button to a target's site markup.
- Wait for visitors on 'Pending users' page in the administrative interface
of your Mibew Messenger (i.e.
http://<yourdomain>/mibew/operator/users
).