„README.md“ ändern

This commit is contained in:
Mario Voigt 2018-09-23 13:31:58 +02:00
parent f5ea315255
commit 2b5d94b27c

View File

@ -2,7 +2,7 @@
Due to the lack of good description on how to setup Koel i decided to publish this manual because the installation of Koel required some hours for myself. I hope you will come to a result quicker than me with this cooking recipe ;-) Due to the lack of good description on how to setup Koel i decided to publish this manual because the installation of Koel required some hours for myself. I hope you will come to a result quicker than me with this cooking recipe ;-)
# Clone Repository ## Clone Repository
``` ```
cd /opt cd /opt
git clone https://github.com/phanan/koel.git git clone https://github.com/phanan/koel.git
@ -10,18 +10,18 @@ cd koel
git checkout v3.7.2 git checkout v3.7.2
``` ```
# Install Software Basics ## Install Software Basics
``` ```
apt-get install php php-xml php-mbstring php-curl php-zip php-pgsql postgresql apache2 apt-get install php php-xml php-mbstring php-curl php-zip php-pgsql postgresql apache2
``` ```
# Install NodeJS ## Install NodeJS
``` ```
curl -sL https://deb.nodesource.com/setup_10.x | bash - curl -sL https://deb.nodesource.com/setup_10.x | bash -
apt-get install -y nodejs apt-get install -y nodejs
``` ```
# Install Yarn ## Install Yarn
``` ```
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
@ -29,7 +29,7 @@ apt-get update
apt-get install yarn apt-get install yarn
``` ```
# Get Composer ## Get Composer
``` ```
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
@ -37,12 +37,12 @@ php composer-setup.php
php -r "unlink('composer-setup.php');" php -r "unlink('composer-setup.php');"
``` ```
# Use Composer ## Use Composer
``` ```
php composer.phar install php composer.phar install
``` ```
# Make Postgres Database ## Make Postgres Database
``` ```
sudo - postgres sudo - postgres
createuser --no-superuser --pwprompt koel createuser --no-superuser --pwprompt koel
@ -52,7 +52,7 @@ GRANT ALL PRIVILEGES ON DATABASE koel TO koel;
\q \q
``` ```
# Edit php config ## Edit php config
``` ```
vim /etc/php/7.0/apache2/php.ini vim /etc/php/7.0/apache2/php.ini
#enable pdo_pgsql and pgsql extensions - it's questionable if this is really required #enable pdo_pgsql and pgsql extensions - it's questionable if this is really required
@ -61,7 +61,7 @@ extension=php_pfsql.dll
memory_limit=512M memory_limit=512M
``` ```
# Run npm/yarn ## Run npm/yarn
``` ```
vim /opt/koel/packages.json #replace ^4.7.2 with ~4.7.2 for node-sass vim /opt/koel/packages.json #replace ^4.7.2 with ~4.7.2 for node-sass
@ -69,9 +69,9 @@ npm update
npm install --unsafe-perm=true --allow-root npm install --unsafe-perm=true --allow-root
``` ```
# Setup Koel ## Setup Koel
# Populate credentials during the process
``` ```
# Populate credentials during the process
php artisan koel:init php artisan koel:init
Koel cannot connect to the database. Let's set it up. Koel cannot connect to the database. Let's set it up.
@ -130,7 +130,7 @@ or open the .env file in the root installation folder.
Thanks for using Koel. You rock! Thanks for using Koel. You rock!
``` ```
# Apache Reverse Proxy ## Apache Reverse Proxy
``` ```
<VirtualHost *:80> <VirtualHost *:80>
RewriteEngine on RewriteEngine on
@ -157,7 +157,7 @@ apachectl configtest
service apache2 restart service apache2 restart
``` ```
# Dirty hack to enable https ## Dirty hack to enable https
``` ```
vim /opt/koel/routes/web.php vim /opt/koel/routes/web.php
@ -182,13 +182,13 @@ Route::get('/remote', function () {
}); });
``` ```
# Start Server ## Start Server
``` ```
#php artisan serve #php artisan serve
cd /opt/koel/;nohup php artisan serve --host 0.0.0.0 > koel-artisan-server.log & cd /opt/koel/;nohup php artisan serve --host 0.0.0.0 > koel-artisan-server.log &
``` ```
# Version overview ## Version overview
``` ```
php -V #7.0 php -V #7.0
npm --version #6.4.1 npm --version #6.4.1