Jump to content

Error 500 in deploying (Isapi + Xampp)


SergioFeitoza

Recommended Posts

I'm almost done with the deployment of my Unigui + Apache. + ISAPI program but I still have a problem. I think the httpd.conf file is now correct (main lines below – I can send the complete file if anyone wants to see it). I did the same sequence as the movie with Xampp. It does not give errors in Xampp or when compiling the dll in Delphi + Unigui (Shift + F9). Strange that the dll is 17 MB with a MainForm with a single label (source attached).
 

WHAT GOES WRONG IS THE FOLLOWING. (standalone works right):    ................ If I put in the directory where the dll will be ONLY an index.html  file and type
http://localhost/swdweb the page index.html appears well in the browser (attached). I think this shows that the paths are right in httpd.conf.
However, if I put only the DLL  index.dll in the directory  and type the same in browser, I get     

"" INTERNAL SERVER ERROR! ... The server encountered an internal error and it was not possible to complete your request. The server is overloaded or there is an error in a CGI script. . If you believe you have encountered a problem with the server, please contact the webmaster.
ERROR 500       localhost     … Apache / 2.4.43 (Win64) OpenSSL / 1.1.1g PHP / 7.4.8
I searched this error 500 but I couldn't identify the reason
Please give me help !! Would anyone have a small demo of ISAPI.dll of type HelloWorld ?. I didn't find it in Unigui demos. I am actually looking for just a small index.dll  that worked after deployment

html1.png

swdweb_typicaldllStandalone.rar

Edited by SergioFeitoza
New information that seems to solve the problem
Link to comment
Share on other sites

14 hours ago, SergioFeitoza said:

I'm almost done with the deployment of my Unigui + Apache. + ISAPI program but I still have a problem. I think the httpd.conf file is now correct (main lines below – I can send the complete file if anyone wants to see it). I did the same sequence as the movie with Xampp. It does not give errors in Xampp or when compiling the dll in Delphi + Unigui (Shift + F9). Strange that the dll is 17 MB with a MainForm with a single label (source attached).
 

WHAT GOES WRONG IS THE FOLLOWING. (standalone works right):    ................ If I put in the directory where the dll will be ONLY an index.html  file and type
http://localhost/swdweb the page index.html appears well in the browser (attached). I think this shows that the paths are right in httpd.conf.
However, if I put only the DLL  index.dll in the directory  and type the same in browser, I get     

"" INTERNAL SERVER ERROR! ... The server encountered an internal error and it was not possible to complete your request. The server is overloaded or there is an error in a CGI script. . If you believe you have encountered a problem with the server, please contact the webmaster.
ERROR 500       localhost     … Apache / 2.4.43 (Win64) OpenSSL / 1.1.1g PHP / 7.4.8
I searched this error 500 but I couldn't identify the reason
Please give me help !! Would anyone have a small demo of ISAPI.dll of type HelloWorld ?. I didn't find it in Unigui demos. I am actually looking for just a small index.dll  that worked after deployment

html1.png

swdweb_typicaldllStandalone.rar

ATTENTION:      Seems that worked when I added 64 bits  platsorm. I will do more tests today and  inform here

I got  info about this here http://unigui.com/doc/online_help/creating-a-new-apache-project.htm

I am suggesting to Unigui team to add this to the Manual (about 32-64 bits) in the first line part "Deploying with Apache"

Link to comment
Share on other sites

  • 7 months later...
2 minutes ago, Fred Montier said:

Hi Sergio:

Apache versions uses 32bits to 32bits dlls and 64bits to 64bits dlls. Ignore any advice and follow this simple rule.

Mess it up and you will end up with a big mess. And despite people say, got a lot bugs with Apache and ISAPI.

Thank you very much Fred.  Months ago I tried a lot to deploy with Apache, Xamp.. The best lesson was to deploy with IIS . When I followed step by step the instructions in this forum (as in some posts I did)  I succeeded with IIS which is  - for the purposes of Unigui - sufficiently documented . Regards and thanks again

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...