添加留言
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]
               

 
网海过客
2008-4-1 15:31
你好,很高兴在这里与你认识,看了你的blog感受很深,在工作中遇到一些问题,希望能与你交流.一起成长 ,能加我Q吗? :)  QQ:246566
vally Email
2008-3-30 13:28
您好!请问有没有什么办法能够破解校园网的端口限制嘛?
期待回音!我的QQ是434459616
D_cat
2008-3-28 09:35
这是一条隐藏评论或留言。您需要以合适的身份登入后才能看到。
午夜未央
2008-3-26 14:40
另外,如果需要,我可以提供一个关于apm这个软件的群空间,一定要回复我哟!!
午夜未央 Email
2008-3-26 14:33
张宴老弟(俺是81年的,见谅)grin,能不能给一个qq号,很多问题通过留言不太方便。我想学习一下asp,不过看到很多人都在用apache,php,mysql,所以也想了解一些有关技术,望请指教!!
QQ:15327335
E-mail:golden037@yahoo.com.cn
张宴 回复于 2008-4-15 22:53
我不怎么上QQ
kfsjp
2008-3-26 09:39
张老师,我想问一下你的APMServ 5.2版本访问php可以正常,但是ASP却只显示代码!不能运行,还望张老师指点
菠菜
2008-3-25 09:51
我真的帮你赚钱了
jorsen_gong Email
2008-3-19 17:19
按照您在Nginx 0.5.33 + PHP 5.2.5(FastCGI)搭建胜过Apache 10倍的Web服务器(第2版)[原创]中所说的步骤安装Nginx+PHP,PHP已经安装好了,但是编译Nginx的时候出错了,编译过程如下,非常紧急,希望张老师能指点一下,在线等啊。。。先谢了!!!  MSN:jorsen_gong@hotmail.com

我需要进行交叉编译,并希望把PCRE编译进去:

安装路径:/usr/local
工程路径:/home/gsw/nginx-php
交叉编译器:/opt/freescale/usr/local/gcc-4.1.69-eglibc-2.5.69-1/powerpc-e300c3-linux-gnu/bin/powerpc-e300c3-linux-gnu-gcc


cd /home/gsw/nginx-php/nginx-0.5.33

方法一:
执行./configure --user=www --group=www  --prefix=/usr/local/webserver/nginx --with-pcre=/home/gsw/nginx-php/pcre-7.2 --with-http_stub_status_module --with-zlib=/usr/local后结果为

.............
Configuration summary
 + threads are not used
 + using PCRE library: /home/gsw/nginx-php/pcre-7.2
 + OpenSSL library is not used
 + md5 library is not used
 + sha1 library is not used
 + using zlib library: /usr/local

 nginx path prefix: "/usr/local/webserver/nginx"
 nginx binary file: "/usr/local/webserver/nginx/sbin/nginx"
 nginx configuration file: "/usr/local/webserver/nginx/conf/nginx.conf"
 nginx pid file: "/usr/local/webserver/nginx/logs/nginx.pid"
 nginx error log file: "/usr/local/webserver/nginx/logs/error.log"
 nginx http access log file: "/usr/local/webserver/nginx/logs/access.log"
 nginx http client request body temporary files: "/usr/local/webserver/nginx/client_body_temp"
 nginx http proxy temporary files: "/usr/local/webserver/nginx/proxy_temp"
 nginx http fastcgi temporary files: "/usr/local/webserver/nginx/fastcgi_temp"

然后再执行make CC=/opt/freescale/usr/local/gcc-4.1.69-eglibc-2.5.69-1/powerpc-e300c3-linux-gnu/bin/powerpc-e300c3-linux-gnu-gcc

结果出现以下错误:

make -f objs/Makefile
make[1]: Entering directory `/home/gsw/nginx-php/nginx-0.5.33'
cd /home/gsw/nginx-php/pcre-7.2 \
       && if [ -f Makefile ]; then make distclean; fi \
       && CC="/opt/freescale/usr/local/gcc-4.1.69-eglibc-2.5.69-1/powerpc-e300c3-linux-gnu/bin/powerpc-e300c3-linux-gnu-gcc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \
       ./configure --disable-shared
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for gcc... /opt/freescale/usr/local/gcc-4.1.69-eglibc-2.5.69-1/powerpc-e300c3-linux-gnu/bin/powerpc-e300c3-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make[1]: *** [/home/gsw/nginx-php/pcre-7.2/Makefile] Error 1
make[1]: Leaving directory `/home/gsw/nginx-php/nginx-0.5.33'
make: *** [build] Error 2


方法二:(不加PCRE)
执行./configure --user=www --group=www  --prefix=/usr/local/webserver/nginx --with-http_stub_status_module --with-zlib=/usr/local
后结果为

Configuration summary
 + threads are not used
 + PCRE library is not found
 + OpenSSL library is not used
 + md5 library is not used
 + sha1 library is not used
 + using zlib library: /usr/local

./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using --without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with nginx by using --with-pcre=<path> option.

然后再执行make CC=/opt/freescale/usr/local/gcc-4.1.69-eglibc-2.5.69-1/powerpc-e300c3-linux-gnu/bin/powerpc-e300c3-linux-gnu-gcc

结果出现以下错误:
/opt/freescale/usr/local/gcc-4.1.69-eglibc-2.5.69-1/powerpc-e300c3-linux-gnu/bin/powerpc-e300c3-linux-gnu-gcc -c -O -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Wno-unused-function -Wunused-variable -Wunused-value -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local -I objs -I src/http -I src/http/modules \
               -o objs/src/http/modules/ngx_http_rewrite_module.o \
               src/http/modules/ngx_http_rewrite_module.c
src/http/modules/ngx_http_rewrite_module.c: In function 'ngx_http_rewrite':
src/http/modules/ngx_http_rewrite_module.c:313: error: 'ngx_http_script_regex_code_t' undeclared (first use in this function)
src/http/modules/ngx_http_rewrite_module.c:313: error: (Each undeclared identifier is reported only once
src/http/modules/ngx_http_rewrite_module.c:313: error: for each function it appears in.)
src/http/modules/ngx_http_rewrite_module.c:313: error: 'regex' undeclared (first use in this function)
src/http/modules/ngx_http_rewrite_module.c:314: error: 'ngx_http_script_regex_end_code_t' undeclared (first use in this function)
src/http/modules/ngx_http_rewrite_module.c:314: error: 'regex_end' undeclared (first use in this function)
cc1: warnings being treated as errors
src/http/modules/ngx_http_rewrite_module.c:332: warning: implicit declaration of function 'ngx_regex_compile'
src/http/modules/ngx_http_rewrite_module.c:339: error: 'ngx_http_script_regex_start_code' undeclared (first use in this function)
src/http/modules/ngx_http_rewrite_module.c:410: warning: implicit declaration of function 'ngx_regex_capture_count'
src/http/modules/ngx_http_rewrite_module.c:414: error: 'ngx_regex_capture_count_n' undeclared (first use in this function)
src/http/modules/ngx_http_rewrite_module.c:414: error: expected ')' before string constant
src/http/modules/ngx_http_rewrite_module.c:446: error: 'ngx_http_script_regex_end_code' undeclared (first use in this function)
src/http/modules/ngx_http_rewrite_module.c: In function 'ngx_http_rewrite_if_condition':
src/http/modules/ngx_http_rewrite_module.c:656: error: 'ngx_http_script_regex_code_t' undeclared (first use in this function)
src/http/modules/ngx_http_rewrite_module.c:656: error: 'regex' undeclared (first use in this function)
src/http/modules/ngx_http_rewrite_module.c:765: error: 'NGX_REGEX_CASELESS' undeclared (first use in this function)
src/http/modules/ngx_http_rewrite_module.c:773: error: 'ngx_http_script_regex_start_code' undeclared (first use in this function)
make[1]: *** [objs/src/http/modules/ngx_http_rewrite_module.o] Error 1
make[1]: Leaving directory `/home/gsw/nginx-php/nginx-0.5.33'
make: *** [build] Error 2
jacksuc Email
2008-3-19 01:06
启动正常了,可是还是不知道怎么回事,打不开php的东西。不知道是不是还是没有设置好呢。请赐教。 我的msn:zwatcq0311@hotmail.com
jacksuc Email Homepage
2008-3-11 17:59
你好,我的APMServ5.2安装后,Apache启动老是失败,不知道怎么回事,这个版本已经是近1年多前的事了,不知道什么时候出下一个新的版本呢?谢谢回答。!!!!!
分页: 2428/2444 第一页 上页 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 下页 最后页