0831.html 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Install Akaunting - Open Source Accounting Software - On Linux</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="Browser Based,Home Lab,Home Lab Ideas,Install Guide,Self-Hosted,Web Based,Web Based Tools,Accounting,Accounting Software,Akaunting,Expense Tracker,Expense Tracking,Homelab,Income Tracking,Invoice,Invoicing Software,Linux,Payment Manager,Ubuntu,Debian,PHP,MariaDB,MySQL,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Install Akaunting - Open Source Accounting Software - On Linux">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="10/09/2023 12:20:47 PM" />
  12. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  13. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  14. <script type="text/javascript" src="includes/js/steps.js"></script>
  15. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="gridContainer">
  19. <div class="topMargin"></div>
  20. <div id="listName" class="topMargin">
  21. <h1>Install Akaunting - Open Source Accounting Software - On Linux</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <h2>What is Akaunting?</h2>
  26. <blockquote><em>Akaunting is a free, open source and online accounting software designed for small businesses and freelancers. -<a href="https://github.com/akaunting/akaunting" target="_blank">https://github.com/akaunting/akaunting</a></em></blockquote>
  27. <h2>Installation</h2>
  28. <ol>
  29. <li>Log into the Linux device</li>
  30. <li>Run the following commands in a terminal window:
  31. <div class="codeBlock"># update software repositories<br />
  32. sudo apt update<br />
  33. # install prerequisites<br />
  34. sudo apt install curl wget zip lsb-release apt-transport-https ca-certificates -y<br />
  35. # add the php gpg key<br />
  36. sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg<br />
  37. # add the php apt repository<br />
  38. echo &quot;deb https://packages.sury.org/php/ $(lsb_release -sc) main&quot; | sudo tee /etc/apt/sources.list.d/php.list<br />
  39. # update software repositories<br />
  40. sudo apt update<br />
  41. # install available software updates<br />
  42. sudo apt upgrade -y<br />
  43. # install Apache HTTPD and MySQL<br />
  44. sudo apt install apache2 mariadb-server mariadb-client -y<br />
  45. # install PHP components<br />
  46. sudo apt install php8.0 libapache2-mod-php8.0 php8.0-common php8.0-xml php8.0-bcmath php8.0-gd php8.0-mbstring php8.0-curl php8.0-zip php8.0-gmp php8.0-mysql php8.0-intl -y<br />
  47. # configure the MySQL database<br />
  48. sudo su<br />
  49. mysql_secure_installation</div>
  50. </li>
  51. <li>Press Enter to login as root</li>
  52. <li>Type N and press Enter to not switch to unix socket authentication</li>
  53. <li>Type Y and press Enter to set a root password, type the password twice to confirm</li>
  54. <li>Type Y and press Enter to remove anonymous users</li>
  55. <li>Type Y and press Enter to disallow root login remotely</li>
  56. <li>Type Y and press Enter to remove the test database</li>
  57. <li>Type Y and press Enter to reload privilege tables</li>
  58. <li>Run the following command to login into MySQL:
  59. <div class="codeBlock">mysql -u root -p</div>
  60. </li>
  61. <li>Authenticate with the root password set earlier</li>
  62. <li>Run the following commands to create the database and database user
  63. <div class="codeBlock">CREATE DATABASE akaunting;<br />
  64. GRANT ALL ON akaunting.* to &#39;akaunting_rw&#39;@&#39;localhost&#39; IDENTIFIED BY &#39;@kaunt1ng!&#39;;<br />
  65. FLUSH PRIVILEGES;<br />
  66. EXIT;<br />
  67. exit</div>
  68. </li>
  69. <li>Continue with the following commands:
  70. <div class="codeBlock"># lookup latest akaunting release URL<br />
  71. regex=&#39;&quot;browser_download_url&quot;: &quot;(https:\/\/github.com\/akaunting\/akaunting\/releases\/download\/[^/]*\/[^/]*\.zip)&quot;&#39; &amp;&amp; response=$(curl -H &quot;Accept: application/vnd.github.v3+json&quot; https://api.github.com/repos/akaunting/akaunting/releases/latest) &amp;&amp; [[ $response =~ $regex ]] &amp;&amp; downloadURL=&quot;${BASH_REMATCH[1]}&quot;<br />
  72. # download the latest release<br />
  73. wget -O /tmp/akaunting.zip $downloadURL<br />
  74. # extract the download .zip archive<br />
  75. sudo unzip /tmp/akaunting.zip -d /var/www/html/akaunting<br />
  76. # copy sample .env file<br />
  77. sudo cp /var/www/html/akaunting/.env.example /var/www/html/akaunting/.env<br />
  78. # generate application key<br />
  79. # if prompted, answer yes<br />
  80. sudo php /var/www/html/akaunting/artisan key:generate<br />
  81. # set the owner of the akaunting directory<br />
  82. sudo chown -R www-data:www-data /var/www/html/akaunting<br />
  83. # enable mod_rewrite<br />
  84. sudo a2enmod rewrite<br />
  85. # restart apache2 service<br />
  86. sudo systemctl restart apache2</div>
  87. </li>
  88. </ol>
  89. <h2>Akaunting Web Installer</h2>
  90. <ol>
  91. <li>Open a web browser and navigate to http://DNSorIP/akaunting/index.php</li>
  92. <li>Select a Language &gt; Click Next</li>
  93. <li>Complete the Database form as shown below
  94. <p>Hostname: localhost<br />
  95. Username: akaunting_rw<br />
  96. Password: @kaunt1ng!<br />
  97. Database: akaunting</p>
  98. </li>
  99. <li>Click Next</li>
  100. <li>Complete the Admin form by entering a Company Name, Company Email, Admin Email and Admin Password &gt; Click Next</li>
  101. <li>Log in with the Admin username and password</li>
  102. <li>On the Company tab, scroll to the bottom of the form and click Skip this step</li>
  103. <li>Select/add the desired currencies &gt; Click Next</li>
  104. <li>Click Next on the Taxes tab</li>
  105. <li>Click the Create your first invoice link</li>
  106. <li>Welcome to Akaunting</li>
  107. </ol>
  108. <p>Source: <a href="https://akaunting.com/docs/installation" target="_blank">https://akaunting.com/docs/installation</a></p> </div>
  109. </div>
  110. </body>
  111. </html>