0819.html 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Install InvoiceNinja - Invoice and Payment Manager - On Windows</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,Expense Tracker,Homelab,Invoice,Invoice Ninja,InvoiceNinja,Invoicing Software,Payment Manager,Microsoft Windows,Windows,MariaDB,MySQL,PHP Based Applications,XAMPP,PHP,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Install InvoiceNinja - Invoice and Payment Manager - On Windows">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="02/15/2023 01:31:55 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 InvoiceNinja - Invoice and Payment Manager - On Windows</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <h2>What is InvoiceNinja?</h2>
  26. <blockquote><em>[InvoiceNinja is a] powerful suite of features to invoice clients, facilitate payment, track-time &amp; tasks, expenses, and more. -<a href="https://www.invoiceninja.com/invoicing-features/" target="_blank">https://www.invoiceninja.com/invoicing-features/</a></em></blockquote>
  27. <h2>Installation</h2>
  28. <ol>
  29. <li>Download XAMPP <a href="https://sourceforge.net/projects/xampp/files/XAMPP%20Windows/" target="_blank">Download</a></li>
  30. <li>Download InvoiceNinja <a href="https://github.com/invoiceninja/invoiceninja/releases/latest" target="_blank">Download</a></li>
  31. <li><label for="cb_li_917989_0">Download Microsoft Visual C++ </label><label for="cb_li_917989_0"><a href="https://aka.ms/vs/16/release/vc_redist.x64.exe" target="_blank">Download</a></label></li>
  32. <li>Install Microsoft Visual C++</li>
  33. <li>Right click the downloaded XAMPP file &gt; Extract All...</li>
  34. <li>Right click the downloaded InvoiceNinja .zip file &gt; Extract All...</li>
  35. <li>Cut the invoiceninja folder inside the XAMPP directory</li>
  36. <li>Navigate into the invoiceninja folder &gt; Create a copy of .env.example</li>
  37. <li>Rename the copy .env</li>
  38. <li>Navigate into the invoiceninja/public folder</li>
  39. <li>Edit the .htaccess file in a text editor</li>
  40. <li>Scroll to the bottom of the file and find the following lines and add the /invoiceninja/ folder to the RewriteRule
  41. <p>RewriteRule ^ %1 [L,R=301]<br />
  42. RewriteRule ^ index.php [L]</p>
  43. </li>
  44. <li>Replace the line with the following
  45. <p>RewriteRule ^ /invoiceninja/%1 [L,R=301]<br />
  46. RewriteRule ^ /invoiceninja/index.php [L]</p>
  47. </li>
  48. <li>Save the changes and close the editor</li>
  49. <li>Navigate back to the Downloads directory and copy the extracted XAMPP directory to a safe location to run from, C:\Program Files for example</li>
  50. <li>Run XAMPP/setup_xampp.bat to update the configuration files with the new server location</li>
  51. <li>Navigate into XAMPP/PHP and edit php.ini in a text editor</li>
  52. <li>Find the list of extensions and make sure the following are enabled by removing the ; at the start of the line
  53. <p>extension=curl<br />
  54. extension=fileinfo<br />
  55. extension=gd<br />
  56. extension=gmp<br />
  57. extension=mbstring<br />
  58. extension=mysqli<br />
  59. extension=openssl<br />
  60. extension=pdo_mysql</p>
  61. </li>
  62. <li>Save the changes to php.ini</li>
  63. <li>Navigate into XAMPP/Apache/conf and edit httpd.conf in a text editor</li>
  64. <li>Uncomment the following Apache modules by removing the # in front of them
  65. <p>LoadModule deflate_module modules/mod_deflate.so<br />
  66. LoadModule filter_module modules/mod_filter.so</p>
  67. </li>
  68. <li>Search the file for &lt;Directory /&gt;<directory></directory></li>
  69. <li>Overwrite the existing values with the following
  70. <p>Options Indexes FollowSymLinks<br />
  71. AllowOverride All</p>
  72. </li>
  73. <li>Paste the following at the bottom of the httpd.conf file
  74. <p>Alias /invoiceninja &quot;C:/Program Files/xampp/invoiceninja/public&quot;<br />
  75. &lt;Directory &quot;C:/Program Files/xampp/invoiceninja/public&quot;&gt;<br />
  76. DirectoryIndex index.php<br />
  77. Options +FollowSymLinks<br />
  78. AllowOverride All<br />
  79. Require all granted<br />
  80. &lt;/Directory&gt;</p>
  81. </li>
  82. <li>Save the changes and close out of the editor</li>
  83. <li>Click the Start button &gt; Search Control &gt; Click Control Panel</li>
  84. <li>Click on System &gt; Advanced system settings</li>
  85. <li>Click the Environment Variables...</li>
  86. <li>Edit the System Path variable</li>
  87. <li>Click the New button</li>
  88. <li>Add the PHP installation directory (ie C:\Program Files\xampp\PHP\)</li>
  89. <li>Click the New button</li>
  90. <li>Add the MySQL installation directory (ie C:\Program Files\xampp\mysql\bin\)</li>
  91. <li>Click OK to all open dialog windows</li>
  92. <li>Back in File Explorer, runun XAMPP/xampp-control.exe</li>
  93. <li>Click the Start buttons next to Apache and MySQL</li>
  94. <li>Navigate to XAMPP/mysql/bin</li>
  95. <li>Hold the SHIFT key and right click in the white space &gt; Open PowerShell window here...</li>
  96. <li>Run the following commands in the PowerShell window to setup the database
  97. <div class="codeBlock PS">.\mysql -u root<br />
  98. CREATE DATABASE invoiceninja;<br />
  99. GRANT ALL ON invoiceninja.* to &#39;invoice_ninja_rw&#39;@&#39;localhost&#39; IDENTIFIED BY &#39;!nv0ic3Ninj@!&#39;;<br />
  100. FLUSH PRIVILEGES;<br />
  101. EXIT;<br />
  102. exit</div>
  103. </li>
  104. </ol>
  105. <h2>InvoiceNinja Web Installer</h2>
  106. <ol>
  107. <li>Open a web browser and navigate to http://DNSorIP/invoiceninja/setup</li>
  108. <li>The InvoiceNinja web setup should be load</li>
  109. <li>Enter the URL to use for the site (ie http://DNSorIP/invoiceninja)</li>
  110. <li>Uncheck the Require HTTPS option &gt; Click Test PDF</li>
  111. <li>Complete the Database Connection form as follows
  112. <p>Host: localhost<br />
  113. Port: 3306<br />
  114. Database: invoiceninja<br />
  115. Username: invoice_ninja_rw<br />
  116. Password: Click the Test connection button</p>
  117. </li>
  118. <li>If you have an Email server, configure it under Email Settings, otherwise leave the driver as Log and click the Send test email button</li>
  119. <li>Completed the User Details form by entering a First Name, Last Name, Email and Password</li>
  120. <li>Check both I Agree checkboxes &gt; Click Submit</li>
  121. <li>If the page redirects to http://localhost, navigate to http://localhost/invoiceninja/index.php</li>
  122. <li>Login with the Email and Password setup earlier &gt; Click Login with email</li>
  123. <li>On the Welcome dialog, enter a company name and select the Light or Dark theme &gt; Click Save</li>
  124. <li>Welcome to InvoiceNinja</li>
  125. </ol>
  126. <p>Source: <a href="https://invoiceninja.github.io/docs/self-host-installation/" target="_blank">https://invoiceninja.github.io/docs/self-host-installation/</a></p> </div>
  127. </div>
  128. </body>
  129. </html>