Skip to content

Sådan installeres Akaunting med Apache og Let's Encrypt SSL på Ubuntu 22.04

Cloud Infrastructure Expert
Sådan installeres Akaunting med Apache og Let's Encrypt SSL på Ubuntu 22.04

 

 

I denne vejledning vil vi gennemgå, hvordan du kan installere Akaunting, en open-source regnskabssoftware, og konfigurere Let’s Encrypt SSL på en Ubuntu 22.04-server. Denne installation kan være særligt nyttig for brugere af en VPS-server.

Forudsætninger

  • Ubuntu 22.04 installeret på din server.
  • Root-adgang eller sudo-rettigheder.
  • En aktiv internetforbindelse.
  • Apache webserver installeret.
  • PHP 7.3 eller højere installeret.
  • MySQL eller MariaDB installeret.

Trin 1: Opdater systemet

Først skal du opdatere dit system for at sikre, at alle pakker er opdaterede:

sudo apt update && sudo apt upgrade -y

Trin 2: Installer nødvendige PHP-udvidelser

Installer de nødvendige PHP-udvidelser til Akaunting:

sudo apt install php php-mysql php-xml php-mbstring php-curl php-zip php-gd -y

Trin 3: Download Akaunting

Klon Akaunting fra den officielle hjemmeside:

wget https://akaunting.com/downloads/akaunting.zip

Trin 4: Udpak Akaunting

Udpak den downloadede fil:

unzip akaunting.zip -d /var/www/html/

Trin 5: Konfigurer MySQL-databasen

Log ind på MySQL og opret en database til Akaunting:

sudo mysql -u root -p
CREATE DATABASE akaunting;
CREATE USER 'akaunting_user'@'localhost' IDENTIFIED BY 'your_password';
GRANT ALL PRIVILEGES ON akaunting.* TO 'akaunting_user'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Trin 6: Konfigurer Apache til Akaunting

Opret en ny Apache-konfigurationsfil:

sudo nano /etc/apache2/sites-available/akaunting.conf

Tilsæt følgende indhold til filen:

<VirtualHost *:80>
        ServerAdmin [email protected]
        DocumentRoot /var/www/html/akaunting
        ServerName your_domain_or_IP

        <Directory /var/www/html/akaunting>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride All
            Require all granted
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/akaunting_error.log
        CustomLog ${APACHE_LOG_DIR}/akaunting_access.log combined
    </VirtualHost>

Trin 7: Aktivér konfigurationen og genstart Apache

Aktiver den nye konfiguration og genstart Apache:

sudo a2ensite akaunting.conf
sudo systemctl restart apache2

Trin 8: Installer Certbot til Let’s Encrypt SSL

Installer Certbot og dets Apache-plugin:

sudo apt install certbot python3-certbot-apache -y

Trin 9: Få et SSL-certifikat fra Let’s Encrypt

Kør følgende kommando for at få et SSL-certifikat:

sudo certbot --apache -d your_domain_or_IP

Trin 10: Test installationen

Naviger til din server-IP eller domæne i din webbrowser for at få adgang til Akaunting installationssiden:

http://your_domain_or_IP/

Afslutning

Dine Akaunting-applikationer er nu tilgængelige via din webbrowser med gratis Let’s Encrypt SSL. Denne løsning kan være særligt nyttig for dem, der ønsker at administrere deres økonomi effektivt fra en VPS-server.

Windows VPS Deutschland

Windows VPS España

Windows VPS Nederland

Windows VPS Italia

Windows VPS Portugal

VPS Windows Italia

Windows VPS

Windows VPS

Windows VPS Sverige

Windows VPS Norge

Windows VPS

Windows VPS Türkiye

Windows RDS (Remote Desktop Services)

Windows VPS

Explore more

More on this topic

Netcloud24
Netcloud24
Cloud Infrastructure Expert · NetCloud24

Comments are closed.

Sådan installeres Akaunting med Apache og Let's Encrypt SSL på Ubuntu 22.04

Cloud Infrastructure Expert
Sådan installeres Akaunting med Apache og Let's Encrypt SSL på Ubuntu 22.04

 

 

 

I denne vejledning vil vi gennemgå, hvordan du kan installere Akaunting, en open-source regnskabssoftware, og konfigurere Let’s Encrypt SSL på en Ubuntu 22.04-server. Denne installation kan være særligt nyttig for brugere af en VPS-server.

Forudsætninger

  • Ubuntu 22.04 installeret på din server.
  • Root-adgang eller sudo-rettigheder.
  • En aktiv internetforbindelse.
  • Apache webserver installeret.
  • PHP 7.3 eller højere installeret.
  • MySQL eller MariaDB installeret.

Trin 1: Opdater systemet

Først skal du opdatere dit system for at sikre, at alle pakker er opdaterede:

sudo apt update && sudo apt upgrade -y

Trin 2: Installer nødvendige PHP-udvidelser

Installer de nødvendige PHP-udvidelser til Akaunting:

sudo apt install php php-mysql php-xml php-mbstring php-curl php-zip php-gd -y

Trin 3: Download Akaunting

Klon Akaunting fra den officielle hjemmeside:

wget https://akaunting.com/downloads/akaunting.zip

Trin 4: Udpak Akaunting

Udpak den downloadede fil:

unzip akaunting.zip -d /var/www/html/

Trin 5: Konfigurer MySQL-databasen

Log ind på MySQL og opret en database til Akaunting:

sudo mysql -u root -p
CREATE DATABASE akaunting;
CREATE USER 'akaunting_user'@'localhost' IDENTIFIED BY 'your_password';
GRANT ALL PRIVILEGES ON akaunting.* TO 'akaunting_user'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Trin 6: Konfigurer Apache til Akaunting

Opret en ny Apache-konfigurationsfil:

sudo nano /etc/apache2/sites-available/akaunting.conf

Tilsæt følgende indhold til filen:

<VirtualHost *:80>
        ServerAdmin [email protected]
        DocumentRoot /var/www/html/akaunting
        ServerName your_domain_or_IP

        <Directory /var/www/html/akaunting>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride All
            Require all granted
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/akaunting_error.log
        CustomLog ${APACHE_LOG_DIR}/akaunting_access.log combined
    </VirtualHost>

Trin 7: Aktivér konfigurationen og genstart Apache

Aktiver den nye konfiguration og genstart Apache:

sudo a2ensite akaunting.conf
sudo systemctl restart apache2

Trin 8: Installer Certbot til Let’s Encrypt SSL

Installer Certbot og dets Apache-plugin:

sudo apt install certbot python3-certbot-apache -y

Trin 9: Få et SSL-certifikat fra Let’s Encrypt

Kør følgende kommando for at få et SSL-certifikat:

sudo certbot --apache -d your_domain_or_IP

Trin 10: Test installationen

Naviger til din server-IP eller domæne i din webbrowser for at få adgang til Akaunting installationssiden:

http://your_domain_or_IP/

Afslutning

Dine Akaunting-applikationer er nu tilgængelige via din webbrowser med gratis Let’s Encrypt SSL. Denne løsning kan være særligt nyttig for dem, der ønsker at administrere deres økonomi effektivt fra en VPS-server.

Windows VPS Deutschland

Windows VPS España

Windows VPS Nederland

Windows VPS Italia

Windows VPS Portugal

VPS Windows Italia

Windows VPS

Windows VPS

Windows VPS Sverige

Windows VPS Norge

Windows VPS

Windows VPS Türkiye

Windows RDS (Remote Desktop Services)

Windows VPS

Explore more

More on this topic

Netcloud24
Netcloud24
Cloud Infrastructure Expert · NetCloud24

Comments are closed.