{"id":6,"date":"2026-03-05T16:06:11","date_gmt":"2026-03-05T16:06:11","guid":{"rendered":"https:\/\/blog.jedliclu.fun\/?p=6"},"modified":"2026-03-05T16:08:39","modified_gmt":"2026-03-05T16:08:39","slug":"konfigurace-wodrpress","status":"publish","type":"post","link":"https:\/\/blog.jedliclu.fun\/index.php\/2026\/03\/05\/konfigurace-wodrpress\/","title":{"rendered":"Konfigurace wodrpress"},"content":{"rendered":"\n<p>vytvorit domenu na vedosu<br>prejit do adresare- <strong>cd \/var\/www\/<\/strong><br>vytvorit slozku- <strong>mkdir blog.jedliclu.fun<\/strong><br>nastaveni pristupu aby mohl server cist a zapisovat- <strong>sudo chown -R www-data:www-data \/var\/www\/blog.jedliclu.fun<\/strong><br>vytvorit konfig. soubor- <strong>sudo nano \/etc\/apache2\/sites-available\/blog.jedliclu.fun.conf<\/strong><br>do nej zapsat:<br><br>ServerName blog.jedliclu.fun<br>DocumentRoot \/var\/www\/blog.jedliclu.fun<\/p>\n\n\n\n<p>    Redirect permanent &#8220;\/&#8221; &#8220;https:\/\/blog.jedliclu.fun\/&#8221;\n    ErrorLog ${APACHE_LOG_DIR}\/error_blog.jedliclu.fun.log\n    CustomLog ${APACHE_LOG_DIR}\/access_blog.jedliclu.fun.log combined<\/p>\n\n\n\n<p><br>aktivace stranky- <strong>sudo a2ensite blog.jedliclu.fun.conf<\/strong><br>reload apache- <strong>systemctl reload apache2<\/strong><br>ziskani certifikatu- <strong>sudo certbot &#8211;apache<\/strong> :a vybrat tu spravnou<br>otevreni mariadb- <strong>sudo mariadb<\/strong><br>vytvoreni prazdne databaze-<strong> CREATE DATABASE blog_db;<\/strong><br>vytvoreni uzivatele- <strong>CREATE USER &#8216;jedliclu&#8217;@&#8217;localhost&#8217; IDENTIFIED BY<\/strong> &#8216;<em>&#8216;; <\/em><\/p>\n\n\n\n<p><em>pridani prav- <\/em><strong><em>GRANT ALL PRIVILEGES ON blog_db.<\/em> TO &#8216;jedliclu&#8217;@&#8217;localhost&#8217;;<\/strong><br>vycisteni mezipameti- <strong>FLUSH PRIVILEGES;<\/strong><br>exit z mariadb- <strong>exit<\/strong><br>prechod do docasne slozky- <strong>cd \/tmp<\/strong><br>stazeni wordpressu- <strong>wget https:\/\/wordpress.org\/latest.tar.gz<\/strong><br>rozbaleni souboru- <strong>tar -xzf latest.tar.gz<\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size\">kopirovani souboru do spravneho adresare- <strong>sudo cp -R wordpress\/* \/var\/www\/blog.jedliclu.fun\/<\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size\">stranka se nechtela nacist, zjistil jsem se v <strong>\/etc\/apache2\/sites-available\/blog.jedliclu.fun-le-ssl.conf<\/strong> byl radek <strong>Redirect permanent \/ https:\/\/blog.jedliclu.fun\/<\/strong>, po smazani a restartovani pomoci<strong> sudo systemctl reload apache2<\/strong> vse zaclo fungovat<\/p>\n\n\n\n<p>setup wordpressu<br>napsani tohoto prispevku<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Jedlicka 4.F<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>vytvorit domenu na vedosuprejit do adresare- cd \/var\/www\/vytvorit slozku- mkdir blog.jedliclu.funnastaveni pristupu aby mohl server cist a zapisovat- sudo chown -R www-data:www-data \/var\/www\/blog.jedliclu.funvytvorit konfig. soubor- sudo nano \/etc\/apache2\/sites-available\/blog.jedliclu.fun.confdo nej zapsat: ServerName blog.jedliclu.funDocumentRoot \/var\/www\/blog.jedliclu.fun Redirect permanent &#8220;\/&#8221; &#8220;https:\/\/blog.jedliclu.fun\/&#8221; ErrorLog ${APACHE_LOG_DIR}\/error_blog.jedliclu.fun.log CustomLog ${APACHE_LOG_DIR}\/access_blog.jedliclu.fun.log combined aktivace stranky- sudo a2ensite blog.jedliclu.fun.confreload apache- systemctl reload apache2ziskani certifikatu- sudo certbot &#8211;apache [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.jedliclu.fun\/index.php\/wp-json\/wp\/v2\/posts\/6","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.jedliclu.fun\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.jedliclu.fun\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jedliclu.fun\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jedliclu.fun\/index.php\/wp-json\/wp\/v2\/comments?post=6"}],"version-history":[{"count":3,"href":"https:\/\/blog.jedliclu.fun\/index.php\/wp-json\/wp\/v2\/posts\/6\/revisions"}],"predecessor-version":[{"id":10,"href":"https:\/\/blog.jedliclu.fun\/index.php\/wp-json\/wp\/v2\/posts\/6\/revisions\/10"}],"wp:attachment":[{"href":"https:\/\/blog.jedliclu.fun\/index.php\/wp-json\/wp\/v2\/media?parent=6"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jedliclu.fun\/index.php\/wp-json\/wp\/v2\/categories?post=6"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jedliclu.fun\/index.php\/wp-json\/wp\/v2\/tags?post=6"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}