{"id":729,"date":"2021-04-03T11:57:38","date_gmt":"2021-04-03T09:57:38","guid":{"rendered":"https:\/\/apfelcast.com\/?p=729"},"modified":"2021-04-03T11:57:38","modified_gmt":"2021-04-03T09:57:38","slug":"eigenen-url-shortener-auf-linux-server-installieren-yourls-schritt-fuer-schritt-installation","status":"publish","type":"post","link":"https:\/\/it-ion.de\/index.php\/2021\/04\/03\/eigenen-url-shortener-auf-linux-server-installieren-yourls-schritt-fuer-schritt-installation\/","title":{"rendered":"Eigenen URL-Shortener auf Linux Server installieren &#8211; YOURLS Schritt-f\u00fcr-Schritt Installation"},"content":{"rendered":"\n<div class=\"brlbs-cmpnt-container brlbs-cmpnt-content-blocker brlbs-cmpnt-with-individual-styles\" data-borlabs-cookie-content-blocker-id=\"default\" data-borlabs-cookie-content=\"PGlmcmFtZSB0aXRsZT0iWW91VHViZSB2aWRlbyBwbGF5ZXIiIHNyYz0iaHR0cHM6Ly93d3cueW91dHViZS5jb20vZW1iZWQvVlNNTGNBOW5HMjgiIHdpZHRoPSI1NjAiIGhlaWdodD0iMzE1IiBmcmFtZWJvcmRlcj0iMCIgYWxsb3dmdWxsc2NyZWVuPSJhbGxvd2Z1bGxzY3JlZW4iPjwvaWZyYW1lPg==\">\n<div class=\"brlbs-cmpnt-cb-preset-a\">\n<p class=\"brlbs-cmpnt-cb-description\">Sie sehen gerade einen Platzhalterinhalt von <strong>Standard<\/strong>. Um auf den eigentlichen Inhalt zuzugreifen, klicken Sie auf die Schaltfl\u00e4che unten. Bitte beachten Sie, dass dabei Daten an Drittanbieter weitergegeben werden.<\/p>\n<div class=\"brlbs-cmpnt-cb-buttons\"> <a class=\"brlbs-cmpnt-cb-btn\" href=\"#\" data-borlabs-cookie-unblock role=\"button\">Inhalt entsperren<\/a> <a class=\"brlbs-cmpnt-cb-btn\" href=\"#\" data-borlabs-cookie-accept-service role=\"button\" style=\"display: none\">Erforderlichen Service akzeptieren und Inhalte entsperren<\/a> <\/div>\n<p> <a class=\"brlbs-cmpnt-cb-provider-toggle\" href=\"#\" data-borlabs-cookie-show-provider-information role=\"button\">Mehr Informationen<\/a> <\/div>\n<\/div>\n<p>In diesem Video zeige Ich euch, wie ihr den pers\u00f6nlichen OpenSource URL-Shortener Dienst YOURLS auf eurem Linux Server mit dem Apache Webserver, PHP und MySQl installieren k\u00f6nnt.<\/p>\n<p>YOURLS Design anpassen: <a href=\"https:\/\/www.patreon.com\/posts\/46287791\">https:\/\/www.patreon.com\/posts\/46287791<\/a><\/p>\n<p>\u00bb Relevante Videos:<br \/>\nDynDNS mit RaspberryPi: <a href=\"https:\/\/www.youtube.com\/watch?v=AhrXxHwbss8\">https:\/\/www.youtube.com\/watch?v=AhrXxHwbss8<\/a><br \/>\nDynDNS mit der Fritz!Box: <a href=\"https:\/\/www.youtube.com\/watch?v=0ZhKv-DTnwQ\">https:\/\/www.youtube.com\/watch?v=0ZhKv-DTnwQ<\/a><\/p>\n<p>&nbsp;<\/p>\n<div id=\"93964-1\"><script src=\"\/\/ads.themoneytizer.com\/s\/gen.js?type=1\"><\/script><script src=\"\/\/ads.themoneytizer.com\/s\/requestform.js?siteId=93964&#038;formatId=1\"><\/script><\/div>\n<p>&nbsp;<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#### Install YOURLS Ubuntu 20.04 ####\n\n## install LAMP stack ##\napt install lamp-server^\n\n# open SQL dialoge\nmysql\n\n# create database calles nextcloud\nCREATE DATABASE yourls; \n\n# create database user with password\nCREATE USER 'yourlsuser'@'localhost' IDENTIFIED BY 'password_here';\n\n#grant accesss to databse\nGRANT ALL PRIVILEGES ON yourls.* TO 'yourlsuser'@'localhost';\n\n#save changes and exit\nFLUSH PRIVILEGES;\nEXIT;\n\n## get YOURLS ##\napt install git\n\ncd \/var\/www\/\ngit clone https:\/\/github.com\/YOURLS\/YOURLS.git\n\nmv YOURLS yourls\n\n## configure YOURLS ##\ncd yourls\/user\ncp config-sample.php config.php\n\nnano config.php\n\n## adjust permissions ##\nchown -R www-data:www-data \/var\/www\/yourls\nchmod -R 775 \/var\/www\/yourls\n\n## adjust apache settings ##\nnano \/etc\/apache2\/apache2.conf\n\nChange the: AllowOverride None to AllowOverride All\n\n## enable apache module ##\na2enmod rewrite\n\n## add vHost ##\nnano \/etc\/apache2\/sites-available\/yourls.conf\n\n&lt;VirtualHost *:80&gt;\n    ServerName short.domain.com\n    DocumentRoot \"\/var\/www\/yourls\"\n\n    &lt;Directory \"\/var\/www\/yourls\"&gt;\n        Require all granted\n        Options Indexes FollowSymLinks\n        AllowOverride All\n        Order allow,deny\n        Allow from all\n    &lt;\/Directory&gt;\n\n   ErrorLog ${APACHE_LOG_DIR}\/error.log\n   CustomLog ${APACHE_LOG_DIR}\/access.log combined\n   \n&lt;\/VirtualHost&gt;\n\n## enable site ##\na2ensite yourls.conf\n\n## restart apache ##\nservice apache2 restart \n\n## browse WebGUI ##\nhttp:\/\/domain.com\/admin\n\n## adjust config permissions ##\nchmod 0600 \/var\/www\/yourls\/user\/config.php\n\n## get free Let's Encrypt SSL Zertifikate ##\napt install certbot python3-certbot-apache\n\ncertbot --apache -m master@domain.com -d cloud.domain.com<\/pre>\n<h3>apfelcast Support<\/h3>\n<p>Du ben\u00f6tigst Unterst\u00fctzung bei deinem Projekt oder hast Fragen zur Umsetzung?<br \/>\n<strong>Dann melde ich gern bei uns!<\/strong><\/p>\n<p>[button link=&#8220;https:\/\/apfelcast.com\/kontakt&#8220; type=&#8220;big&#8220; class=&#8220; custom-button&#8220;] Kontaktieren[\/button]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sie sehen gerade einen Platzhalterinhalt von Standard. Um auf den eigentlichen Inhalt zuzugreifen, klicken Sie&#8230;<\/p>\n","protected":false},"author":1,"featured_media":730,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-729","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-allgemein"],"taxonomy_info":{"category":[{"value":1,"label":"Allgemein"}]},"featured_image_src_large":["https:\/\/it-ion.de\/wp-content\/uploads\/2021\/04\/maxresdefault-3-2-1024x576.jpg",1024,576,true],"author_info":{"display_name":"Daniel Klozb\u00fccher","author_link":"https:\/\/it-ion.de\/index.php\/author\/wp-master\/"},"comment_info":0,"category_info":[{"term_id":1,"name":"Allgemein","slug":"allgemein","term_group":0,"term_taxonomy_id":1,"taxonomy":"category","description":"","parent":0,"count":89,"filter":"raw","cat_ID":1,"category_count":89,"category_description":"","cat_name":"Allgemein","category_nicename":"allgemein","category_parent":0}],"tag_info":false,"_links":{"self":[{"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/posts\/729","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/comments?post=729"}],"version-history":[{"count":0,"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/posts\/729\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/media\/730"}],"wp:attachment":[{"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/media?parent=729"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/categories?post=729"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/tags?post=729"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}