Re: [ledgersmb-users] Fwd: Fwd: Production Install, Networking and Setup
On Sat, May 4, 2019 at 1:52 AM Xboxboy Mageia <xboxboy.mageia@gmail.com> wrote:
the browser wont go to http://LedgerSMB/setup.pl
Did you tell the system on which the browser is running, which IP that 'LedgerSMB' name has? Or put it your local DNS? Also; if you're using the default setup, you should be using "https", not "http". And note (in case you don't already know) that browsers like Chromium really don't like using https with ssl certs like what we're using by default (a valid ssl cert but not one that is registered where the browser knows of), but how you get around that and still get the secure session depends on the browser. (But yes, despite such dns & ssl issues, we still recommend using secure broswer session to access the LSMB app.)
I tried adding the machines IP as the servername, but that didn't work either.
In what way did you try adding it? In the URL? For instance, although I also have LXCs/VMs running on a local server, I usually have test containers running on my laptop. And don't have the networking where those are running accessible outside of the laptop. So rather than adding the server name for the LXC to the DNS on the laptop (since the IP can change depending on what other containers have been started), I just use the IP. For example; if 10.0.0.231 is the IP, then for the LSMB setup login page I would use https://10.0.0.231/setup.pl. Or, https://10.0.0.231/login.pl for the login page. -- Robert J. Clay rjclay@gmail.com
On 06/05/2019 08:07, Robert J. Clay wrote:
the browser wont go to http://LedgerSMB/setup.pl Did you tell the system on which the browser is running, which IP
On Sat, May 4, 2019 at 1:52 AM Xboxboy Mageia <xboxboy.mageia@gmail.com> wrote: that 'LedgerSMB' name has? Or put it your local DNS? Also; if you're using the default setup, you should be using "https", not "http". And note (in case you don't already know) that browsers like Chromium really don't like using https with ssl certs like what we're using by default (a valid ssl cert but not one that is registered where the browser knows of), but how you get around that and still get the secure session depends on the browser. (But yes, despite such dns & ssl issues, we still recommend using secure broswer session to access the LSMB app.)
I tried adding the machines IP as the servername, but that didn't work either. In what way did you try adding it? In the URL? For instance, although I also have LXCs/VMs running on a local server, I usually have test containers running on my laptop. And don't have the networking where those are running accessible outside of the laptop. So rather than adding the server name for the LXC to the DNS on the laptop (since the IP can change depending on what other containers have been started), I just use the IP. For example; if 10.0.0.231 is the IP, then for the LSMB setup login page I would use https://10.0.0.231/setup.pl. Or, https://10.0.0.231/login.pl for the login page.
I'm running into similar problems. I am trying to install LedgerSMB on a laptop running SUSE Tumbleweed 2019-05-02. I think my prerequisites are OK. 1. The downloaded tarball does not contain a setup.pl or a login.pl file. Question should these be present or does the apache rewrite module inf effect create them from something else 2. I cannot find the SSL certificates. Question Where should I look? Or should I attempt to create them myself. 3. Instead of going whole hog at the installation, I have tried to fist create a virtual host called lsmb and I've set its document root to my home directory and put an index.html file there which displays its path and filename. I failed to get apache2 to accept this until i altered the vhosts file to turn the SQLEngine off. Then Apache worked to the extent that It did change the DocumentRoot to my home dir and displayed the index file.. Can anyone help? John O'Gorman
Note: Changed Subj line to "LedgerSMB installation on SUSE". On Mon, May 6, 2019 at 1:05 AM John O'Gorman <john@og.co.nz> wrote:
I'm running into similar problems.
I am trying to install LedgerSMB on a laptop running SUSE Tumbleweed 2019-05-02.
Which version of LSMB (LedgerSMB) did you install?
I think my prerequisites are OK.
1. The downloaded tarball does not contain a setup.pl or a login.pl file.
Question should these be present or does the apache rewrite module inf effect create them from something else
The LSMB app takes care of it. If you use apache as the web proxy, then the rewrite ensures that a URL ending in just "/" goes to the /login.pl page, and page requests are otherwise reverse proxied to the LSMB application itself up on http://localhost:5762
2. I cannot find the SSL certificates.
Question Where should I look? Or should I attempt to create them myself.
It appears that SUSE has an example SSL certificate package similar to how it is available in Debian: "An example certificate for a hypothetical company Snake Oil is available when installing the package apache2-example-certificates."[1] -- Robert J. Clay rjclay@gmail.com [1] https://www.suse.com/documentation/opensuse113/book_opensuse_reference/data/...
On 07/05/2019 06:56, Robert J. Clay wrote:
Note: Changed Subj line to "LedgerSMB installation on SUSE". On Mon, May 6, 2019 at 1:05 AM John O'Gorman <john@og.co.nz> wrote:
I'm running into similar problems.
I am trying to install LedgerSMB on a laptop running SUSE Tumbleweed 2019-05-02. Which version of LSMB (LedgerSMB) did you install? ledgersmb-1.6.2.tar.gz
I think my prerequisites are OK.
1. The downloaded tarball does not contain a setup.pl or a login.pl file.
Question should these be present or does the apache rewrite module inf effect create them from something else The LSMB app takes care of it. If you use apache as the web proxy, then the rewrite ensures that a URL ending in just "/" goes to the /login.pl page, and page requests are otherwise reverse proxied to the LSMB application itself up on http://localhost:5762
Where is the login.pl page? When I search the files in the download, the only login.pl I can find is a reference under the UI directory where there are calls which include action=login.pl Similarly with setup.pl there are in .html files under UI/setup which have action="setup.pl" statements But I cannot find either login.pl or setup.pl
2. I cannot find the SSL certificates.
Question Where should I look? Or should I attempt to create them myself. It appears that SUSE has an example SSL certificate package similar to how it is available in Debian:
"An example certificate for a hypothetical company Snake Oil is available when installing the package apache2-example-certificates."[1]
OK. I will look into this further. I have found in /etc/ssl/private 3 files with my full (false) DNS cname:acer.og.gen.nz as prefix to a .crt, .csr, and .key files which seem to contain example ssl file. Maybe I can use these to get LedgerSMB working.
On Mon, May 6, 2019 at 10:30 PM John O'Gorman <john@og.co.nz> wrote:
On 07/05/2019 06:56, Robert J. Clay wrote:
I am trying to install LedgerSMB on a laptop running SUSE Tumbleweed 2019-05-02. Which version of LSMB (LedgerSMB) did you install? ledgersmb-1.6.2.tar.gz
Not the most recent available (which is 1.6.10) but certainly usable.
But I cannot find either login.pl or setup.pl
That's because they're virtual; i.e., they're URLs, not files.
I have found in /etc/ssl/private 3 files with my full (false) DNS cname:acer.og.gen.nz as prefix to a .crt, .csr, and .key files which seem to contain example ssl file.
I'm sorry, I don't understand that; if it's a valid DNS cname, how is false? Or is it not really in DNS?
Maybe I can use these to get LedgerSMB working.
That indeed could be usable that way. Just edit the example apache-vhost.conf file for use with that. If that name is not actually in your local DNS (where ever you're attempting to browser from), you'll need to take care of that. -- Robert J. Clay rjclay@gmail.com
On 13/05/2019 05:07, Robert J. Clay wrote:
On Mon, May 6, 2019 at 10:30 PM John O'Gorman <john@og.co.nz> wrote:
On 07/05/2019 06:56, Robert J. Clay wrote:
I am trying to install LedgerSMB on a laptop running SUSE Tumbleweed 2019-05-02. Which version of LSMB (LedgerSMB) did you install? ledgersmb-1.6.2.tar.gz Not the most recent available (which is 1.6.10) but certainly usable.
But I cannot find either login.pl or setup.pl That's because they're virtual; i.e., they're URLs, not files.
I have found in /etc/ssl/private 3 files with my full (false) DNS cname:acer.og.gen.nz as prefix to a .crt, .csr, and .key files which seem to contain example ssl file. I'm sorry, I don't understand that; if it's a valid DNS cname, how is false? Or is it not really in DNS?
Maybe I can use these to get LedgerSMB working. That indeed could be usable that way. Just edit the example apache-vhost.conf file for use with that. If that name is not actually in your local DNS (where ever you're attempting to browser from), you'll need to take care of that.
That did seem to get round that problem ( though with a complaint that its ID did not match the server name). But I now have a further problem - starman When I run the command: cd /local/ledgersmb starman -I lib -I old/lib --listen localhost:6762 bin/ledgersmb-server.psgi I get an avalanche of error messages which seem to come down to: Error while loading /local/ledgersmb/bin/ledgersmb-server.psgi: Can't locate PGObject.pm in @INC (you may need to install the PGObject module) (@INC contains: /local/ledgersmb/bin/../old/lib /local/ledgersmb/bin/../lib /local/ledgersmb/bin/.. lib old/lib /usr/lib/perl5/site_perl/5.28.1/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.28.1 /usr/lib/perl5/vendor_perl/5.28.1/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.28.1 /usr/lib/perl5/5.28.1/x86_64-linux-thread-multi /usr/lib/perl5/5.28.1 /usr/lib/perl5/site_perl) at /local/ledgersmb/bin/../lib/LedgerSMB.pm line 142. can't locate PGObject.pm in @INC (You may need to install the PGObject module) In fact PGObject.pm is in /local/ledgersmb/lib/LedgerSMB (I'veloaded ledgersmb into /local/ledgersmb). Should I move PGObject.pm somewhere else? Any advice would be gratefully received. John O'Gorman
participants (2)
-
John O'Gorman
-
Robert J. Clay