Pixelfed

Aus Hostsharing Wiki
Zur Navigation springen Zur Suche springen

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');"

Installation der PHP-Abhängigkeiten:

xyz00-pixelfed@h97:~/composer$ cd
xyz00-pixelfed@h97:~$ cd pixelfed/
xyz00-pixelfed@h97:~/pixelfed$ php ~/composer/composer.phar install --no-ansi --no-interaction --optimize-autoloader


Links