{"id":18555393,"url":"https://github.com/bearloga/wmf-mep-index","last_synced_at":"2025-10-12T22:54:16.722Z","repository":{"id":146996679,"uuid":"267164441","full_name":"bearloga/wmf-mep-index","owner":"bearloga","description":"Index of Wikimedia Modern Event Platform streams and schemas deployed in production","archived":false,"fork":false,"pushed_at":"2020-12-02T14:29:21.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-22T19:31:36.300Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://mep-index.wmflabs.org/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bearloga.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-26T22:24:44.000Z","updated_at":"2020-12-02T14:29:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"a673cdc6-af3d-478a-828e-06a22136adf1","html_url":"https://github.com/bearloga/wmf-mep-index","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bearloga/wmf-mep-index","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bearloga%2Fwmf-mep-index","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bearloga%2Fwmf-mep-index/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bearloga%2Fwmf-mep-index/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bearloga%2Fwmf-mep-index/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bearloga","download_url":"https://codeload.github.com/bearloga/wmf-mep-index/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bearloga%2Fwmf-mep-index/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279013283,"owners_count":26085250,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T21:26:25.705Z","updated_at":"2025-10-12T22:54:16.701Z","avatar_url":"https://github.com/bearloga.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Modern Event Platform Schema Index (Flattened)\n\n## Setup\n\n```bash\nsudo su\n# remove the existing directory, replace with this repo:\nrm -rf /var/www/html\ngit clone --recurse-submodules https://github.com/bearloga/wmf-mep-index /var/www/html\n```\n\nThe `--recurse-submodules` is required because the schema repositories from Gerrit are set up as submodules.\n\n### Updating\n\nOn dev side:\n\n```bash\ngit submodule foreach git pull origin master\ngit add -A\ngit commit -m \"Update submodules to latest commits\"\ngit push\n```\n\nOn prod side:\n\n```bash\nsudo su\ngit pull origin master\ngit submodule update\n```\n\n### CloudVPS\n\nMake a new instance (e.g. `mep-schemas-flat-01`) and add [`role::simplelap`](https://github.com/wikimedia/puppet/blob/production/modules/role/manifests/simplelap.pp) (instead of [`role::simplelamp2`](https://gerrit.wikimedia.org/r/plugins/gitiles/operations/puppet/+/production/modules/role/manifests/simplelamp2.pp), which includes MariaDB) in Puppet config for the instance in [Horizon](https://horizon.wikimedia.org/)\n\nSSH to `mep-schemas-flat-01.eqiad.wmflabs` and run `sudo puppet agent -t` to provision the instance with the `simplelamp2` role.\n\nSet up proxy (e.g. [mep-index.wmflabs.org](https://mep-index.wmflabs.org/)) in Horizon:\n\n| Hostname | Domain | Backend instance | Backend port |\n|:---------|:-------|:-----------------|-------------:|\n| `mep-index` | `wmflabs.org` | `mep-schemas-flat-01` | 80 |\n\n### User dirs\n\nThe easiest thing to do is to work outside /var/www/html by enabling user directories via:\n\n```bash\nmkdir ~/public_html\ntouch ~/public_html/index.html\nsudo a2enmod userdir\nsudo systemctl restart apache2\n```\n\nThen [mep-index.wmflabs.org/~bearloga/](https://mep-index.wmflabs.org/~bearloga/) (for example) should be accessible.\n\n#### PHP\n\nAfter applying the role, if you get an error message like this while provisioning:\n\n```\nNotice: The LDAP client stack for this host is: sssd/sudo\nNotice: /Stage[main]/Profile::Ldap::Client::Labs/Notify[LDAP client stack]/message: defined 'message' as 'The LDAP client stack for this host is: sssd/sudo'\nNotice: /Stage[main]/Packages::Php_cli/Package[php-cli]/ensure: created\nNotice: /Stage[main]/Httpd/Httpd::Mod_conf[php7.3]/Exec[ensure_present_mod_php7.3]/returns: ERROR: Module mpm_event is enabled - cannot proceed due to conflicts. It needs to be disabled first!\nNotice: /Stage[main]/Httpd/Httpd::Mod_conf[php7.3]/Exec[ensure_present_mod_php7.3]/returns: ERROR: Could not enable dependency mpm_prefork for php7.3, aborting\nNotice: /Stage[main]/Httpd/Httpd::Mod_conf[php7.3]/Exec[ensure_present_mod_php7.3]/returns: Considering dependency mpm_prefork for php7.3:\nNotice: /Stage[main]/Httpd/Httpd::Mod_conf[php7.3]/Exec[ensure_present_mod_php7.3]/returns: Considering conflict mpm_event for mpm_prefork:\nNotice: /Stage[main]/Httpd/Httpd::Mod_conf[php7.3]/Exec[ensure_present_mod_php7.3]/returns: Considering conflict mpm_worker for mpm_prefork:\nError: '/usr/sbin/a2enmod php7.3' returned 1 instead of one of [0]\nError: /Stage[main]/Httpd/Httpd::Mod_conf[php7.3]/Exec[ensure_present_mod_php7.3]/returns: change from 'notrun' to ['0'] failed: '/usr/sbin/a2enmod php7.3' returned 1 instead of one of [0]\nNotice: /Stage[main]/Httpd/Service[apache2]: Dependency Exec[ensure_present_mod_php7.3] has failures: true\n```\n\nRun these commands to fix:\n\n```bash\nsudo a2dismod mpm_event\nsudo a2enmod php7.3\nsudo systemctl restart apache2\n```\n\n**Note**: for local development on macOS, `sudo nano /etc/apache2/httpd.conf` and uncomment the following line (number 187 or so):\n\n```\nLoadModule php7_module libexec/apache2/libphp7.so\n```\n\nand restart the service via `sudo apachectl restart`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbearloga%2Fwmf-mep-index","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbearloga%2Fwmf-mep-index","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbearloga%2Fwmf-mep-index/lists"}