You can check whether you have the proper Debian version installed on your server with the following command:<\/p>\n
lsb_release -a<\/pre>\nYou should get the following output:<\/p>\n
No LSB modules are available.\r\nDistributor ID: Debian\r\nDescription: Debian GNU\/Linux 11 (bullseye)\r\nRelease: 11\r\nCodename: bullseye<\/pre>\nNow, run the following command to update all installed packages to the latest available version.<\/p>\n
apt update && sudo apt upgrade<\/pre>\n<\/span>Step 2: Install Apache Webserver<\/span><\/h2>\nExecute the following command to install Apache webserver:<\/p>\n
apt install apache2<\/pre>\nTo start Apache and to enable it to auto-start on server boot, run these commands:<\/p>\n
systemctl enable apache2\r\nsystemctl start apache2<\/pre>\nTo confirm that you have properly installed Apache2, you can open your preferred web browser and type your server IP address <\/strong>and you should be able to view the Apache2 Debian Default Page.<\/p>\n<\/span>Step 3: Install PHP and extensions<\/span><\/h2>\nThe latest version of Akaunting requires a minimum PHP 8.0 version. PHP 8 packages are not available in the default Debian 11 package repositories.<\/p>\n
So, to install PHP 8 first we have to enable SURY PHP PPA repository, which contains all the released versions of PHP to date.<\/p>\n
Download the GPG key and add the required repository through the following commands:<\/p>\n
apt install lsb-release apt-transport-https ca-certificates gnupg2\r\nwget -qO - https:\/\/packages.sury.org\/php\/apt.gpg | apt-key add -\r\necho \"deb https:\/\/packages.sury.org\/php\/ $(lsb_release -sc) main\" | tee \/etc\/apt\/sources.list.d\/php.list<\/pre>\nOnce the SURY repository is added, you need to update your system\u2019s repository:<\/p>\n
apt-get update<\/pre>\nNow run the following commands to install PHP modules required or recommended by Akaunting.<\/p>\n
apt install php8.0 php8.0-common php8.0-mysql php8.0-gd php8.0-bcmath php8.0-curl php8.0-zip php8.0-xml php8.0-mbstring php8.0-bz2 php8.0-intl<\/pre>\n<\/span>Step 4: Install MariaDB<\/span><\/h2>\nMariaDB is available in the Debian 11 default OS repository. You can install it by running the following command:<\/p>\n
apt install mariadb-server<\/pre>\nBy default, the MariaDB service will start automatically after installing it in your system. You can verify it with the following command:<\/p>\n
systemctl status mariadb<\/pre>\nYou should get the following output:<\/p>\n
\u25cf mariadb.service - MariaDB 10.5.12 database server\r\n Loaded: loaded (\/lib\/systemd\/system\/mariadb.service; enabled; vendor preset: enabled)\r\n Active: active (running)\r\n Docs: man:mariadbd(8)\r\n https:\/\/mariadb.com\/kb\/en\/library\/systemd\/\r\n Process: 561 ExecStartPre=\/usr\/bin\/install -m 755 -o mysql -g root -d \/var\/run\/mysqld (code=exited, status=0\/SUCCESS)\r\n Process: 593 ExecStartPre=\/bin\/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0\/SUCCESS)\r\n Process: 596 ExecStartPre=\/bin\/sh -c [ ! -e \/usr\/bin\/galera_recovery ] && VAR= || VAR=`cd \/usr\/bin\/..; \/usr\/bin\/galera_recovery`; [ $? -eq 0 ] && sy>\r\n Process: 802 ExecStartPost=\/bin\/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0\/SUCCESS)\r\n Process: 804 ExecStartPost=\/etc\/mysql\/debian-start (code=exited, status=0\/SUCCESS)\r\n Main PID: 657 (mariadbd)\r\n Status: \"Taking your SQL requests now...\"\r\n Tasks: 12 (limit: 4639)\r\n Memory: 159.2M\r\n CPU: 6.445s\r\n CGroup: \/system.slice\/mariadb.service\r\n \u2514\u2500657 \/usr\/sbin\/mariadbd\r\n<\/pre>\nOnce the installation is complete, issue the following command to secure your installation. This is optional, but strongly recommended:<\/p>\n
mariadb_secure_installation<\/pre>\nThis script will set the MariaDB root password, disable remote root login and remove anonymous users. We suggest answering every question with the character \u2018Y<\/strong>\u2019 for yes.<\/p>\n<\/span>Step 5: Configure Database for Akaunting<\/span><\/h2>\nNext, you will need to create a database for Akaunting. First, log in to the MariaDB shell with the following command:<\/p>\n
mysql -u root<\/pre>\nOnce logged in, create a database and user for Akaunting with the following command:<\/p>\n
MariaDB [(none)]> CREATE DATABASE akauntingdb;\r\nMariaDB [(none)]> CREATE USER 'akaunting'@'localhost' IDENTIFIED BY 'Str0ngPassw0rd';\r\nMariaDB [(none)]> GRANT ALL PRIVILEGES ON akauntingdb.* TO 'akaunting'@'localhost';\r\nMariaDB [(none)]> FLUSH PRIVILEGES;\r\nMariaDB [(none)]> EXIT<\/pre>\n<\/span>Step 6: Download Akaunting<\/span><\/h2>\nYou can download the latest version of Akaunting from their website or directly from their GitHub repository.<\/p>\n
cd \/tmp\r\nwget https:\/\/akaunting.com\/download.php?version=latest -O akaunting.zip\r\nunzip akaunting.zip -d \/var\/www\/html\/akaunting<\/pre>\nSet the ownership of the directory to the webroot user and group.<\/p>\n
chown -R www-data. \/var\/www\/html\/akaunting<\/pre>\n<\/span>Step 7: Create an Apache configuration file<\/span><\/h2>\nTo create a new configuration file for Akaunting, we can create a new Apache configuration file:<\/p>\n
nano \/etc\/apache2\/sites-available\/akaunting.conf<\/pre>\nA basic Apache configuration file looks similar to this:<\/p>\n
<VirtualHost *:80>\r\n ServerAdmin webmaster@your-domain.com\r\n ServerName your-domain.com\r\n DocumentRoot \/var\/www\/html\/akaunting\r\n <Directory \/var\/www\/html\/akaunting\/>\r\n Options FollowSymlinks\r\n AllowOverride All\r\n Require all granted\r\n <\/Directory>\r\n ErrorLog ${APACHE_LOG_DIR}\/akaunting_error.log\r\n CustomLog ${APACHE_LOG_DIR}\/akaunting_access.log combined\r\n<\/VirtualHost><\/pre>\nDon\u2019t forget to change the domain name next to ServerAdmin and ServerName (your-domain.com<\/code>) in order to make it work with your unique registered domain name.<\/p>\nSave and close the file, then activate the Akaunting virtual host and rewrite the module with the following command:<\/p>\n
a2ensite akaunting.conf\r\na2enmod rewrite<\/pre>\nRestart the Apache service and you are ready:<\/p>\n
systemctl restart apache2<\/pre>\n<\/span>Step 8: Install Akaunting on Debian 11<\/span><\/h2>\nTo access the Akaunting Web Interface go to http:\/\/your-domain.com.<\/strong> The first step is to choose your language and click on the Next<\/strong> button.<\/p>\n <\/p>\n
Provide your database details and click on the\u00a0Next<\/strong> button.<\/p>\n <\/p>\n
Provide your company name, email address, and admin email address, and click on the Next<\/strong>\u00a0button.<\/p>\n <\/p>\n
Provide your admin email and password and click on the\u00a0Login<\/strong>\u00a0button.<\/p>\n <\/p>\n
After logging in, you need to follow the wizard to create your first company.<\/p>\n
<\/p>\n
Now you can manage your finance in the web-based admin panel.<\/p>\n <\/picture>\n <\/p>\n
That\u2019s it! Akaunting has been successfully installed on your Debian 11 server.<\/p>\n
Of course, you don\u2019t have to install Akaunting on Debian 11 if you use one of our Debian VPS Hosting services, in which case you can simply ask our expert Linux admins to install Akaunting for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n
PS<\/strong>. If you liked this post on how to install Akaunting on Debian 11, please share it with your friends on social networks or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"Akaunting is a free, open-source self-hostable accounting software that can be used to manage your invoices, quotes, and finances. Akaunting … <\/p>\n
Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":43136,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1700,13],"tags":[2001,1962],"yoast_head":"\nHow To Install Akaunting on Debian 11 - RoseHosting<\/title>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\t \n\t \n\t \n \n \n \n \n \n \n \n\t \n\t \n\t \n