Run Harbour on Apache Linux from Windows 10 !!!

Run Harbour on Apache Linux from Windows 10 !!!

Postby Antonio Linares » Mon May 20, 2019 7:40 am

0. Go to Windows features and enable the Windows SubSystem Linux. Windows will ask you to reboot.

1. Go to Windows Store and download Ubuntu 18.04 LTS

2. A prompt will appear on Windows and click on Launch. After some minutes you will be prompted for a username and password of your choice

3. From Ubuntu do this:
Code: Select all  Expand view  RUN
git clone https://github.com/fivetechsoft/mod_harbour
chmod +x ./mod_harbour/linux/go.sh
./mod_harbour/linux/go.sh

4. On Windows Microsoft Edge or Chrome go to localhost/test.prg

5. To start making your own tests, from Ubuntu do:
sudo nano -c /var/www/html/test.prg
Ctrl+X to save
and refresh your browser

Enjoy the magic of Apache and Harbour working together ;-)

Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42107
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Run Harbour on Apache Linux from Windows 10 !!!

Postby Silvio.Falconi » Mon May 20, 2019 8:17 am

Nice,
Antonio is not clear to me about any passage in your guide

0. Go to Windows features and enable the Windows SubSystem Linux. Windows will ask you to reboot.




maybe if you publish the screen where to go to set the subsystem in linux (both for win10 and win7)

Perhaps you use win10, it's possibile also on win7 ?

because I not found this option on windows 10 I have a Miix320 Lenovo
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7063
Joined: Thu Oct 18, 2012 7:17 pm

Re: Run Harbour on Apache Linux from Windows 10 !!!

Postby Antonio Linares » Mon May 20, 2019 8:22 am

This only works on Windows 10

Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42107
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Run Harbour on Apache Linux from Windows 10 !!!

Postby Silvio.Falconi » Mon May 20, 2019 9:18 am

thanks
the problem is I open the feature windows dialog and it ask me to wait and not show the tree

Image

it from 15 minutes
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7063
Joined: Thu Oct 18, 2012 7:17 pm

Re: Run Harbour on Apache Linux from Windows 10 !!!

Postby Silvio.Falconi » Mon May 20, 2019 9:33 am

then i saw om windows store it want
Windows 10 versione 16215.0
i have Windows 10 PRO versione 1703 build 15063.13.87
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7063
Joined: Thu Oct 18, 2012 7:17 pm

Re: Run Harbour on Apache Linux from Windows 10 !!!

Postby Antonio Linares » Mon May 20, 2019 3:08 pm

There is already an active mod_harbour users community live chat where you can learn and share about it:

https://harbourproject.slack.com

Please join us there to the just born web evolution of Harbour ;-)

Increible (web) things are already being made !!!
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42107
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Re: Run Harbour on Apache Linux from Windows 10 !!!

Postby Antonio Linares » Tue May 21, 2019 5:27 am

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42107
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Run Harbour on Apache Linux from Windows 10 !!!

Postby Otto » Sun May 26, 2019 6:03 am

Dear Antonio,
thank you for your great work. All is functioning as you descript here.
My first test was ready within minutes.
Best regards
Otto


Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: Run Harbour on Apache Linux from Windows 10 !!!

Postby MFarias » Mon May 27, 2019 11:52 am

How can I set this in my Mac ?

export HRB_DIR="/Developer/harbour-apache"
export HRB_INC="$HRB_DIR/include"
export HRB_LIB="$HRB_DIR/lib/darwin/gcc"

export APACHE="/Users/lailton/Developer/harbour-apache/apache/apache-2.4.39"
FW 17.09 - xHB 1.2.3 - Embarcadero C++ 7
xDevStudio 0.72 - FivEdit ( \o/ ) - Pelles C
MySQL 5.7 - DBF
FastReport - PHP for Web Services - Java Android
http://matheusfariasdev.wordpress.com
User avatar
MFarias
 
Posts: 39
Joined: Wed Jun 25, 2014 11:16 am
Location: João Pessoa,PB - Brazil

Re: Run Harbour on Apache Linux from Windows 10 !!!

Postby Maurizio » Tue Jul 16, 2019 4:29 pm

Hello Antonio

I try
4. On Windows Microsoft Edge or Chrome go to localhost/test.prg
but doesn't work

Thanks
User avatar
Maurizio
 
Posts: 824
Joined: Mon Oct 10, 2005 1:29 pm

Re: Run Harbour on Apache Linux from Windows 10 !!!

Postby Antonio Linares » Tue Jul 16, 2019 6:35 pm

Maurizio,

If you go to "localhost" from the browser, does it show the Apache welcome page ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42107
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Re: Run Harbour on Apache Linux from Windows 10 !!!

Postby Antonio Linares » Wed Jul 17, 2019 10:04 am

Maurizio,

ok, now please check if you have:

1. mod_harbour.so at /usr/lib/apache2/modules

2. libharbour.so.3.2.0 at /var/www/html

3. In /etc/apache2/apache2.conf add these lines:
Code: Select all  Expand view  RUN
LoadModule harbour_module /usr/lib/apache2/modules/mod_harbour.so
<FilesMatch "\.(prg|hrb)$">
    SetHandler harbour
</FilesMatch>

4. reboot apache: sudo apachectl restart

5. place a test.prg at /var/www/html and go to localhost/test.prg from your browser
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42107
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Run Harbour on Apache Linux from Windows 10 !!!

Postby Maurizio » Wed Jul 17, 2019 3:22 pm

Thanks Antonio ,

test.prg now works :D

this command dosn't works
Code: Select all  Expand view  RUN
sudo apachectl restart
[Wed Jul 17 17:20:06.870901 2019] [so:warn] [pid 5828:tid 140207572454336] AH01574: module harbour_module is already loaded, skipping


Now I have to copy the file prg from samples in the directory /var/www/html ?

Thanks
Maurizio
User avatar
Maurizio
 
Posts: 824
Joined: Mon Oct 10, 2005 1:29 pm

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 71 guests