Page MenuHomePhabricator
Paste P43914

phorge install example
ActivePublic

Authored by Dzahn on Feb 8 2023, 11:36 PM.
Tags
None
Referenced Files
F36816498: phorge install example
Feb 8 2023, 11:40 PM
F36816496: phorge install example
Feb 8 2023, 11:39 PM
F36816495: phorge install example
Feb 8 2023, 11:38 PM
F36816494: phorge install example
Feb 8 2023, 11:38 PM
F36816493: phorge install example
Feb 8 2023, 11:37 PM
F36816490: phorge install example
Feb 8 2023, 11:36 PM
Subscribers
fix mysql prives for phorge install:
- become real root user (NOT sudo)
- mysql -u root -p <enter>
- ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyN3wP4ssw0rd';
root@phorge-1001:/srv/phorge# ./bin/config set mysql.pass MyN3wP4ssw0rd
$ ./bin/storage upgrade
Before running storage upgrades, you should take down the web interface and
stop any running daemons (you can disable this warning with --force).
systemctl stop apache2
Are you ready to continue? [y/N] y
Loading quickstart template onto "localhost"...
...
Applying schema adjustments...
Done.
Completed applying all schema adjustments.
ANALYZE Analyzing tables...
Done.
ANALYZED Analyzed 527 table(s).
systemctl start apache2
https://phorge.wmcloud.org/auth/register/
register first user (admin, Administrator, enter email)
https://phorge.wmcloud.org/config/issue/
-> 18 setup issues

Event Timeline

This is not a leaked password, it's the example used in upstream docs :)

Dzahn edited the content of this paste. (Show Details)
Dzahn edited the content of this paste. (Show Details)
Dzahn edited the content of this paste. (Show Details)

./bin/config set phabricator.base-uri http://phorge.wmcloud.org/

Hi @Dzahn - are you aware of any Task about the adoption of Phorge? I've just found this Paste at the moment

Also, maybe it could be a good idea to mirror the upstream Phorge repository

https://we.phorge.it/source/phorge/

I ask since I'm hammering a lot Phorge in these days with proposed patches and day by day they are approved, and I wonder if I can help in any way here too.

Phorge has a Tag for Wikimedia for example:

https://we.phorge.it/project/view/75/

The code that installs it is at modules/profile/manifests/phorge.pp in operations/puppet git repo.

`# SPDX-License-Identifier: Apache-2.0
# https://we.phorge.it - fork of Phabricator
class profile::phorge(
    String $server_name = lookup('profile::phorge::server_name'),
    Stdlib::Unixpath $install_path_arcanist = lookup('profile::phorge::install_path_arcanist'),
    Stdlib::HTTPSUrl $git_origin_arcanist = lookup('profile::phorge::git_origin_arcanist'),
    Stdlib::Unixpath $install_path_phorge = lookup('profile::phorge::install_path_phorge'),
    Stdlib::HTTPSUrl $git_origin_phorge = lookup('profile::phorge::git_origin_phorge'),
    Stdlib::Unixpath $repo_path = lookup('profile::phorge::repo_path'),
){

    ensure_packages([
        'libapache2-mod-php',
        'git',
        'php-mbstring',
        'php-curl',
        'php-mysql',
        'php-zip',
        'php-gd',
        'php-apcu',
        'python3-pygments',
    ])

    $httpd_modules = ['rewrite', 'headers', 'php7.4']

    class { 'httpd::mpm':
        mpm    => 'prefork',
    }

    class { 'httpd':
        modules             => $httpd_modules,
        purge_manual_config => false,
        require             => Class['httpd::mpm'],
    }

    $document_root = "${install_path_phorge}/webroot"

    httpd::site { 'phorge':
        content => template('profile/phorge/httpd.conf.erb'),
    }
  wmflib::dir::mkdir_p([$install_path_arcanist, $install_path_phorge, $repo_path])

    git::clone { 'arcanist':
        ensure    => 'present',
        origin    => $git_origin_arcanist,
        directory => $install_path_arcanist,
        branch    => 'master',
    }

    git::clone { 'phorge':
        ensure    => 'present',
        origin    => $git_origin_phorge,
        directory => $install_path_phorge,
        branch    => 'master',
    }

}
cloud/eqiad1/devtools/common.yaml:profile::phorge::git_origin_arcanist: 'https://we.phorge.it/source/arcanist.git'
cloud/eqiad1/devtools/common.yaml:profile::phorge::git_origin_phorge: 'https://we.phorge.it/source/phorge.git'

^ here you see we are following your upstream repo