How To Install PHL 8.3

Created: Dec. 11, 2017, 2:13 p.m.
Update: Oct. 29, 2020, 7:29 p.m.
How to install PHL 8.3 from Source Code of developer.

Linux Debian 32 or 64Bits.

PHL Elysio - Personal Home Library
http://www.elysio.com.br/

$ = line command as root

PHL8.3 Base Folder Install

/var/www/phl83base
/var/www/phl83base/bases
/var/www/phl83base/cgi-bin
/var/www/phl83base/www

--- Install Apache2 and Enable CGI module.

$ apt-get install apache2
$ a2enmod cgid

--- Download

$ cd /usr/local/src
$ wget -c http://www.elysio.com.br/downloads/phl83.tar.gz
$ tar zxfv phl83.tar.gz
$ cp /usr/local/src/modelo.phl83/http /var/www/phl83base -prav

--- phl83.cip Change path

$ cd /var/www/phl83base/cgi-bin
$ cp phl83.cip phl83.cip.orig
$ more phl83.cip.orig | sed s/'usr\/local\/www3\/dominio\/http/var\/www\/phl83base'/g > phl83.cip
# error in this line, why? Alter handley
usua*=/usr/local/www3/domiminio/www/phl83/php/mail_lote/usua*
# correct path
usua*=/var/www/phl83base/www/phl83/php/mail_lote/usua*
ALL paths are correct?
$ more phl83.cip
00*=/var/www/phl83base/bases/00*
phl_*=/var/www/phl83base/bases/phl_*
LOG*=/var/www/phl83base/www/phl83/log/LOG*
log*=/var/www/phl83base/www/phl83/log/LOG*
actab=/var/www/phl83base/bases/actab
uctab=/var/www/phl83base/bases/uctab
menu*=/var/www/phl83base/www/phl83/html/menu*
cabe*=/var/www/phl83base/www/phl83/html/cabe*
mens*=/var/www/phl83base/www/phl83/html/mens*
rest*=/var/www/phl83base/www/phl83/html/rest*
inde*=/var/www/phl83base/www/phl83/html/inde*
logo*=/var/www/phl83base/www/phl83/html/logo*
atra*=/var/www/phl83base/www/phl83/php/mail_lote/atra*
aler*=/var/www/phl83base/www/phl83/php/mail_lote/aler*
disp*=/var/www/phl83base/www/phl83/php/mail_lote/disp*
iso*=/var/www/phl83base/www/phl83/bkp/iso*
usua*=/var/www/phl83base/www/phl83/php/mail_lote/usua*
phl.css=/var/www/phl83base/www/phl83/css/phl.css
tab_*=/var/www/phl83base/cgi-bin/phl83/tabs/tab_*
catalogo.csv=/var/www/phl83base/www/phl83/csv/catalogo.csv
tombo.csv=/var/www/phl83base/www/phl83/csv/tombo.csv
kardex.csv=/var/www/phl83base/www/phl83/csv/kardex.csv
historicos.csv=/var/www/phl83base/www/phl83/csv/historicos.csv
mstxl=3

--- Wxis.exe 32bits or 64bits?

Default wxis.exe is 32, change if System is 64, how to check?
$ cd /var/www/phl83base/cgi-bin
32Bits, make a backup copy.
$ cp wxis.exe wxis.exe.32
64bits
$ uname -a
Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.51-2 (2017-12-03) x86_64 GNU/Linux
$ cp xwis.exe.64 wxis.exe

--- Apache2

$ cd /etc/apache2/sites-available
$ vim phl83base.conf
# content of file
<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/phl83base/www
        ServerName servername.domain
        ServerAlias www.servername.domain

        <Directory "/var/www/phl83base/www/">
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order deny,allow
                Allow from all
        </Directory>

        ScriptAlias /cgi-bin/ "/var/www/phl83base/cgi-bin/"
        <Directory "/var/www/phl83base/cgi-bin/">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Options FollowSymLinks
                Order allow,deny
                Allow from all
        </Directory>

        LogLevel warn
        ErrorLog ${APACHE_LOG_DIR}/phl83base_error.log
        CustomLog ${APACHE_LOG_DIR}/phl83base_access.log combined
</VirtualHost>
$ a2ensite phl83base.conf
$ service apache2 restart

--- (Optional) Setting of file and Enable HTTPS

$ cd /etc/apache2/site-available
$ cp default-ssl.conf phl83base.ssl.conf
$ vim phl83base.ssl.conf
Change parameters:
DocumentRoot /var/www/phl83base/www
$ a2ensite phl83base.ssl.conf
$ service apache2 restart

--- Permission of files

$ chown www-data:www-data /var/www/phl83base -R
$ chmod 755 /var/www/phl83base -R
$ service apache2 restart

--- Test CGI in a browser

http://<ip>/cgi-bin/wxis.exe?hello
# Correct message
CISIS Interface v5.7c/G/PC/W/M/32767/10/30/I/64bits - XML IsisScript WWWISIS 7.1f
CISIS Interface v5.7c/.iy0/Z/GIZ/DEC/ISI/UTL/INVX/B7/FAT/CIP/CGI/MX/W
Copyright (c)BIREME/PAHO 2010. [http://reddes.bvsalud.org/projects/cisis]
WXIS release date: Jun 26 2012
WXIS|missing error|parameter|IsisScript|

 


Tiago de Souza Moraes - teago.futuria.com.br - 2020 // CSS by UIKIT CSS