Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: IW 14.0.53 -56 ISAPI not run under apache 2.4


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 9 - Last Post: Jun 15, 2016 7:09 AM Last Post By: liang cheng
liang cheng

Posts: 7
Registered: 12/13/04
IW 14.0.53 -56 ISAPI not run under apache 2.4  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 4, 2016 7:29 PM
I use the above version of 14.0.53 ISAPI mode can not run under the Apache 2.4, 14.0.52 normal, the following is my code configuration:

//{IW 14.0.53-56
IWRtlFix,
IWJclDebug,
IWJclStackTrace,
IWInitISAPI,
IW.Isapi.ThreadPool,
//}
{14.0.52 IW
ISAPIApp,
IWJclDebug,
IWJclStackTrace,
IWInitISAPI,
ISAPIThreadPool,
UTF8ContentParser,
}

Edited by: liang cheng on Jun 4, 2016 7:30 PM
Alexandre Machado

Posts: 1,754
Registered: 8/10/13
Re: IW 14.0.53 -56 ISAPI not run under apache 2.4  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 6, 2016 1:08 AM   in response to: liang cheng in response to: liang cheng
liang cheng wrote:
I use the above version of 14.0.53 ISAPI mode can not run under the Apache 2.4, 14.0.52 normal, the following is my code configuration:

//{IW 14.0.53-56
IWRtlFix,
IWJclDebug,
IWJclStackTrace,
IWInitISAPI,
IW.Isapi.ThreadPool,
//}
{14.0.52 IW
ISAPIApp,
IWJclDebug,
IWJclStackTrace,
IWInitISAPI,
ISAPIThreadPool,
UTF8ContentParser,
}

Edited by: liang cheng on Jun 4, 2016 7:30 PM

Hi Liang,

can you please disable the thread pool (removing completely IW.ISAPI.ThreadPool from your application) and test it again? Can you give me any other details about this issue? any error log/message generated?
Alexandre Machado

Posts: 1,754
Registered: 8/10/13
Re: IW 14.0.53 -56 ISAPI not run under apache 2.4  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 6, 2016 2:44 AM   in response to: liang cheng in response to: liang cheng
Hi,

I can confirm that if you remove the IW.ISAPI.ThreadPool unit, your application should work just find deployed on Apache. Tested on Apache 2.4.

Thread pool can not be used on Apache server because Apache doesn't support asynchronous I/O, which Thread pool uses.

IW.ISAPI.ThreadPool unit should disable the thread pool when running under Apache (or any other web server other than IIS), but there is an issue on the code where apache detection fails. We have already fixed that and it should be available in the next release. Nevertheless, you can run your application safely using the current version, just disabling the thread pool.

Please let me know whether it worked.
liang cheng

Posts: 7
Registered: 12/13/04
Re: IW 14.0.53 -56 ISAPI not run under apache 2.4  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 6, 2016 6:39 AM   in response to: Alexandre Machado in response to: Alexandre Machado
Thank you for your answer!
I try to create an empty project, the error is still.

My environment:
windows 10 64bit
delphi d10 seattle
apache 2.4 64bit

I have compiled project with 64 bits,same Project 14.0.52 is OK!

//========================================================================
library Project8;

uses
IWRtlFix,
IWInitISAPI,
Unit4 in 'Unit4.pas' {IWForm4: TIWAppForm},
ServerController in 'ServerController.pas' {IWServerController: TIWServerControllerBase},
UserSessionUnit in 'UserSessionUnit.pas' {IWUserSession: TIWUserSessionBase};

{$R *.RES}

exports
GetExtensionVersion,
HttpExtensionProc,
TerminateExtension;

begin
IWRun;
end.
//====================================================================

Apache Error
//====================================================================
[Mon Jun 06 21:41:48.371243 2016] [isapi:error] [pid 22848:tid 148] [client 127.0.0.1:60302] Invalid status line from script 'Project8.dll': 5
[Mon Jun 06 21:41:48.371243 2016] [isapi:error] [pid 22848:tid 148] [client 127.0.0.1:60302] malformed header from script 'Project8.dll': Bad header:
[Mon Jun 06 21:41:48.371243 2016] [isapi:error] [pid 22848:tid 148] [client 127.0.0.1:60302] Invalid status line from script 'Project8.dll': <
[Mon Jun 06 21:41:48.371243 2016] [isapi:warn] [pid 22848:tid 148] [client 127.0.0.1:60302] AH02115: HSE_STATUS_ERROR result from HttpExtensionProc(): D:/Delphi/Projects/CSOL/Bin/wwwroot/Project8.dll

Edited by: liang cheng on Jun 6, 2016 6:43 AM

Alexandre Machado

Posts: 1,754
Registered: 8/10/13
Re: IW 14.0.53 -56 ISAPI not run under apache 2.4  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 7, 2016 2:21 AM   in response to: liang cheng in response to: liang cheng
apache 2.4 64bit

Hum.... the details...
I'll have a look and get back to you.
Alexandre Machado

Posts: 1,754
Registered: 8/10/13
Re: IW 14.0.53 -56 ISAPI not run under apache 2.4  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 13, 2016 2:46 AM   in response to: liang cheng in response to: liang cheng
Hi,

this is fixed in latest IW 14.0.57. Releasing it right now...
liang cheng

Posts: 7
Registered: 12/13/04
Re: IW 14.0.53 -56 ISAPI not run under apache 2.4  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 14, 2016 8:32 AM   in response to: Alexandre Machado in response to: Alexandre Machado
Thank you very much for your reply. But I tried Apache 2.42.20 64bit with ApacheHaus/Apache Lounge vc14/vc11 different versions, run under windows 10/windows7. 64bit , I still encounter the same mistake. Please provide a simple example of the test can be used.
Alexandre Machado

Posts: 1,754
Registered: 8/10/13
Re: IW 14.0.53 -56 ISAPI not run under apache 2.4  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 14, 2016 11:31 PM   in response to: liang cheng in response to: liang cheng
liang cheng wrote:
Thank you very much for your reply. But I tried Apache 2.42.20 64bit with ApacheHaus/Apache Lounge vc14/vc11 different versions, run under windows 10/windows7. 64bit , I still encounter the same mistake. Please provide a simple example of the test can be used.

I have tested it in latest Apache x64, version 2.4.20. I don't have any reference of 2.42.20...
Also tested in Abyss x64 version 2.11.1. They both worked perfectly.
Alexandre Machado

Posts: 1,754
Registered: 8/10/13
Re: IW 14.0.53 -56 ISAPI not run under apache 2.4  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 15, 2016 1:04 AM   in response to: liang cheng in response to: liang cheng
I think there is a problem with IW 14.0.57 setup. Please download and install today's build, 14.0.58:

Download page: http://atozed.com/IntraWeb/Download/Download_IW_XIV.EN.aspx

Direct download link: http://downloads.atozed.com/intraweb/iw14.0.58.exe

please let me know if it worked as expected.

Kind regards
liang cheng

Posts: 7
Registered: 12/13/04
Re: IW 14.0.53 -56 ISAPI not run under apache 2.4  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 15, 2016 7:09 AM   in response to: Alexandre Machado in response to: Alexandre Machado
It's OK! Thank you very much!
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02