俺用百度的空间 ,速度比较快 http://hi.baidu.com/wangyu%5Fgg/blog/item/d7d9db3522d5518fa71e127f.html 俺的本本http://hipper.oicp.net:8080/ 用的是beyking 的blog, 只有晚上俺在的时候能访问,白天我老婆要用xp ..... [ 本帖最后由 yuwang007 于 2008-3-20 20:33 编辑 ]
mod_fcgid mod_suexec都已经安装好了. SetHandler fcgid-script FCGIWrapper /usr/local/bin/php .php Options ExecCGI 也加了.可惜访问的时候出错. [Sat May 26 03:10:41 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/local/sbin/suexec) [Sat May 26 03:10:43 2007] [notice] Apache/2.0.59 (FreeBSD) PHP/5.2.2 with Suhosin-Patch configured -- resuming normal operations [Sat May 26 03:14:2...
M2BBS1.0的全部源码以及数据库,由于这是我刚开始学习fastcgi时的一个作品,当时C语言水平一般,也不懂得什么是真正的模块化设计,认为#include"xxx.c"就是了,虽然后来经过很多次修正,但整体构架没有改变,所以整个源码比较混乱,见谅。 这个版本的源码可以不加修改的在FreeBSD、Linux、Windows上编译运行。 数据库配置只需要将目录m2b复制到数据库目录即可。 http://career.ytu.edu.cn/tools/M2BBS.rar 源码邮件索取xlp1119@1...
Apache启动和cgi程序的编译都没问题
但是运行的时候就出错
以下是一些信息
高手指点一下吧
winXP
apache2.0.59
mod_fastcgi-2.4.2-AP20.dll
httpd.conf
[code]
LoadModule fastcgi_module modules/mod_fastcgi-2.4.2-AP20.dll
...
各位大大: redhat Linux as4 ,apache2.0 ,perl5.8.8 下用fastcgi,配置成功,就是在Perl中如果用到了CGI模块,应该怎么升级成为fastcgi? 比如,我有一个fcgi文件, test.cgi[code] #!/usr/local/bin/perl use strict; use test; use CGI; ........................ [/code] 然后我的test.cgi中又调用了CGI. test.pm [code] package test; us...
我在运行Apache上的fastcgi程序(perl)的时候,从error_log里看到一个错误,导致fastcgi程序重启,浏览器上显示500 internel server error 以下是错误信息 [Tue May 9 16:19:23 2006] [error] [client 192.168.1.115] fastcgi: incomplete headers (0 bytes) received from server "/home/game/fcgi/index.fcgi" [Tue May 9 16:19:23 2006] [warn] fastcgi: server "/home/game/fcgi/index.fcgi" (pid 17246) terminated due to ...
今天使用fastcgi遇到了一个小问题,就是随机函数不能正常使用,一般在生成随机函数的时候都是 srand((unsigned)time(NULL); rand(); .... 在fastcgi里面,也是这样引用,但是因为是最后是给用户用的,所以在很多时候会在同一时间内生成随机函数,所以就会有重复,为了避免这种情况,就在最外面使用: srand((unsigned)time(NULL); 但是还是一样,会生成很多的同一个函数,没有办法,只好再生新种一下种子 unsigned k=(unsigne...
google了一下,发现在其他语言里有FCGI::accept()之类的支持, 从而可以让fastcgi模式的程序具有真正的长生命周期(持久性)。 php却没有这些支持.那岂不是php下的fastcgi变成了鸡肋了! 最重要的长生命周期没有得到实现!
Q. How do I configure PHP as fastcgi under FreeBSD Nginx webserver? A. You can easily configure php as fastcgi application under Nginx for performance. You need following components: [a] spawn-fcgi binary - For spawning a fastcgi process. This binary can be installed from Lighttpd webserver project. Nginx does not automatically spawn FCGI processes. You must start them separately using sp...