Search results

  1. F

    C/C++ FastCGI

    Sure. simple-test-script.php <html><head><title>CGI C Example #3</title></head> <body><h1>CGI C Example #3</h1> <table border=2> <? $db = mysql_pconnect("localhost","root","") or die('konnekt'); mysql_select_db("ht3") or die('db'); $r = mysql_query("SELECT * FROM pages"); if...
  2. F

    C/C++ FastCGI

    BTW is it possible to have such results: simple-test-script.php lsws (with fastCGI php): ~700req/s apache2 (pure php): ~700req/s simple-test-script.c lsws, apache2 (both as fastCGI): ~1600req/s
  3. F

    C/C++ FastCGI

    Ok, I've solved it!! The reason was: lack of header informations in my script ("content..."). Everything works fine now. Cheers!
  4. F

    C/C++ FastCGI

    Can't make it work. Check this out guys please - what's wrong? Script External Apps Contex EAecho running Lunch it - ERROR Log
  5. F

    C/C++ FastCGI

    Thank you for your answer. I have just found your great documentation about context. I realised my silly questions was annoying for you. Sory for that. I appreciate your patience. You are GREAT guys @ lsws!!
  6. F

    C/C++ FastCGI

    Big thanks for your answer. How can I make that contex?
  7. F

    C/C++ FastCGI

    From localhost/cgi-bin/echo runs as CGI - it spowns new pid every new request. The goal is to run it as FastCGI - within one pid. Can't make it. Pleas help guys...
  8. F

    C/C++ FastCGI

    Just don't get it. :( :( :(
  9. F

    C/C++ FastCGI

    Do I need to set Handler? Does it mean that I have to define EACH fcgi script as Externall App???
  10. F

    C/C++ FastCGI

    I can run echo as cgi with: localhost/cgi-bin/echo. I've found out also that remaining scripts doesn't seem to work: size, log-dump. It reports "500 Internal Server Error". No matter! Just want to know - how to run echo as fcgi??? I've even tried to set cgi-fcgi handler for .fcgi...
  11. F

    C/C++ FastCGI

    Ok, I'm lost, can't make it. Could you help me and tell how to define External App / Script Handler in Server Configuration panel for fastcgi/examples/.lib/echo script from FastCGI package (www.fastcgi.com)? Where to put it and how to configure/run it? I'm crushed...
  12. F

    Best performance - which technique?

    Thank for your advices guys! We assume that our db will do the job and will be fine-tuned. We are just worried about server/script performance. Lets say we will have to manage 1000 requests per second. 1. We are sure that db will handle this. 2. We are sure that php won't. Apache...
  13. F

    C/C++ FastCGI

    I took echo from fcgi-2.4.0/examples/.libs and put it in lsws/DEFAULT/cgi-bin. I've also restarted lsws. Whats wrong? Could you test it at your env? I would appreciate it. I spend whole my working day trying to lunch fastcgi c by lsws...
  14. F

    Best performance - which technique?

    Hello, We got mid-size script doing several db queries and some computations. We are trying to achieve as big performance (requests/sec) as possible. Which techniques should we choose? Can you recommend something? - php with truckMMcache? - some kind of php scripts compiling...
  15. F

    C/C++ FastCGI

    ok I got .libs and "echo". Where should I put it now so it could be lunched as FastCGI. I appreciate your help! I've put it in cgi-bin but recieved: lscgid: execve(): No such file or directory
  16. F

    C/C++ FastCGI

    Hello, Is it possible to run such? I tried to put "echo" example from http://www.fastcgi.com/dist/fcgi.tar.gz to lsws/DEFAULT/cgi-bin but I have get: lscgid: execve(): Exec format error So, is it possible and how can I make it?
Top