Lazarus Web development: FreeSpider Apache Module

Yesterday I’ve released FreeSpider version 1.3.0 with support of Apache Module.

FreeSpider is a web development package that is used to develop web applications using Lazarus IDE.

Now it supports CGI executables and Apache Module library.

http://code.sd/freespider/index.html

You can migrate easily your old FreeSpider web CGI applications to produce Apache Module library version.
See performance comparison page:

http://code.sd/freespider/fsperformance.htm

Fore more detailed information please read the user manual:
http://code.sd/freespider/freespider.pdf

There are three web application samples in the page

About these ads

19 responses

  1. Motaz,

    I was looking into Freespider, that come with CodeTyphon 2.9. It is interesting. Now I created the CGI-birbary file “project.exe”.

    How I need to run with NGINX in windows?

    IM

  2. I’ve never tried FreeSpider with NGINX, but some people did, please refere to this discussion:

    http://www.lazarus.freepascal.org/index.php/topic,8631.msg53247.html#msg53247

    and tell me the results if you manage to make it work.

  3. I have installed the FreeSpider on Centos6. simple cgi applications run, but I have problems with cgi apps that use a database. I have tried both ZeosLib 7 for MySql and IBConnection for Firebird 2.5.

    In design mode I can connect to the databases and open a query. In running mode, Apache either displays internal server error or access violation.

    I have a sense it something to do with Apache database libraries not being accessible or incorrect versions.

    Do you have any comment on this?

  4. There is no special Apache database libraries. I got a similar proablem when deploying CGI application on Redhat, it is caused by SeLinux. Try disable it temporary, but in my case the database was in another machine.

  5. I have totally disabled SeLinux as well as the Firewall and the “access violation” condition persists. When I use the SDFDataset then the CGI works perfectly.

    When executing the CGI in command line then I do not receive any error messages neither in /var/log/httpd/error_log nor /var/log/mysqld.log.

    By the way, I have also tried with your news sample application.

  6. Most of my testing for FreeSpider applications was in Ubuntu and Mint, but I have deployed in RedHat.
    May be you have used a component before it was created…
    Which version of Lazarus do you use and which architecture 32 or 64

  7. The vesrions are:
    Lazarus version = 1.0.2
    FPC = 2.6.0
    Linux= CENTOS 6.3 32 bit.

    I am not using any components except either the Firebird or Sqldb database components. The relevant units are added automatically as you would know.

  8. Can you please send to me your project source to test it here
    to motaz at code dot sd

  9. Thanks Motaz. I am presently not nearby the development system, I will forward you the project source tonight (my time zone is GMT + 2).

  10. That means South Africa fall in our old time zone (Sudan) now we are GMT + 3

  11. Correct, I am in Johannesburg in the province of Gauteng.

  12. I have implemented changes as per your recommendation. It simply means any separate function or procedure that I declare needs to form part of the “TDatamodule1″ class definition.

    I have tested both SQLDb and Zeos components without any further problems.

    Thanks for your support.

  13. Hi Motaz,
    i try to write my first cgi-application with FreeSpider.
    I think it’s quiet easy to use, but now i have one question. Is it possible, to include an HTML-Template in another template, and AFTER this step, to replace all the tags in those templates?
    My english is not perfect, so i hope you understand my question?

    Oliver

  14. I’m not sure why do you need the insert a template inside another template.
    TSpiderPage component can help you use HTML templates and replaces tags at run time, these tags could be TSpiderTable, TSpiderForm, but another TSpiderPage.. I think yes it is possible, but I hadn’t tried it yet

  15. hello master motaz..

    1) I learned to create applications with components FreeSpider cgi ..
    to display the html file (template) I use TSPIDERPAGE, but why could not display the images .. Can you advise the correct way .. please help me ..

    2) “Code.sd” website is also written with FreeSpider ..?

    thank you, waiting for your advice ..

  16. Hello Aksen,
    You need to put the images in /var/www directory not in /cgi-bin I mean put it root document directory, or in subdirectory like /images

    I use wordpress with code.sd site.
    But this site is developed by FreeSpider: http://sms.chinguitel.mr/

  17. thanks Motaz, the problem has been resolved ….

    just a question .. , Web page (template) I created with Kompozer web editor and saved as HTML, to display the image written … src = “images/image308.gif” … and when I run it (Tspiderpage) image does not appear. But if I add the “/” in the html source ==> ‘… src = “/ images/image308.gif” … it works well, so every change my design (html template) I find & add ‘/’ before the web page is run, … “a little trouble” .. if you have any other ways or advice .. please tell me.

    btw: I can not browse http://sms.chinguitel.mr/, I do not have a password ..

    wish you good health and success…

  18. I think this is a problem in Kompozer application. src=”images/image308.gif” means a link relative to current position and it will be translated to “/cgi-bin/images/image308.gif”
    try src=”../images/image308.gif”

    sms.chin… is a private web for a company

  19. That clears, Thank you very much.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: