Instalar modharbour en el hosting

mod_harbour es un módulo para Apache que permite correr tus PRGs directamente en la web!!!
Post Reply
User avatar
Patricio Avalos Aguirre
Posts: 1028
Joined: Fri Oct 07, 2005 1:56 pm
Location: La Serena, Chile
Contact:

Instalar modharbour en el hosting

Post by Patricio Avalos Aguirre »

Buenas tardes

quisiera saber como instalar los módulos de modharbour en mi hosting

desde ya muchas gracias

pd. soy proveedor de hosting, si que tengo la maquina virtual a mi disposición
Saludos
Patricio

__________________________________________________________________
Version: Harbour 3.2.0dev (r1307082134),Compiler: Borland C++ 5.8.2 (32-bit)
PCode version: 0.3, FWH 13.2
http://www.sialm.cl
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Instalar modharbour en el hosting

Post by Antonio Linares »

Patricio,

Que sistema operativo usa ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Patricio Avalos Aguirre
Posts: 1028
Joined: Fri Oct 07, 2005 1:56 pm
Location: La Serena, Chile
Contact:

Re: Instalar modharbour en el hosting

Post by Patricio Avalos Aguirre »

Antonio

CENTOS 6.10 pero luego nos vamos actualizar a CENTOS 7+
Saludos
Patricio

__________________________________________________________________
Version: Harbour 3.2.0dev (r1307082134),Compiler: Borland C++ 5.8.2 (32-bit)
PCode version: 0.3, FWH 13.2
http://www.sialm.cl
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Instalar modharbour en el hosting

Post by Antonio Linares »

Esto descarga el código de mod_harbour y lo construye para CentOS:
git clone https://github.com/fivetechsoft/mod_harbour
chmod +x go.sh
./go.sh
Para instalarlo:
cd /var/www/html
sudo ln -sf ~/mod_harbour/linux/libharbour.so.3.2.0 libharbour.so.3.2.0
sudo ln -sf ~/mod_harbour/samples modharbour_samples
cd /usr/lib/apache2/modules
sudo ln -sf ~/mod_harbour/linux/mod_harbour.so mod_harbour.so
Finalmente añade estas líneas al final de /etc/apache2/apache2.conf
LoadModule harbour_module /usr/lib/apache2/modules/mod_harbour.so
<FilesMatch "\.(prg|hrb)$">
SetHandler harbour
</FilesMatch>
Está explicado aqui:
https://github.com/FiveTechSoft/mod_har ... /readme.md
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Patricio Avalos Aguirre
Posts: 1028
Joined: Fri Oct 07, 2005 1:56 pm
Location: La Serena, Chile
Contact:

Re: Instalar modharbour en el hosting

Post by Patricio Avalos Aguirre »

gracias antonio voy a probarlo :-)
Saludos
Patricio

__________________________________________________________________
Version: Harbour 3.2.0dev (r1307082134),Compiler: Borland C++ 5.8.2 (32-bit)
PCode version: 0.3, FWH 13.2
http://www.sialm.cl
User avatar
Patricio Avalos Aguirre
Posts: 1028
Joined: Fri Oct 07, 2005 1:56 pm
Location: La Serena, Chile
Contact:

Re: Instalar modharbour en el hosting

Post by Patricio Avalos Aguirre »

Hola Antonio
obtengo este error
remote: Compressing objects: 100% (18/18), done.
remote: Total 17243 (delta 9), reused 15 (delta 6), pack-reused 17219
Recibiendo objetos: 100% (17243/17243), 426.06 MiB | 592.00 KiB/s, listo.
Resolviendo deltas: 100% (10667/10667), listo.
Actualizando archivos: 100% (1183/1183), listo.
[root@server3 ~]# cd /var/www/html
[root@server3 html]# sudo ln -sf ~/mod_harbour/linux/libharbour.so.3.2.0 libharbour.so.3.2.0
[root@server3 html]# sudo ln -sf ~/mod_harbour/samples modharbour_samples
[root@server3 html]# cd /usr/lib/apache2/modules
-bash: cd: /usr/lib/apache2/modules: No existe el fichero o el directorio
buscando la carpeta apache

[root@server3 /]# cd /
[root@server3 /]# find / -name apache

/var/cpanel/config/apache
/var/cpanel/conf/apache
/usr/local/apache
/usr/local/cpanel/bin/admin/Cpanel/apache
/usr/local/cpanel/Cpanel/WebServer/Supported/apache
/usr/local/cpanel/whostmgr/docroot/templates/apache
/usr/src/conf_2017_01_17/usr/local/apache

/home/virtfs/sialm/var/cpanel/config/apache
/home/virtfs/sialm/var/cpanel/conf/apache
/home/virtfs/sialm/usr/local/apache
/home/virtfs/sialm/usr/local/cpanel/bin/admin/Cpanel/apache
/home/virtfs/sialm/usr/local/cpanel/Cpanel/WebServer/Supported/apache
/home/virtfs/sialm/usr/local/cpanel/whostmgr/docroot/templates/apache
/home/virtfs/sialm/usr/src/conf_2017_01_17/usr/local/apache
Saludos
Patricio

__________________________________________________________________
Version: Harbour 3.2.0dev (r1307082134),Compiler: Borland C++ 5.8.2 (32-bit)
PCode version: 0.3, FWH 13.2
http://www.sialm.cl
User avatar
Patricio Avalos Aguirre
Posts: 1028
Joined: Fri Oct 07, 2005 1:56 pm
Location: La Serena, Chile
Contact:

Re: Instalar modharbour en el hosting

Post by Patricio Avalos Aguirre »

http://www.sialm.cl/prueba.prg

mod_harbour version Jul 14 2020, 14:33:26
/tmp/libharbour.1797473664.-1524963204: cannot open shared object file: No such file or directory
failed to load hb_apache()
que me estará faltando ?
Saludos
Patricio

__________________________________________________________________
Version: Harbour 3.2.0dev (r1307082134),Compiler: Borland C++ 5.8.2 (32-bit)
PCode version: 0.3, FWH 13.2
http://www.sialm.cl
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Instalar modharbour en el hosting

Post by Antonio Linares »

Patricio,

Tienes que instalar estos paquetes:

sudo apt install libcurl4-openssl-dev
sudo apt install libssl-dev
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply