Root User - Create a Portal Using the Terminal

Requirement

To create a portal, you must first have a database installed.

The following instructions assume that you are using PostgreSQL.

 

You can create a portal on the Linux server using a shell script.

The following describes how you can do this as "root."

Create a portal as the root user

Run the following command to create a portal using the terminal:

root@linux:/opt/intrexx/bin/linux# ./buildportal.sh -t

The routine for creating a portal is started.

INFO 2021-08-10T11:17:50.564 - de.uplanet.lucy.portalimport.local.PortalBuilderUtility[main]

PortalBuilderUtility

General Information

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

Portal Name: Portal Name: exampleportal

Portal directory [/opt/intrexx/org/exampleportal]:

Path to the portal template [/opt/intrexx/orgtempl/blank]:

Portal Database

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

Please select the type of portal database.

1) MariaDB

2) Microsoft SQL Server

3) Oracle

4) PostgreSQL

Database type (1–4): 4

PostgreSQL

----------

Would you like to create a new database or use an existing one?

1) Create

2) Use existing ones

Database Import Mode (1 - 2): 1

Encoding [UTF-8]:

Host [localhost]:

Port [5432]:

Using SSL Transport Encryption

1) No SSL

2) SSL without certificate validation

3) SSL with certificate validation

SSL [1–3): 1

Database name [ixexampleportal]:

Login: postgres

Password:

Embedded Web Server

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

Host [localhost]: 1

Port [1337]:

Context ($ = none) []: $

Reverse Proxy / Load Balancer

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

Select the reverse proxy or load balancer you want to use.

1) none

2) nginx

Reverse Proxy (1 - 2) [1]: 2

NGINX Reverse Proxy

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

Backend Host [localhost]:

Backend port [1337]:

NGINX configuration file (empty = do not create one):

Communication

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

REST communication port [8101]:11

Log directory

----------

Specify a path to the log directory.

Select "Default" if you want to use the log directory within the portal directory.

1) Default

2) Absolute path

Log directory (1 - 2): 1

 

Solr Configuration

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

Solr URL [http://127.0.0.1:8983/solr]:

Use authentication [yes]?

Solr user's password

 

Would you like to save the settings to a configuration file [y,n]? n

1) Create a database

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

* 100% Successfully Completed

2) Write data to the database

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

* 100% Successfully Completed

3) Copy files

...

INFO 2021-08-10T11:22:15.018 - de.uplanet.lucy.server.patch.PatchController[Thread-1]

Finished the portal patch. The exit code was 0.

* 100% Successfully Completed

7) Closing Activities

...

Starting the upixp_exampleportal service

* 100% Successfully Completed

No further action is required.

After creating the portal

Services Provided

After installation, the following two services will be available:

  • examplepotal [Portal Name]

    Shell script: upixexampleportal [upixNameOfThePortal]

The portal service starts automatically after the portal is created.

The portal service belongs to root.

johndoe@linux:/opt/intrexx/bin/linux# ls -la /etc/systemd/system/upix*

-rw-r--r-- 1 root root 316 Aug 10 11:19/etc/systemd/system/upixp_exampleportal.service

-rw-r--r-- 1 root root 307 Aug 6 12:45 /etc/systemd/system/upixsolr.service

-rw-r--r-- 1 root root 311 Aug 6 12:45 /etc/systemd/system/upixsupervisor.service

Files

After creating a portal, the files belong to root.

org directory

johndoe@linux:/opt/intrexx/org$ ls -al

12 in total

drwxr-xr-x 3 root root 4096 Aug 11 3:39 p.m. .

drwxr-xr-x 25 root root 4096 Aug 10 18:29 ..

drwxr-xr-x 11 root root 4096 Aug 11 3:39 p.m. exampleportal

Portal Directory

johndoe@linux:/opt/intrexx/org/exampleportal# ls -la

48 in total

drwxr-xr-x 11 root root 4096 Aug 11 3:39 p.m. .

drwxr-xr-x 3 intrexx intrexx 4096 Aug 11 3:39 PM ..

drwxr-xr-x 3 root root 4096 Aug 11 3:39 p.m. external

-rw-r--r-- 1 root root 790 Aug 11 3:39 p.m. files.xml

drwxr-xr-x 3 root root 4096 Aug 11 3:39 p.m. groovy

drwxr-xr-x 24 root root 4096 Aug 11 3:39 p.m. internal

drwxr-xr-x 2 root root 4096 Aug 11 3:39 p.m. lib

drwxr-xr-x 3 root root 4096 Aug 11 3:41 p.m. log

drwxr-xr-x 7 root root 4096 Aug 11 3:39 p.m. path

drwxr-xr-x 2 root root 4096 Aug 11 3:39 p.m. portalinformation

drwxr-xr-x 5 root root 4096 Aug 11 15:39 tomcat

drwxr-xr-x 3 root root 4096 Aug 11 3:39 p.m. tomcatRest

Displaying the Portal in Portal Manager

You can now connect to the newly created portal in Intrexx Portal Manager.