Pixelfed: Unterschied zwischen den Versionen

Aus Hostsharing Wiki
Zur Navigation springen Zur Suche springen
(erster Teil)
 
(env Datei)
 
(2 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
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');"
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
xyz00-pixelfed@h97:~$ cd pixelfed/
xyz00-pixelfed@h97:~/pixelfed$ cat .env
APP_NAME="Pixelfed"
APP_ENV="production"
APP_KEY=base64:xxx
APP_DEBUG="false"
OPEN_REGISTRATION="false"
ENFORCE_EMAIL_VERIFICATION="false"
PF_MAX_USERS="1000"
OAUTH_ENABLED="true"
PF_OPTIMIZE_IMAGES="true"
IMAGE_QUALITY="80"
MAX_PHOTO_SIZE="15000"
MAX_CAPTION_LENGTH="500"
MAX_ALBUM_LENGTH="4"
APP_URL="https://pixelfed.hs-example.de"
APP_DOMAIN="pixelfed.hs-example.de"
ADMIN_DOMAIN="pixelfed.hs-example.de"
SESSION_DOMAIN="pixelfed.hs-example.de"
TRUST_PROXIES="*"
DB_CONNECTION="pgsql"
DB_HOST="127.0.0.1"
DB_PORT="5432"
DB_DATABASE="xyz00_pixelfed"
DB_USERNAME="xyz00_pixelfed"
DB_PASSWORD="xxxx"
REDIS_CLIENT="predis"
REDIS_SCHEME="unix"
REDIS_HOST="null"
REDIS_PASSWORD="eiNeiyohnie7heivaiw4wu3a"
REDIS_PORT="null"
REDIS_PATH="/home/pacs/xyz00/users/pixelfed/redis/var/redis-server.sock"
SESSION_DRIVER="database"
CACHE_DRIVER="redis"
QUEUE_DRIVER="redis"
BROADCAST_DRIVER="log"
LOG_CHANNEL="stack"
HORIZON_PREFIX="horizon-"
ACTIVITY_PUB="true"
AP_REMOTE_FOLLOW="true"
AP_INBOX="true"
AP_OUTBOX="true"
AP_SHAREDINBOX="true"
EXP_EMC="true"
MAIL_DRIVER=smtp
MAIL_HOST=127.0.0.1
MAIL_PORT=4025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS="webmaster@pixelfed.hs-example.de"
MAIL_FROM_NAME="Pixelfed"
xyz00-pixelfed@h97:~$ cd pixelfed/
xyz00-pixelfed@h97:~/pixelfed$ php $HOME/pixelfed/artisan horizon
xyz00-pixelfed@h97:~/pixelfed$ php $HOME/pixelfed/artisan key:generate
  52  vi .env
xyz00-pixelfed@h97:~/pixelfed$ php artisan storage:link
xyz00-pixelfed@h97:~/pixelfed$ php artisan migrate --force
xyz00-pixelfed@h97:~/pixelfed$ php artisan import:cities
  56  vi .env
xyz00-pixelfed@h97:~/pixelfed$ php artisan instance:actor
  58  vi .env
xyz00-pixelfed@h97:~/pixelfed$ php artisan passport:keys
xyz00-pixelfed@h97:~/pixelfed$ php artisan route:cache
xyz00-pixelfed@h97:~/pixelfed$ php artisan view:cache
xyz00-pixelfed@h97:~/pixelfed$ php artisan config:cache
xyz00-pixelfed@h97:~/pixelfed$ php artisan horizon:install
xyz00-pixelfed@h97:~/pixelfed$ php artisan horizon:publish
xyz00-pixelfed@h97:~/pixelfed$ php artisan horizon


== Links ==
== Links ==


* https://docs.pixelfed.org/running-pixelfed/installation/
* https://docs.pixelfed.org/running-pixelfed/installation/

Aktuelle Version vom 6. November 2022, 15:04 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');"

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


xyz00-pixelfed@h97:~$ cd pixelfed/
xyz00-pixelfed@h97:~/pixelfed$ cat .env
APP_NAME="Pixelfed"
APP_ENV="production"
APP_KEY=base64:xxx
APP_DEBUG="false"
OPEN_REGISTRATION="false"
ENFORCE_EMAIL_VERIFICATION="false"
PF_MAX_USERS="1000"
OAUTH_ENABLED="true"
PF_OPTIMIZE_IMAGES="true"
IMAGE_QUALITY="80"
MAX_PHOTO_SIZE="15000"
MAX_CAPTION_LENGTH="500"
MAX_ALBUM_LENGTH="4"
APP_URL="https://pixelfed.hs-example.de"
APP_DOMAIN="pixelfed.hs-example.de"
ADMIN_DOMAIN="pixelfed.hs-example.de"
SESSION_DOMAIN="pixelfed.hs-example.de"
TRUST_PROXIES="*"
DB_CONNECTION="pgsql"
DB_HOST="127.0.0.1"
DB_PORT="5432"
DB_DATABASE="xyz00_pixelfed"
DB_USERNAME="xyz00_pixelfed"
DB_PASSWORD="xxxx"
REDIS_CLIENT="predis"
REDIS_SCHEME="unix"
REDIS_HOST="null"
REDIS_PASSWORD="eiNeiyohnie7heivaiw4wu3a"
REDIS_PORT="null"
REDIS_PATH="/home/pacs/xyz00/users/pixelfed/redis/var/redis-server.sock"
SESSION_DRIVER="database"
CACHE_DRIVER="redis"
QUEUE_DRIVER="redis"
BROADCAST_DRIVER="log"
LOG_CHANNEL="stack"
HORIZON_PREFIX="horizon-"
ACTIVITY_PUB="true"
AP_REMOTE_FOLLOW="true"
AP_INBOX="true"
AP_OUTBOX="true"
AP_SHAREDINBOX="true"
EXP_EMC="true"
MAIL_DRIVER=smtp
MAIL_HOST=127.0.0.1
MAIL_PORT=4025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS="webmaster@pixelfed.hs-example.de"
MAIL_FROM_NAME="Pixelfed"


xyz00-pixelfed@h97:~$ cd pixelfed/
xyz00-pixelfed@h97:~/pixelfed$ php $HOME/pixelfed/artisan horizon
xyz00-pixelfed@h97:~/pixelfed$ php $HOME/pixelfed/artisan key:generate
  52  vi .env
xyz00-pixelfed@h97:~/pixelfed$ php artisan storage:link
xyz00-pixelfed@h97:~/pixelfed$ php artisan migrate --force
xyz00-pixelfed@h97:~/pixelfed$ php artisan import:cities
  56  vi .env
xyz00-pixelfed@h97:~/pixelfed$ php artisan instance:actor
  58  vi .env
xyz00-pixelfed@h97:~/pixelfed$ php artisan passport:keys
xyz00-pixelfed@h97:~/pixelfed$ php artisan route:cache
xyz00-pixelfed@h97:~/pixelfed$ php artisan view:cache
xyz00-pixelfed@h97:~/pixelfed$ php artisan config:cache
xyz00-pixelfed@h97:~/pixelfed$ php artisan horizon:install
xyz00-pixelfed@h97:~/pixelfed$ php artisan horizon:publish
xyz00-pixelfed@h97:~/pixelfed$ php artisan horizon


Links