RoddyJoff
Posts: 41
Joined: Wed Jan 15, 2014 3:31 pm
Location: Manchester, UK

How to install nZEDb on RPI

Sun Jun 10, 2018 2:16 pm

Hi,

I have been trying to install nZEDb onto my RPI 2B+ for the last week or so and am driving myself mad!

I have tried Wheezy, Jessie and finally the latest Stretch.

First of all I used this:

https://linuxconfig.org/how-to-install- ... etch-linux

to install LAMP with no errors being reported

Everything works including the default Apache index.html file when I connect from my Mac at 192.168.0.20

Next I installed nZEDb using the following command:

sudo git clone https://github.com/nZEDb/nZEDb.git /var/www/nZEDb

and this is where it starts to wrong.

I discovered that the default web directory on Stretch differs to that of Wheezy. The original nZEDb installation expects /var/www but it now is /var/www/html on Stretch.

I therefore attempted to ‘fix’ this by changing sites-available and DocumentRoot and other things I cannot remember, getting myself into an endless loop.

If I install a simple index.html file in /var/www/nZEDb before making any changes then 192.168.0.20 works insofar that I get the message in the index.html file so why doesn’t 192.168.0.20/install work, having removed the index.html file?

I am at a loss to say the least. I am about to re-install Apache to set everything to a base/normal state but after that don’t know where to go.

Should Iinstall nZEDb in a different directory??

ie: in which directory should I execute this command:

sudo git clone https://github.com/nZEDb/nZEDb.git


/var/www or var/www/html or /var/www/nZEDb


Many thanks.
------------------------------------
The best things in life are free.

User avatar
scruss
Posts: 1798
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: How to install nZEDb on RPI

Sun Jun 10, 2018 4:51 pm

A Raspberry Pi doesn't meet the nZEDb Hardware Requirements:
4GB RAM, 2 cores(threads) and 20GB disk space minimum.
If it runs at all, it will be dismally slow
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.

RoddyJoff
Posts: 41
Joined: Wed Jan 15, 2014 3:31 pm
Location: Manchester, UK

Re: How to install nZEDb on RPI

Sun Jun 10, 2018 5:59 pm

Hi Scruss,

Thanks for the reply.

I realise the RPI2B+ is woefully inadequate and I do not intend to use it with any great expectations.

My reason for the post was to try and understand how the installation package works. I cannot fathom how to install the programme snd run the install option. I am at a loss and am hoping someone can explain how to launch the ‘install’ programme on Stretch.

Cheers.
------------------------------------
The best things in life are free.

fruitoftheloom
Posts: 17446
Joined: Tue Mar 25, 2014 12:40 pm

Re: How to install nZEDb on RPI

Sun Jun 10, 2018 6:46 pm

RoddyJoff wrote:
Sun Jun 10, 2018 5:59 pm
Hi Scruss,

Thanks for the reply.

I realise the RPI2B+ is woefully inadequate and I do not intend to use it with any great expectations.

My reason for the post was to try and understand how the installation package works. I cannot fathom how to install the programme snd run the install option. I am at a loss and am hoping someone can explain how to launch the ‘install’ programme on Stretch.

Cheers.

Did you check the Hardware Requirements ?

https://github.com/nZEDb/nZEDb/blob/0.x/README.md
Adieu

RoddyJoff
Posts: 41
Joined: Wed Jan 15, 2014 3:31 pm
Location: Manchester, UK

Re: How to install nZEDb on RPI

Sun Jun 10, 2018 8:41 pm

I know the Pi is not adequate.

My question is how to understand how to install the software.
------------------------------------
The best things in life are free.

User avatar
DougieLawson
Posts: 33787
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: How to install nZEDb on RPI

Sun Jun 10, 2018 8:48 pm

RoddyJoff wrote:
Sun Jun 10, 2018 8:41 pm
I know the Pi is not adequate.

My question is how to understand how to install the software.
Read the instructions at: https://github.com/nZEDb/nZEDb/blob/0.x/INSTALL.txt
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

2012-18: 1B*5, 2B*2, B+, A+, Z, ZW, 3Bs*3, 3B+

Any DMs sent on Twitter will be answered next month.

RoddyJoff
Posts: 41
Joined: Wed Jan 15, 2014 3:31 pm
Location: Manchester, UK

Re: How to install nZEDb on RPI

Mon Jun 11, 2018 9:25 am

Hi Dougie,

Thanks for your reply.

I am afraid I have over-complicated my question so please ignore any reference to ‘nZEDb’

My dilemma is:

I have a piece of software that was intended to be run on Wheezy using a standard LAMP server. The installation instructions are extremely easy according to the instructions at:

sudo git clone https://github.com/nZEDb ... /www/nZEDb

Having ensured Apache, MySQL, php &tc are ruinning as expected (and they are) then the final installation instruction is:

nZEDb Initial Setup Configuration

Point your browser to the box http://ip.address/install to start the Installation setup
.

which should result in a page as shown below and then the user is expected to follow the instructions from that page onwards.

However, and here is where I ask you to ignore references to nZEDb, Wheezy expects the Apache DirectoryRoot to be at /var/www but Stretch has moved it to /var/www/html

I installed the software at /var/www/html but when accessing the address http://ip.address/instal nothing happens. Similarly if I install at /var/www then again nothing. I tried the latter and changed all references to DirectoryRoot I could find without success.

I appreciate your suggestion to read the instructions but that leads me into unknown territory and that course of action is not referenced in the installation guide.

I suppose I am trying to understand how to install a piece of software at /var/www/html in Stretch and make it work as it is supposed to.

Apologies if this is long-winded but I am trying to understand how the system functions.

Many thanks.
Attachments
nzedb-configuration-welcome.png
nzedb-configuration-welcome.png (16.94 KiB) Viewed 465 times
------------------------------------
The best things in life are free.

User avatar
DougieLawson
Posts: 33787
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: How to install nZEDb on RPI

Mon Jun 11, 2018 9:42 am

Update /etc/apache2/*.conf files and you can move the DocumentRoot to anywhere in your filesystem. It's only set to /var/www/html because the DebIan installer decided to put it there for Jessie and Stretch.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

2012-18: 1B*5, 2B*2, B+, A+, Z, ZW, 3Bs*3, 3B+

Any DMs sent on Twitter will be answered next month.

RoddyJoff
Posts: 41
Joined: Wed Jan 15, 2014 3:31 pm
Location: Manchester, UK

Re: How to install nZEDb on RPI

Mon Jun 11, 2018 11:49 am

Many thanks Dougie, I’ll give it a go and let you know.
------------------------------------
The best things in life are free.

RoddyJoff
Posts: 41
Joined: Wed Jan 15, 2014 3:31 pm
Location: Manchester, UK

Re: How to install nZEDb on RPI

Wed Jun 13, 2018 9:04 am

Hi Dougie,

Cracked it!

The following code needed to be added to the /etc/apache2/apache2.conf file.

Code: Select all

<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>

Now my .php files work a treat.
------------------------------------
The best things in life are free.

Return to “Other projects”

Who is online

Users browsing this forum: No registered users and 9 guests