From 2b5d94b27c7fd22af77fa3ffe7041bc80d4681cc Mon Sep 17 00:00:00 2001 From: Mario Voigt Date: Sun, 23 Sep 2018 13:31:58 +0200 Subject: [PATCH] =?UTF-8?q?=E2=80=9EREADME.md=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 562b206..aea7c04 100644 --- a/README.md +++ b/README.md @@ -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 ;-) -# Clone Repository +## Clone Repository ``` cd /opt git clone https://github.com/phanan/koel.git @@ -10,18 +10,18 @@ cd koel 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 ``` -# Install NodeJS +## Install NodeJS ``` curl -sL https://deb.nodesource.com/setup_10.x | bash - apt-get install -y nodejs ``` -# Install Yarn +## Install Yarn ``` 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 @@ -29,7 +29,7 @@ apt-get update apt-get install yarn ``` -# Get Composer +## Get Composer ``` 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;" @@ -37,12 +37,12 @@ php composer-setup.php php -r "unlink('composer-setup.php');" ``` -# Use Composer +## Use Composer ``` php composer.phar install ``` -# Make Postgres Database +## Make Postgres Database ``` sudo - postgres createuser --no-superuser --pwprompt koel @@ -52,7 +52,7 @@ GRANT ALL PRIVILEGES ON DATABASE koel TO koel; \q ``` -# Edit php config +## Edit php config ``` vim /etc/php/7.0/apache2/php.ini #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 ``` -# Run npm/yarn +## Run npm/yarn ``` 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 ``` -# Setup Koel -# Populate credentials during the process +## Setup Koel ``` +# Populate credentials during the process php artisan koel:init 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! ``` -# Apache Reverse Proxy +## Apache Reverse Proxy ``` RewriteEngine on @@ -157,7 +157,7 @@ apachectl configtest service apache2 restart ``` -# Dirty hack to enable https +## Dirty hack to enable https ``` vim /opt/koel/routes/web.php @@ -182,13 +182,13 @@ Route::get('/remote', function () { }); ``` -# Start Server +## Start Server ``` #php artisan serve cd /opt/koel/;nohup php artisan serve --host 0.0.0.0 > koel-artisan-server.log & ``` -# Version overview +## Version overview ``` php -V #7.0 npm --version #6.4.1