Pixelfed: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Peh (Diskussion | Beiträge) (erster Teil) |
Peh (Diskussion | Beiträge) |
||
Zeile 24: | Zeile 24: | ||
xyz00-pixelfed@h97:~/pixelfed$ git tag | xyz00-pixelfed@h97:~/pixelfed$ git tag | ||
xyz00-pixelfed@h97:~/pixelfed$ git checkout v0.11.4 | xyz00-pixelfed@h97:~/pixelfed$ git checkout v0.11.4 | ||
Installation von Composer: | |||
xyz00-pixelfed@h97:~/pixelfed$ cd | |||
xyz00-pixelfed@h97:~$ mkdir composer | |||
xyz00-pixelfed@h97:~$ cd composer/ | |||
xyz00-pixelfed@h97:~/composer$ php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | |||
xyz00-pixelfed@h97:~/composer$ php -r "if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" | |||
xyz00-pixelfed@h97:~/composer$ php composer-setup.php | |||
php -r "unlink('composer-setup.php');" | |||
== Links == | == Links == | ||
* https://docs.pixelfed.org/running-pixelfed/installation/ | * https://docs.pixelfed.org/running-pixelfed/installation/ |
Version vom 6. November 2022, 13:58 Uhr
Installation von Pixelfed
In HSAdmin werden anlegt:
- ein User:'xyz00-pixelfed' mit '/bin/bash' als Shell
- eine Domain 'pixelfed.hs-example.de'
- PostgreSQL-User und -Datenbank 'xyz00_pixelfed' (Passwort notieren)
Mit 'hsscript' sind das die folgenden Zeilen:
user.add({set:{name:'xyz00-pixelfed',shell:'/bin/bash',password:'xxxxxx'}}) domain.add({set:{name:'pixelfed.hs.example.de',user:'xyz00-pixelfed'}}) postgresqluser.add({set:{name:'xyz00_pixelfed',password:'xxxxxx'}}) postgresqldb.add({set:{name:'xyz00_pixelfed',owner:'xyz00_pixelfed'}})
Auf der Shell:
$ ssh -l xyz00 xyz00.hostsharing.net xyz00@h97:~$ sudo -u xyz00-pixelfed -i xyz00-pixelfed@h97:~$ cd doms/pixelfed.hs.example.de/ xyz00-pixelfed@h97:~/doms/pixelfed.hs.example.de$ rm -rf subs/www/ subs-ssl/www/ htdocs-ssl/.htaccess xyz00-pixelfed@h97:~/doms/pixelfed.hs.example.de$ cd xyz00-pixelfed@h97:~$ git clone https://github.com/pixelfed/pixelfed.git xyz00-pixelfed@h97:~/pixelfed$ git tag xyz00-pixelfed@h97:~/pixelfed$ git checkout v0.11.4
Installation von Composer:
xyz00-pixelfed@h97:~/pixelfed$ cd xyz00-pixelfed@h97:~$ mkdir composer xyz00-pixelfed@h97:~$ cd composer/ xyz00-pixelfed@h97:~/composer$ php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
xyz00-pixelfed@h97:~/composer$ php -r "if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
xyz00-pixelfed@h97:~/composer$ php composer-setup.php php -r "unlink('composer-setup.php');"