2024-07-26 16:38:55 +03:00
# <img align="right" src="/Web/static/img/logo_shadow.png" alt="openvk" title="openvk" width="15%">OpenVK
2021-12-07 16:02:47 +03:00
2021-12-31 08:21:48 +03:00
_[Русский](README_RU.md)_
2023-02-27 16:03:57 +03:00
**OpenVK** is an attempt to create a simple CMS that ~~cosplays~~ imitates old VKontakte. Code provided here is not stable yet.
2021-12-07 16:02:47 +03:00
2024-11-04 00:00:36 +03:00
VKontakte belongs to VK (formerly Mail.ru Group).
2021-12-07 16:02:47 +03:00
2024-04-19 11:05:24 +03:00
To be honest, we don't know whether if it even works. However, this version is maintained and we will be happy to accept your bugreports [in our bug tracker ](https://github.com/openvk/openvk/projects/1 ). You should also be able to submit them using [ticketing system ](https://ovk.to/support?act=new ) (you will need an OpenVK account for this).
2021-12-07 16:02:47 +03:00
## When's the release?
2023-02-27 16:03:57 +03:00
We will release OpenVK as soon as it's ready. As for now, you can:
2022-03-27 23:09:16 +03:00
* `git clone` this repo's master branch (use `git pull` to update)
2022-04-10 10:46:14 +03:00
* Grab a prebuilt OpenVK distro from [GitHub artifacts ](https://nightly.link/openvk/archive/workflows/nightly/master/OpenVK%20Archive.zip )
2021-12-07 16:02:47 +03:00
## Instances
2023-04-27 04:46:38 +03:00
A list of instances can be found in [our wiki of this repository ](https://github.com/openvk/openvk/wiki/Instances ).
2021-12-07 16:02:47 +03:00
## Can I create my own OpenVK instance?
2023-02-27 16:03:57 +03:00
Yes! And you are very welcome to.
2021-12-31 08:21:48 +03:00
2022-03-27 23:09:16 +03:00
However, OVK makes use of Chandler Application Server. This software requires extensions, that may not be provided by your hosting provider (namely, sodium and yaml. these extensions are available on most of ISPManager hostings).
2021-12-31 08:21:48 +03:00
2021-12-07 16:02:47 +03:00
If you want, you can add your instance to the list above so that people can register there.
2024-02-19 13:41:38 +03:00
### System requirements
Here is our minimum hardware recommendation:
* **CPU: Recent** (AMD Zen2 or equivalent) quad-core 2GHz+ CPU
* **RAM:** At least 2GB RAM (we recommend 6GB or 8GB for OpenVK with Kafka)
* **Minimum database space:** 10GB
2021-12-07 16:02:47 +03:00
### Installation procedure
2024-11-03 17:37:35 +03:00
1. Install PHP 7.4, web-server, Composer, Node.js, NPM and [Chandler ](https://github.com/openvk/chandler )
2022-01-26 15:05:12 +03:00
2023-10-29 17:42:55 +03:00
* PHP 8 is still being tested; the functionality of the engine on this version of PHP is not yet guaranteed.
2022-01-26 15:05:12 +03:00
2022-04-09 18:47:47 +03:00
2. Install MySQL-compatible database.
2023-02-27 16:03:57 +03:00
* We recommend using Percona Server, but any MySQL-compatible server should work too.
* Server should be compatible with at least MySQL 5.6, MySQL 8.0+ is recommended.
2022-04-09 18:47:47 +03:00
* Support for MySQL 4.1+ is WIP, replace `utf8mb4` and `utf8mb4_unicode_520_ci` with `utf8` and `utf8_unicode_ci` in SQLs.
3. Install [commitcaptcha ](https://github.com/openvk/commitcaptcha ) and OpenVK as Chandler extensions like this:
2022-01-26 15:05:12 +03:00
```bash
2021-12-24 12:28:32 +03:00
git clone https://github.com/openvk/openvk /path/to/chandler/extensions/available/openvk
2021-12-07 16:02:47 +03:00
git clone https://github.com/openvk/commitcaptcha /path/to/chandler/extensions/available/commitcaptcha
```
2022-01-26 15:05:12 +03:00
2022-04-09 18:47:47 +03:00
4. And enable them:
2022-01-26 15:05:12 +03:00
```bash
2021-12-07 16:02:47 +03:00
ln -s /path/to/chandler/extensions/available/commitcaptcha /path/to/chandler/extensions/enabled/
ln -s /path/to/chandler/extensions/available/openvk /path/to/chandler/extensions/enabled/
```
2022-01-26 15:05:12 +03:00
2022-04-09 18:47:47 +03:00
5. Import `install/init-static-db.sql` to the **same database** you installed Chandler to and import all sqls from `install/sqls` to the **same database**
2022-04-10 11:14:03 +03:00
6. Import `install/init-event-db.sql` to a **separate database** (Yandex.Clickhouse can also be used, highly recommended)
2022-04-09 18:47:47 +03:00
7. Copy `openvk-example.yml` to `openvk.yml` and change options to your liking
8. Run `composer install` in OpenVK directory
9. Run `composer install` in commitcaptcha directory
2024-11-03 17:37:35 +03:00
10. Move to `Web/static/js` and execute `npm install`
2022-04-09 18:47:47 +03:00
11. Set `openvk` as your root app in `chandler.yml`
2021-12-07 16:02:47 +03:00
Once you are done, you can login as a system administrator on the network itself (no registration required):
2022-01-26 15:05:12 +03:00
2021-12-07 16:23:07 +03:00
* **Login**: `admin@localhost.localdomain6`
* **Password**: `admin`
2022-03-27 23:09:16 +03:00
* It is recommended to change the password of the built-in account or disable it.
2021-12-07 16:02:47 +03:00
2024-04-19 11:05:24 +03:00
💡 Confused? Full installation walkthrough is available [here ](https://docs.ovk.to/openvk_engine/centos8_installation/ ) (CentOS 8 [and ](https://almalinux.org/ ) [family ](https://yum.oracle.com/oracle-linux-isos.html )).
2021-12-07 16:02:47 +03:00
2022-10-30 14:44:14 +03:00
### Looking for Docker or Kubernetes deployment?
See `install/automated/docker/README.md` and `install/automated/kubernetes/README.md` for Docker and Kubernetes deployment instructions.
2024-01-02 23:27:30 +03:00
### If my website uses OpenVK, should I release its sources?
2021-12-31 08:21:48 +03:00
2023-02-27 16:03:57 +03:00
It depends. You can keep the sources to yourself if you do not plan to distribute your website binaries. If your website software must be distributed, it can stay non-OSS provided the OpenVK is not used as a primary application and is not modified. If you modified OpenVK for your needs or your work is based on it and you are planning to redistribute this, then you should license it under terms of any LGPL-compatible license (like OSL, GPL, LGPL etc).
2021-12-07 16:02:47 +03:00
## Where can I get assistance?
You may reach out to us via:
2022-01-26 15:05:12 +03:00
2023-02-27 16:03:57 +03:00
* [Bug Tracker ](https://github.com/openvk/openvk/projects/1 )
2024-04-19 11:05:24 +03:00
* [Ticketing System ](https://ovk.to/support?act=new )
2023-02-27 16:03:57 +03:00
* Telegram Chat: Go to [our channel ](https://t.me/openvkenglish ) and open discussion in our channel menu.
2021-12-07 16:02:47 +03:00
* [Reddit ](https://www.reddit.com/r/openvk/ )
2023-02-27 16:03:57 +03:00
* [GitHub Discussions ](https://github.com/openvk/openvk/discussions )
* Matrix Chat: #openvk:matrix .org
2021-12-07 16:02:47 +03:00
2023-02-27 16:03:57 +03:00
**Attention**: bug tracker, board, Telegram and Matrix chat are public places, ticketing system is being served by volunteers. If you need to report something that should not be immediately disclosed to general public (for instance, a vulnerability), please contact us directly via this email: **openvk [at] tutanota [dot] com**
2021-12-07 16:02:47 +03:00
< a href = "https://codeberg.org/OpenVK/openvk" >
< img alt = "Get it on Codeberg" src = "https://codeberg.org/Codeberg/GetItOnCodeberg/media/branch/main/get-it-on-blue-on-white.png" height = "60" >
< / a >