Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2009-06

fcgi under windows

8 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

ABorka
Show quoted text 5 lines
Adding fcgi-support was only two hours work. Other systems can be added as wel. Next on my list is a native web-server using lnet, so that debugging is even easier. (I'm absolutely sure that posting all messages about fcl-web not supportinf fcgi was more work then actually adding the support)

I thought the fcgi support is still a work in progress. The other day I was trying to create a "hello world" fcgi program just to see how it works but it did not compile.
Getting a "fastcgi.pp(1,1) Fatal: Can't find unit BaseUnix used by custfcgi" error.
(Latest Lazarus and FPC SVN, win32 /XP/)

If it works, I would make the examples submitted in http://bugs.freepascal.org/view.php?id=13706
to work as FCGI also.

BTW, there should be some explanation in Lazarus -> File -> New for people about the differences between

Application - Program - Custom Program ;
Simple CGI Application - CGI Application - Custom CGI Application ;
FastCGI Application - Custom FastCGI Application ;

I am positive, it is very confusing for a newcomer to chose between these. In fact, I'm sure it is random chance at the moment that decides which they are clicking on within one group.
At least for apache modules there is only one choice (in my lazarus at least).

Reply by email

Vincent Snijders
to ABorka
ABorka wrote
BTW, there should be some explanation in Lazarus -> File -> New for people about the differences between Application - Program - Custom Program ;

I think the description in the Project -> New ... explains the differences clear enough.

If not, what are you missing?

Vincent

Reply by email

Joost van der Sluis
to ABorka: I thought the fcgi support is still a work in progress. The other day I was trying to…

Op woensdag 10-06-2009 om 17:19 uur [tijdzone -0700], schreef ABorka:

Show quoted text 12 lines
> Adding fcgi-support was only two hours work. Other systems can be added > as wel. Next on my list is a native web-server using lnet, so that > debugging is even easier. (I'm absolutely sure that posting all messages > about fcl-web not supportinf fcgi was more work then actually adding the > support) I thought the fcgi support is still a work in progress. The other day I was trying to create a "hello world" fcgi program just to see how it works but it did not compile. Getting a "fastcgi.pp(1,1) Fatal: Can't find unit BaseUnix used by custfcgi" error. (Latest Lazarus and FPC SVN, win32 /XP/)

Ah, so it doesn't work on windows. Please submit a bug for that.

Joost.

Reply by email

BoBo
to Vincent Snijders: I think the description in the Project -> New ... explains the differences clear enough.…

Well, this is just my opinion - maybe others could say something too - but I think it would clear up things a bit if we do the following things:

1. I think all the "Custom" variations should be removed it just confuses new arrival people.
Any pro will know how to make those anyway.
Or make the description detailed enough so anyone reading it will know what is the difference and when it should be used. (for example we have "Program" and "Custom Program" that are barely differs in anything but in some units in the use clause).

2. "The Program file is automatically maintained by Lazarus" should be removed from the description for all of them. It doesn't say or mean anything to people. It was always working like this from Delphi 1 so no point in mentioning it. Just confuses new arrivals.

3. Simple CGI application should be removed since it is deprecated

4. "Application" should be called "GUI Application" so the 3 kinds of programs one can build would be more clear

Program
Console Application
GUI Application
Library

(maybe even listed in the above order) currently it is

Application
Program
Console Application
Library
Custom Program

Same for the web development, it should be:

CGI Application
FastCGI Application
Apache Module

instead of the current:

Simple CGI Application
CGI Application
Custom CGI Application
Apache Module
FastCGI Application
Custom FastCGI Application

5. I am not sure about the FPCUnit Console Application and FPCUnit Application, but do we need those there for the general public or it is something used only for Lazarus/FPC developers?
If the latter then they all know how to make them (or they might copy the already existing ones and change them) and we do not need them listed we need them there, we can move those two at the end of the list.

In any case, I think it would be more simple an straightforward this way.

Any thoughts?

AB

Vincent Snijders wrote 16 lines
ABorka schreef: > BTW, there should be some explanation in Lazarus -> File -> New for > people about the differences between > > Application - Program - Custom Program ; I think the description in the Project -> New ... explains the differences clear enough. If not, what are you missing? Vincent _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply by email

Joost van der Sluis
to BoBo

Op donderdag 11-06-2009 om 13:39 uur [tijdzone -0700], schreef BoBo:

Show quoted text 6 lines
Well, this is just my opinion - maybe others could say something too - but I think it would clear up things a bit if we do the following things: 1. I think all the "Custom" variations should be removed it just confuses new arrival people. Any pro will know how to make those anyway.

I think it has to stay. I even think that the 'custom' variant will be use more then the other variant. Because its doesn't depends on Lazarus and is in fact the same functionality as - for example - php offers. It's enough for a lot of people, who do not want to drag in the whole LCL.

3. Simple CGI application should be removed since it is deprecated

Hmm.. maybe. The new components are really better now.

Joost.

Reply by email

Vincent Snijders
to Joost van der Sluis
Joost van der Sluis wrote
> 3. Simple CGI application should be removed since it is deprecated Hmm.. maybe. The new components are really better now.

But require fpc 2.3.1? Or are they really better with fpc 2.2.4 too.

Vincent

Reply by email

ABorka
to Joost van der Sluis: Op donderdag 11-06-2009 om 13:39 uur [tijdzone -0700], schreef BoBo: I think it has to…

If the "custom" variants need to stay then the descriptions for each must state exactly what is the difference between the custom and not custom and when they should be used.
Currently, anyone who is not an FPC/Lazarus professional developer already, cannot decide based on the description.

I do not agree that the "Custom" variations will be used more BTW. Anyone who is coming from Delphi/Kylix to move a web project over or start a new one will want to use web modules, actions, etc. They are using the RAD Delphi or FPC/Lazarus for the reason that they do not need to do the basic work the "Custom" variations need. They want to focus on the development of the actual web module, it's actions, templates, web design and not the framework that is needed for them to work.

What's the problem with "dragging" in the LCL parts of the web development projects?

Joost van der Sluis wrote 24 lines
Op donderdag 11-06-2009 om 13:39 uur [tijdzone -0700], schreef BoBo: > Well, this is just my opinion - maybe others could say something too - > but I think it would clear up things a bit if we do the following things: > > 1. I think all the "Custom" variations should be removed it just > confuses new arrival people. > Any pro will know how to make those anyway. I think it has to stay. I even think that the 'custom' variant will be use more then the other variant. Because its doesn't depends on Lazarus and is in fact the same functionality as - for example - php offers. It's enough for a lot of people, who do not want to drag in the whole LCL. > 3. Simple CGI application should be removed since it is deprecated Hmm.. maybe. The new components are really better now. Joost. _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply by email

ABorka
to Joost van der Sluis: Op woensdag 10-06-2009 om 17:19 uur [tijdzone -0700], schreef ABorka: Ah, so it doesn't…

Done as

http://bugs.freepascal.org/view.php?id=13965

Joost van der Sluis wrote 22 lines
Op woensdag 10-06-2009 om 17:19 uur [tijdzone -0700], schreef ABorka: >> Adding fcgi-support was only two hours work. Other systems can be added > > as wel. Next on my list is a native web-server using lnet, so that > > debugging is even easier. (I'm absolutely sure that posting all messages > > about fcl-web not supportinf fcgi was more work then actually adding the > > support) > > I thought the fcgi support is still a work in progress. The other day I > was trying to create a "hello world" fcgi program just to see how it > works but it did not compile. > Getting a "fastcgi.pp(1,1) Fatal: Can't find unit BaseUnix used by > custfcgi" error. > (Latest Lazarus and FPC SVN, win32 /XP/) Ah, so it doesn't work on windows. Please submit a bug for that. Joost. _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply by email