Petter Knutsson
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # One-click installer: WordPress ## Inledning Den här artikeln visar hur du med vår One-click installer kommer igång med WordPress på en [VPS](https://glesys.se/vps) i [GleSYS Cloud](https://cloud.glesys.com/#/login) på bara några minuter. WordPress är utan tvekan det vanligaste blogg- och innehållshanteringssystemet (CMS) idag. Uppskattningsvis hanteras över 455 miljoner webbplatser, bloggar och applikationer – eller motsvarande 35 % av hela Internet – av WordPress. ## Förutsättningar För att använda vår One-click installer behöver du ett konto för GleSYS Cloud och även ha en domän registrerad hos oss. Saknar du ett konto [skapar du det kostnadsfritt här](https://cloud.glesys.com/#/signup). Har du ingen domän kan du köpa den i vår kontrollpanel eller så flyttar du en befintlig domän till oss. ### Inkluderad mjukvara Utöver senaste versionen av WordPress installeras följande programvaror: - **Linux** Ubuntu 20.04 (operativsystem) - **Apache** 2 (webbserver) - **MySQL server** (databasserver) - **PHP** 7.4 (programmeringsspråk) - **Fail2ban** (verktyg som skyddar SSH mot intrångsförsök) - **Postfix** (serverprogramvara för att WordPress ska kunna skicka e-post) - **Certbot** (verktyg för att hantera SSL-certifikat från Let's Encrypt och aktivera HTTPS) Följande konfigurationer görs automatiskt på servern under installation: - Aktiverar brandvägg (UFW) för att tillåta åtkomst enbart via SSH (port 22), HTTP (port 80), och HTTPS (port 443). - XML-RPC deaktiveras för att förhindra DDoS- och andra brute force-attacker. - Optimerar PHP-inställningar och ökar bland annat maxstorleken för filuppladdning (50 MB). ## Så kommer du igång I kontrollpanelen går du till ditt projekt och under **Infrastruktur** – **Servrar** klickar du på **Skapa-knappen**. Klicka på fliken **One-click installers** och välj **WordPress**. I nästa vy väljer du i vilket av våra datacenter som servern ska skapas i – Falkenberg eller Stockholm (välj den plats som du tror ligger närmst dina besökare). Välj sedan den domän som ska kopplas till WordPress-installationen. Domänen måste använda våra namnservrar och kan inte användas av andra webbplatser/tjänster. Vill du installera WordPress på en subdomän, till exempel `blogg.exempel.se` klickar du i rutan *Lägg till subdomän*. Vår One-click installer för WordPress skapar ett SSL-certifikat (gratis) från Let's Encrypt och du behöver aldrig bekymra dig över att förnya certifikatet – allt sköts automatiskt med hjälp av Certbot. För att använda Let's Encrypt krävs en e-postadress och den anger du här. Därefter sätter du användarnamn, lösenord och/eller en SSH-nyckel för administratörskontot till den server som WordPress kommer att installeras på. Spara uppgifterna på ett säkert ställe då de inte går att återskapa senare. Klicka på Skapa-knappen för att installera och konfigurera WordPress med tillhörande mjukvara. Det tar bara ett par minuter. Installationen av WordPress slutför du genom att besöka din domän (i vårt fall `https://exempel.se`) i din webbläsare. ## Slutsats Grattis, du är nu igång med WordPress på din alldeles egna server! Det finns några saker som kan vara bra för dig att tänka på: - För att din server ska vara säker är det viktigt att operativsystem och programvaror hålls uppdaterade. Om du inte vet hur du gör så rekommenderar vi dig att ta hjälp till det. Sårbarheter i plugins upptäcks tyvärr ibland och vi rekommenderar att du endast installerar tillägg som din webbplats behöver – och att du ser till att dessa är uppdaterade. Det gör du enkelt själv i WordPress. - Vi rekommenderar att du tar backup och säkerhetskopierar dina filer. Du kan antingen välja att ta backup av hela servern i GleSYS Cloud eller så installerar du ett WordPress-tillägg som säkerhetskopierar viktiga filer som till exempel databasen. ## FAQ ### Vem vänder sig denna One-click installer till? Svaret är: **Alla.** Den vänder sig till alla som snabbt vill bygga en webbplats i WordPress, med bra prestanda. Men vi tror framför allt att målgruppen är personer som inte har så stor erfarenhet av [virtuella servrar (VPS)](https://glesys.se/vps), Linux-operativsystem eller vill krångla med brandväggsregler och SSL-certifikat . Använder du ett webbhotell idag och vill ta steget till en egen server, där du får full kontroll – då kan det här vara lösningen för dig. ### Vad kostar servern och vad har den för tekniska specifikationer? Vår One-click installer för WordPress skapar en [VPS](https://glesys.se/vps) i vår [KVM-plattform](https://glesys.se/vps/plattformar/kvm) med 1 vCPU, 1 GB minne, 20 GB disk and 100 Mbit bandbredd. Kostnaden för servern är 134 kr/månad (0,18 kr/h) inklusive en IPv4- och en IPv6-adress. För en enkel webbplats räcker det här långt. Men fördelen med en VPS är att du när som helst efter installationen kan välja att skala upp eller ner din servers resurser. ### Var hittar jag lösenordet till min databas? Vid felsökning kan du behöva användarnamn och lösenord till databasen och då kan det vara bra att veta var på servern informationen finns sparad. Uppgifterna sparas i filen `/var/www/html/wp-config.php` För att felsöka på servern ansluter du via SSH med de användaruppgifter du angav vid skapandet. Guider för att [ansluta via SSH till din server i Windows och macOS hittar du här](https://glesys.se/kb/kom-igang). WordPress-installationen läggs i katalogen `/var/www/html/` och PHP körs som `www-data` som också äger WordPress-filerna. Det gör bland annat att WordPress inbyggda uppgraderingsfunktion fungerar utan problem. ### Hur når jag databasdumpar som skapas. Servern installerar ett skript `automysqlbackup` som du kan konfigurera precis som du vill via `/etc/default/automysqlbackup` men som standard så skapar den backuper i katalogen `/var/lib/automysqlbackup/`[ Du kan läsa mer om mjukvaran här här](https://sourceforge.net/projects/automysqlbackup/) <br><br><br> #### Disclaimer Vi uppdaterar våra One-click installers regelbundet – oftast utan förvarning. När vi släpper en One-click installer får du den senaste versionen av applikationen som är tillgänglig vid tidpunkten. Vi uppdaterar inga system efter att en One-click installer har använts och det är du som är ansvarig för att uppgraderingarna genomförs. Om du bygger din infrastruktur baserat på en One-click installer och sen är beroende av just den versionen av applikationen; då rekommenderar vi att du tar en snapshot, eller ögonblicksbild, av din instans och använder den när du skapar nya instaner.

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully