Blog

  • Návod na blog

    Nejprve jsem ve správě domén u Wedosu vytvořil subdoménu: blog.pesekma.fun

    Konfigurace serveru: jít do složky -> cd /var/www/

    Vytvoření složky pro blog: sudo mkdir -p /var/www/blog.pesekma.fun/html

    Nastavení přístupových práv: sudo chown -R www-data:www-data /var/www/blog.pesekma.fun

    Konfigurace Apache -> Vytvořil jsem konfigurační soubor pro Apache: sudo nano /etc/apache2/sites-available/blog.pesekma.fun.conf

    Do něj jsem vložil konfiguraci:

    <VirtualHost *:80>

    ServerName blog.pesekma.fun
    DocumentRoot /var/www/blog.pesekma.fun/html

    Redirect permanent “/” “https://blog.pesekma.fun/”

    ErrorLog ${APACHE_LOG_DIR}/error_blog.pesekma.fun.log
    CustomLog ${APACHE_LOG_DIR}/access_blog.pesekma.fun.log combined

    </VirtualHost>

    Aktivace stránky: sudo a2ensite blog.pesekma.fun.conf

    Kontrola konfigurace: sudo apache2ctl configtest

    Restart Apache: sudo systemctl reload apache2

    Získání TLS certifikátu -> sudo apt install certbot python3-certbot-apache poté -> sudo certbot –apache

    A myslím že jsem zmáčkl 2 (blog.pesekma.fun)

    Instalace WordPress -> Přešel jsem do složky: cd /tmp -> Stáhl jsem WordPress: curl -O https://wordpress.org/latest.tar.gz -> Rozbalil jsem archiv: tar xzvf latest.tar.gz -> A soubory jsem zkopíroval do složky webu: sudo cp -a wordpress/. /var/www/blog.pesekma.fun/html/

    Vytvoření databáze ->
    sudo mariadb
    CREATE DATABASE blogp;
    CREATE USER ‘pesekma’@’localhost’ IDENTIFIED BY ‘heslo’;
    GRANT ALL PRIVILEGES ON blogp.* TO ‘pesekma’@’localhost’;
    FLUSH PRIVILEGES;
    EXIT;

    Dokončení instalace WordPress -> Poté jsem otevřel web v prohlížeči: https://blog.pesekma.fun

    WordPress nejprve vypsal chybu unable to write wp-config.php, proto jsem upravil práva složky: sudo chown -R www-data:www-data /var/www/blog.pesekma.fun/html -> Poté už instalace proběhla úspěšně.

    Během konfigurace se stránka nechtěla načíst. Zjistil jsem, že v souboru: /etc/apache2/sites-available/blog.pesekma.fun-le-ssl.conf
    byl řádek:Redirect permanent / https://blog.pesekma.fun/
    Po jeho odstranění a restartu Apache: sudo systemctl reload apache2 ->začal web fungovat správně.

    Po dokončení instalace jsem se přihlásil do administrace WordPressu a vytvořil tento příspěvek jako dokumentaci postupu konfigurace.

    Přeji Vám krásný den, pane učiteli

  • Hello world!

    Welcome to WordPress. This is your first post. Edit or delete it, then start writing!

Tell your story

Like flowers that bloom in unexpected places, every story unfolds with beauty and resilience, revealing hidden wonders.

Photography close up of a red flower.
Black and white photography close up of a flower.

About Us

Fleurs is a flower delivery and subscription business. Based in the EU, our mission is not only to deliver stunning flower arrangements across but also foster knowledge and enthusiasm on the beautiful gift of nature: flowers.

Our services

Image for service

Collect

Like flowers that bloom in unexpected places, every story unfolds with beauty and resilience

Image for service

Assemble

Like flowers that bloom in unexpected places, every story unfolds with beauty and resilience

Image for service

Deliver

Like flowers that bloom in unexpected places, every story unfolds with beauty and resilience

What people are saying

“Superb product and customer service!”

Jo Mulligan
Atlanta, GA
Picture of a person typing on a typewriter.

Pricing

Cancel or pause anytime.

Free

0€

  • Get access to our paid articles and weekly newsletter.
  • Join our IRL events.
  • Get a free tote bag.
  • An elegant addition of home decor collection.
  • Join our forums.

Single

20€/month

  • Get access to our paid articles and weekly newsletter.
  • Join our IRL events.
  • Get a free tote bag.
  • An elegant addition of home decor collection.
  • Join our forums.