Install github invoiceninja

hi,

did an install of the github app.

now, when firing up the app, i get a login screen, as opposed to a registration form.

so, any pointers on what i’ve screwed up?

thanks

Hi,

Do you see any records in the users table?

yep. 3 which appear to be default.

i also saw something somewhere about a client portal to somehow set
-dont see a client dir though…

Do you recognize the emails in the users table?

Once logged into the app you can access the client portal from a client or invoice.

the emails are from the default github install
everything is default github

is there a separate client app for invoiceninja

i’m simply trying to setup a demo to look around at the ux/ui

i followed the steps to setup/install from the repos

the test url
http://161.35.5.174/invoiceninja

it has a login form…
i dont have any other access… did i screw something up in the install/setup

You can download the desktop app here: OS tools - Free Invoicing Software for Small Businesses | Invoice Ninja

The setup process should set your initial user, you can use the recover password option to set a new password.

why do i need desktop
i thought the webapp was the app
are you saying the webapp is useless

You don’t need it, you asked if there was a client app available

im actually trying to to figure out how to access the webapp from github. i dont see how to register with it
did u look at the url?

how does one sign up/register

In a clean install you can use the /setup route to create the first user.

I haven’t tried accessing your app.

um… 1st ive heard of setup!! any pointers to this. was it in the github install steps and i missed it

I suggest following one of the installation guides

these are what i had used…

however
http://161.35.5.174/invoiceninja/setup
apparently redirects to the index.php – the default form…

You may want to try using an automated installer like Docker or Softaculous

that doesnt help with solving the issue… but thanks…

the test dir is

http://161.35.5.174/invoiceninja/

it appears the issue might be in the apache/.htaccess conf files…

there is a /public/js/setup dir…

my conf files are

iij24

trying to setup/install invoiceninja from github.

my test url
http://161.35.5.174/invoiceninja/

this gets a default login form.

I’ve seen something of a register/setup form, but I cant figure out what I’ve screwed up.
http://161.35.5.174/invoiceninja/setup
gets the same default page

so, since I’m using Apache/ubuntu, does anyone have any pointers?

thanks

cat /etc/apache2/sites-available/invoiceninja.conf
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName temp22
ServerAlias temp
DocumentRoot /var/www/html/invoiceninja/public
#DocumentRoot /var/www/html/

<Directory    /var/www/html/invoiceninja/public>

        DirectoryIndex index.html index.php

        # test Options -Indexes +FollowSymLinks +MultiViews 
        #Options -Indexes +FollowSymLinks +MultiViews
        Options +FollowSymLinks
        AllowOverride All 
        Require all granted 
        ##Options -Indexes +FollowSymLinks +MultiViews AllowOverride All Require all granted


        ##Options Indexes FollowSymLinks MultiViews
        ##Options -Indexes FollowSymlinks
        #Options FollowSymlinks
        #AllowOverride All
        ##Order allow,deny
        ##allow from all
        #Require all granted
</Directory>

#Alias "/invoiceninja" "/var/www/html/invoiceninja/public/"




LogLevel debug
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

root@ubuntu-s-1vcpu-2gb-nyc1-01-base-174:/var/www/html/invoiceninja#
cat ninja/.htaccess

#sendportal

<IfModule mod_negotiation.c>
    Options -MultiViews  -Indexes
</IfModule>

#Options -MultiViews -Indexes
RewriteEngine On
RewriteBase '/invoiceninja/'

# Redirect everything to the 'laravel' subfolder

##RewriteCond %{REQUEST_URI} ^/$
##RewriteRule ^(.*)$ /invoiceninja/$1 [L]
##RewriteRule ^invoiceninja/(.*)$ public/$1 [L]

# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]


# Handle front controller (index.php) rewriting
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

#sendportal

RewriteRule “^.env” - [F,L]

RewriteRule “^storage” - [F,L]

RewriteRule ^(.well-known)($|/) - [L]

#sendportal
# Make sure .env files not not browseable if in a sub-directory.
<FilesMatch “.env$”>
# Apache 2.2
<IfModule !authz_core_module>
Deny from all

   # Apache 2.4+
   <IfModule authz_core_module>
      Require all denied
   </IfModule>
</FilesMatch>

#sendportal

testing for the above sendportal change – RewriteRule ^(.*)$ public/$1 [L]

server-configs-apache/dist/.htaccess at main · h5bp/server-configs-apache · GitHub

# INTERNET EXPLORER

----------------------------------------------------------------------

| Iframes cookies |

----------------------------------------------------------------------

Allow cookies to be set from iframes in Internet Explorer.

Content Removed (Windows) | Microsoft Learn

The Platform for Privacy Preferences 1.0 (P3P1.0) Specification

Header set P3P "policyref=\"/w3c/p3p.xml\", CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\""

# MEDIA TYPES AND CHARACTER ENCODINGS

----------------------------------------------------------------------

| Character encodings |

----------------------------------------------------------------------

Serve all resources labeled as text/html or text/plain

with the media type charset parameter set to UTF-8.

core - Apache HTTP Server Version 2.4

AddDefaultCharset utf-8

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Serve the following file types with the media type charset

parameter set to UTF-8.

mod_mime - Apache HTTP Server Version 2.4

AddCharset utf-8 .atom \ .bbaw \ .css \ .geojson \ .js \ .json \ .jsonld \ .manifest \ .rdf \ .rss \ .topojson \ .vtt \ .webapp \ .webmanifest \ .xloc \ .xml

# WEB PERFORMANCE

----------------------------------------------------------------------

| Compression |

----------------------------------------------------------------------

# Force compression for mangled headers.
# https://developer.yahoo.com/blogs/ydn/pushing-beyond-gzipping-25601.html

<IfModule mod_setenvif.c>
    <IfModule mod_headers.c>
        SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
        RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
    </IfModule>
</IfModule>

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

# Map certain file types to the specified encoding type in order to
# make Apache serve them with the appropriate `Content-Encoding` HTTP
# response header (this will NOT make Apache compress them!).

# If the following file types wouldn't be served without the appropriate
# `Content-Enable` HTTP response header, client applications (e.g.:
# browsers) wouldn't know that they first need to uncompress the response,
# and thus, wouldn't be able to understand the content.

# http://httpd.apache.org/docs/current/mod/mod_mime.html#addencoding

<IfModule mod_mime.c>
    AddEncoding gzip              svgz
</IfModule>

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

# Compress all output labeled with one of the following media types.

# IMPORTANT: For Apache versions below 2.3.7 you don't need to enable
# `mod_filter` and can remove the `<IfModule mod_filter.c>` & `</IfModule>`
# lines as `AddOutputFilterByType` is still in the core directives.

<IfModule mod_filter.c>
    AddOutputFilterByType DEFLATE "application/atom+xml" \
                                  "application/javascript" \
                                  "application/json" \
                                  "application/ld+json" \
                                  "application/manifest+json" \
                                  "application/rdf+xml" \
                                  "application/rss+xml" \
                                  "application/schema+json" \
                                  "application/vnd.geo+json" \
                                  "application/vnd.ms-fontobject" \
                                  "application/x-font-ttf" \
                                  "application/x-web-app-manifest+json" \
                                  "application/xhtml+xml" \
                                  "application/xml" \
                                  "font/opentype" \
                                  "image/svg+xml" \
                                  "image/x-icon" \
                                  "text/cache-manifest" \
                                  "text/css" \
                                  "text/html" \
                                  "text/javascript" \
                                  "text/plain" \
                                  "text/vtt" \
                                  "text/x-component" \
                                  "text/xml"
</IfModule>

root@ubuntu-s-1vcpu-2gb-nyc1-01-base-174:/var/www/html/invoiceninja#
cat public/.htaccess

Options -MultiViews
RewriteEngine On

RewriteBase /invoiceninja

# Redirect Trailing Slashes If Not A Folder...

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_URI} (.+)/$

RewriteRule ^(.*)/$  /$1 [L,R=301]

# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

#–snipe
Options -Indexes

DENY ACCESS TO IIS CONFIG FILE

Apache 2.2+

<IfModule !authz_core_module>
<Files “web.config”>
Order allow,deny
Deny from all

Apache 2.4+

Require all denied #--snipe # Blocks Search Engine Indexing Header set X-Robots-Tag "noindex, nofollow"