Installation on Linux/Debian: Difference between revisions

From nuBuilderForte
Jump to navigation Jump to search
No edit summary
No edit summary
Line 8: Line 8:


''(It is best to just apply the recommended settings during the installation process)''
''(It is best to just apply the recommended settings during the installation process)''


https://www.cyberciti.biz/faq/how-to-install-lamp-on-debian-10-buster/
https://www.cyberciti.biz/faq/how-to-install-lamp-on-debian-10-buster/
Line 19: Line 20:


Recommended PHP modules to install (adjust acc. to your version):
Recommended PHP modules to install (adjust acc. to your version):
 
<pre>
php7.4-cli php7.4-fpm php7.4-pdo php7.4-mysql php7.4-zip php7.4-gd  php7.4-mbstring php7.4-curl php7.4-xml
php7.4-cli php7.4-fpm php7.4-pdo php7.4-mysql php7.4-zip php7.4-gd  php7.4-mbstring php7.4-curl php7.4-xml


Line 27: Line 28:


php7.4-imap php7.4-cli php7.4-fpm php7.4-cgi php7.4-cgi-dbgsym libapache2-mod-php7.4
php7.4-imap php7.4-cli php7.4-fpm php7.4-cgi php7.4-cgi-dbgsym libapache2-mod-php7.4
 
</pre>


== '''Creation of database.''' ==
== '''Creation of database.''' ==
Line 44: Line 45:


First, open the mysql command line from the system terminal with:
First, open the mysql command line from the system terminal with:
 
<pre>
>>> ''mysql -u root -pYourRootPsw''
mysql -u root -pYourRootPsw
 
</pre>
Next, the DB and user can be created as follows:
Next, the DB and user can be created as follows:
<pre>
create database TestDB;


>>> ''create database TestDB;''
grant all privileges on TestDB.* to 'globeadmin'@'%' identified by 'nuB4psw';
 
</pre>
>>> ''grant all privileges on TestDB.* to 'globeadmin'@'%' identified by 'nuBpsw';''
 




Line 59: Line 60:


Download the nuBuilder Forte zipped files from SourceForge
Download the nuBuilder Forte zipped files from SourceForge
 
<pre>
>>> ''wget https://sourceforge.net/projects/nubuilder/files/latest/download''
wget https://sourceforge.net/projects/nubuilder/files/latest/download
 
</pre>
Unpack the downloaded file
Unpack the downloaded file
 
<pre>
>>> ''unzip download''
unzip download
 
</pre>
Rename to desired name (it can have the name of the DB or any other name):
Rename to desired name (it can have the name of the DB or any other name):
 
<pre>
>>> ''mv nubuilder4-master TestDB''
mv nubuilder4-master TestDB
 
</pre>
The folder TestDB must be placed in the Apache2 folder to be accessible externally. Typically it will be:
The folder TestDB must be placed in the Apache2 folder to be accessible externally. Typically it will be:
 
<pre>
''/var/www/html/TestDB''
/var/www/html/TestDB
 
</pre>




Line 79: Line 80:


Edit '''nuconfig.php''' (nano editor can be used or any other)
Edit '''nuconfig.php''' (nano editor can be used or any other)
 
<pre>
>>> ''nano /var/www/html/TestDB/nuconfig.php''
nano /var/www/html/TestDB/nuconfig.php
 
</pre>
For simplicity the same name and password both for DB and nuBuilder accounts were used here - but different ones can be used as well.
For simplicity the same name and password both for DB and nuBuilder accounts were used here - but different ones can be used as well.


There are more settings possibilities in nuconfig.php but for the beginning the following ones are sufficient to set-up:
There are more settings possibilities in nuconfig.php but for the beginning the following ones are sufficient to set-up:
 
<pre>
''$nuConfigDBName                    = "TestDB";
$nuConfigDBName                    = "TestDB";


$nuConfigDBUser                    = "globeadmin";
$nuConfigDBUser                    = "globeadmin";


$nuConfigDBPassword                = "nuBpsw";
$nuConfigDBPassword                = "nuB4psw";


$nuConfigDBGlobeadminUsername      = "globeadmin";
$nuConfigDBGlobeadminUsername      = "globeadmin";


$nuConfigDBGlobeadminPassword      = "nuBpsw";
$nuConfigDBGlobeadminPassword      = "nuB4psw";
 
$nuConfigTitle                      = "TestDB - nuBuilder";''


$nuConfigTitle                      = "TestDB - nuBuilder";
</pre>


== '''Launch of nuBuilder''' ==
== '''Launch of nuBuilder''' ==
Line 104: Line 105:


(But of course you need to use your own server address)
(But of course you need to use your own server address)
 
<pre>
http://192.168.1.10/TestDB/index.php
http://192.168.1.10/TestDB/index.php
 
</pre>
when the login window appears enter the nuBuilder user and password:
when the login window appears enter the nuBuilder user and password:
 
<pre>
User: globeadmin
User: globeadmin
 
Password: nuB4psw
Password: nuBpsw
</pre>
 
All the required tables will be created automatically. So no need to import manually the initial nubuilder4.sql to MariaDB - (anyway manual import is as well allowed).
All the required tables will be created automatically. So no need to import manually the initial nubuilder4.sql to MariaDB - (anyway manual import is as well allowed).

Revision as of 19:56, 5 January 2021

LAMP server installation on Linux Debian

Before installing nuBuilder Forte on your server you need to make sure that Apache2, MariaDB and PHP are properly installed, configured and fully operational.

To do this, you can follow any Linux/Debian installation guide. A few links which can be helpful are listed below:

(It is best to just apply the recommended settings during the installation process)


https://www.cyberciti.biz/faq/how-to-install-lamp-on-debian-10-buster/

https://www.tecmint.com/install-lamp-on-debian-10-server/

https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mariadb-php-lamp-stack-on-debian-10

https://linuxhint.com/install_phpmyadmin_debian_10/


Recommended PHP modules to install (adjust acc. to your version):

php7.4-cli php7.4-fpm php7.4-pdo php7.4-mysql php7.4-zip php7.4-gd  php7.4-mbstring php7.4-curl php7.4-xml

php7.4-bcmath php7.4-json php7.4-common php7.4-intl php7.4-bz2 php7.4-soap php7.4-mysql php7.4-readline

php7.4-opcache php7.4-mbstring php7.4-gd php7.4-curl php7.4-pspell php7.4-zip php7.4-xmlrpc php7.4-tidy php7.4-sqlite3

php7.4-imap php7.4-cli php7.4-fpm php7.4-cgi php7.4-cgi-dbgsym libapache2-mod-php7.4

Creation of database.

The database for nuBuilder Forte can be created from the command line or with phpMyAdmin which will allow a more user friendly way to perform that process. (The installation of phpMyAdmin is included in the last link).

Please note that phpMyAdmin is included in the nuBuilder package and will be available from it after full installation and commissioning of nuBuilder.


Example (Name of database: TestDB)

In case of mysql command line the database can be created as following:

First, open the mysql command line from the system terminal with:

mysql -u root -pYourRootPsw

Next, the DB and user can be created as follows:

create database TestDB;

grant all privileges on TestDB.* to 'globeadmin'@'%' identified by 'nuB4psw';


Downloading nuBuilder Forte

Download the nuBuilder Forte zipped files from SourceForge

wget https://sourceforge.net/projects/nubuilder/files/latest/download

Unpack the downloaded file

unzip download

Rename to desired name (it can have the name of the DB or any other name):

mv nubuilder4-master TestDB

The folder TestDB must be placed in the Apache2 folder to be accessible externally. Typically it will be:

/var/www/html/TestDB


nuBuilder configuration

Edit nuconfig.php (nano editor can be used or any other)

nano /var/www/html/TestDB/nuconfig.php

For simplicity the same name and password both for DB and nuBuilder accounts were used here - but different ones can be used as well.

There are more settings possibilities in nuconfig.php but for the beginning the following ones are sufficient to set-up:

$nuConfigDBName                     = "TestDB";

$nuConfigDBUser                     = "globeadmin";

$nuConfigDBPassword                 = "nuB4psw";

$nuConfigDBGlobeadminUsername       = "globeadmin";

$nuConfigDBGlobeadminPassword       = "nuB4psw";

$nuConfigTitle                      = "TestDB - nuBuilder";

Launch of nuBuilder

After the configuration you can login to nuBuilder with link to the folder on your http server.

(But of course you need to use your own server address)

http://192.168.1.10/TestDB/index.php

when the login window appears enter the nuBuilder user and password:

User: globeadmin
Password: nuB4psw

All the required tables will be created automatically. So no need to import manually the initial nubuilder4.sql to MariaDB - (anyway manual import is as well allowed).