VPS侦探论坛

 找回密码
 注册
查看: 7711|回复: 3

lnmp1.0-full curl_exec异常 紧急求援(有安装日志)!!!

[复制链接]
发表于 2013-10-9 19:20:01 | 显示全部楼层 |阅读模式

64位 新机 安装 LNMP一键安装包wget -c http://soft.vpser.net/lnmp/lnmp1.0-full.tar.gz && tar zxvf lnmp1.0-full.tar.gz && cd lnmp1.0-full && ./centos.sh

-----提示 成功,  但运行 curl_exec 报502页面错误

以下安装日志 见附件:(因为太多, 不全贴)
。。。。。。。。。。。。。。。。。。。。
/lnmp1.0-full/php-5.2.17/ext/curl/interface.c: In function 鈥榸if_curl_copy_handle鈥?
/lnmp1.0-full/php-5.2.17/ext/curl/interface.c:1232: warning: passing argument 1 of 鈥榸val_add_ref鈥?from incompatible pointer type
/lnmp1.0-full/php-5.2.17/Zend/zend_variables.h:78: note: expected 鈥榮truct zval **鈥?but argument is of type 鈥榮truct zval *鈥?
/lnmp1.0-full/php-5.2.17/ext/curl/interface.c:1238: warning: passing argument 1 of 鈥榸val_add_ref鈥?from incompatible pointer type
/lnmp1.0-full/php-5.2.17/Zend/zend_variables.h:78: note: expected 鈥榮truct zval **鈥?but argument is of type 鈥榮truct zval *鈥?
/lnmp1.0-full/php-5.2.17/ext/curl/interface.c:1244: warning: passing argument 1 of 鈥榸val_add_ref鈥?from incompatible pointer type
/lnmp1.0-full/php-5.2.17/Zend/zend_variables.h:78: note: expected 鈥榮truct zval **鈥?but argument is of type 鈥榮truct zval *鈥?
/bin/sh /lnmp1.0-full/php-5.2.17/libtool --silent --preserve-dup-deps --mode=compile gcc  -Iext/curl/ -I/lnmp1.0-full/php-5.2.17/ext/curl/ -DPHP_ATOM_INC -I/lnmp1.0-full/php-5.2.17/include -I/lnmp1.0-full/php-5.2.17/main -I/lnmp1.0-full/php-5.2.17 -I/lnmp1.0-full/php-5.2.17/ext/date/lib -I/usr/include/libxml2 -I/usr/include/freetype2 -I/lnmp1.0-full/php-5.2.17/ext/mbstring/oniguruma -I/lnmp1.0-full/php-5.2.17/ext/mbstring/libmbfl -I/lnmp1.0-full/php-5.2.17/ext/mbstring/libmbfl/mbfl -I/usr/local/include -I/usr/local/mysql/include -I/lnmp1.0-full/php-5.2.17/TSRM -I/lnmp1.0-full/php-5.2.17/Zend    -I/usr/local/include -g -O2  -c /lnmp1.0-full/php-5.2.17/ext/curl/multi.c -o ext/curl/multi.lo
/bin/sh /lnmp1.0-full/php-5.2.17/libtool --silent --preserve-dup-deps --mode=compile gcc  -Iext/curl/ -I/lnmp1.0-full/php-5.2.17/ext/curl/ -DPHP_ATOM_INC -I/lnmp1.0-full/php-5.2.17/include -I/lnmp1.0-full/php-5.2.17/main -I/lnmp1.0-full/php-5.2.17 -I/lnmp1.0-full/php-5.2.17/ext/date/lib -I/usr/include/libxml2 -I/usr/include/freetype2 -I/lnmp1.0-full/php-5.2.17/ext/mbstring/oniguruma -I/lnmp1.0-full/php-5.2.17/ext/mbstring/libmbfl -I/lnmp1.0-full/php-5.2.17/ext/mbstring/libmbfl/mbfl -I/usr/local/include -I/usr/local/mysql/include -I/lnmp1.0-full/php-5.2.17/TSRM -I/lnmp1.0-full/php-5.2.17/Zend    -I/usr/local/include -g -O2  -c /lnmp1.0-full/php-5.2.17/ext/curl/streams.c -o ext/curl/streams.lo
/lnmp1.0-full/php-5.2.17/ext/curl/streams.c: In function 鈥榩hp_curl_stream_opener鈥?
/lnmp1.0-full/php-5.2.17/ext/curl/streams.c:305: warning: call to 鈥榑curl_easy_setopt_err_progress_cb鈥?declared with attribute warning: curl_easy_setopt expects a curl_progress_callback argument for this option
/bin/sh /lnmp1.0-full/php-5.2.17/libtool --silent --preserve-dup-deps --mode=compile gcc  -Iext/dom/ -I/lnmp1.0-full/php-5.2.17/ext/dom/ -DPHP_ATOM_INC -I/lnmp1.0-full/php-5.2.17/include -I/lnmp1.0-full/php-5.2.17/main -I/lnmp1.0-full/php-5.2.17 -I/lnmp1.0-full/php-5.2.17/ext/date/lib -I/usr/include/libxml2 -I/usr/include/freetype2 -I/lnmp1.0-full/php-5.2.17/ext/mbstring/oniguruma -I/lnmp1.0-full/php-5.2.17/ext/mbstring/libmbfl -I/lnmp1.0-full/php-5.2.17/ext/mbstring/libmbfl/mbfl -I/usr/local/include -I/usr/local/mysql/include -I/lnmp1.0-full/php-5.2.17/TSRM -I/lnmp1.0-full/php-5.2.17/Zend    -I/usr/local/include -g -O2  -c /lnmp1.0-full/php-5.2.17/ext/dom/php_dom.c -o ext/dom/php_dom.lo
/bin/sh /lnmp1.0-full/php-5.2.17/libtool --silent --preserve-dup-deps --mode=compile gcc  -Iext/dom/ -I/lnmp1.0-full/php-5.2.17/ext/dom/ -DPHP_ATOM_INC -I/lnmp1.0-full/php-5.2.17/include -I/lnmp1.0-full/php-5.2.17/main -I/lnmp1.0-full/php-5.2.17 -I/lnmp1.0-full/php-5.2.17/ext/date/lib -I/usr/include/libxml2 -I/usr/include/freetype2 -I/lnmp1.0-full/php-5.2.17/ext/mbstring/oniguruma -I/lnmp1.0-full/php-5.2.17/ext/mbstring/libmbfl -I/lnmp1.0-full/php-5.2.17/ext/mbstring/libmbfl/mbfl -I/usr/local/include -I/usr/local/mysql/include -I/lnmp1.0-full/php-5.2.17/TSRM -I/lnmp1.0-full/php-5.2.17/Zend    -I/usr/local/include -g -O2  -c /lnmp1.0-full/php-5.2.17/ext/dom/attr.c -o ext/dom/attr.lo
/bin/sh /lnmp1.0-full/php-5.2.17/libtool --silent --preserve-dup-deps --mode=compile gcc  -Iext/dom/ -I/lnmp1.0-full/php-5.2.17/ext/dom/ -DPHP_ATOM_INC -I/lnmp1.0-full/php-5.2.17/include -I/lnmp1.0-full/php-5.2.17/main -I/lnmp1.0-full/php-5.2.17 -I/lnmp1.0-full/php-5.2.17/ext/date/lib -I/usr/include/libxml2 -I/usr/include/freetype2 -I/lnmp1.0-full/php-5.2.17/ext/mbstring/oniguruma -I/lnmp1.0-full/php-5.2.17/ext/mbstring/libmbfl -I/lnmp1.0-full/php-5.2.17/ext/mbstring/libmbfl/mbfl -I/usr/local/include -I/usr/local/mysql/include -I/lnmp1.0-full/php-5.2.17/TSRM -I/lnmp1.0-full/php-5.2.17/Zend    -I/usr/local/include -g -O2  -c /lnmp1.0-full/php-5.2.17/ext/dom/document.c -o ext/dom/document.lo
/lnmp1.0-full/php-5.2.17/ext/dom/document.c: In function 鈥榸if_dom_document_import_node鈥?
/lnmp1.0-full/php-5.2.17/ext/dom/document.c:1263: warning: passing argument 2 of 鈥榙om_get_ns鈥?discards qualifiers from pointer target type
/lnmp1.0-full/php-5.2.17/ext/dom/php_dom.h:98: note: expected 鈥榗har *鈥?but argument is of type 鈥榗onst xmlChar *鈥?
/lnmp1.0-full/php-5.2.17/ext/dom/document.c:1263: warning: passing argument 4 of 鈥榙om_get_ns鈥?discards qualifiers from pointer target type
/lnmp1.0-full/php-5.2.17/ext/dom/php_dom.h:98: note: expected 鈥榗har *鈥?but argument is of type 鈥榗onst xmlChar *鈥?


。。。。。。。。。。。。。。。。。。。。


php-5.2.17/ext/openssl/xp_ssl.c -o ext/openssl/xp_ssl.lo
/lnmp1.0-full/php-5.2.17/ext/openssl/xp_ssl.c: In function 鈥榩hp_openssl_setup_crypto鈥?
/lnmp1.0-full/php-5.2.17/ext/openssl/xp_ssl.c:333: warning: assignment discards qualifiers from pointer target type
/lnmp1.0-full/php-5.2.17/ext/openssl/xp_ssl.c:337: warning: assignment discards qualifiers from pointer target type
/lnmp1.0-full/php-5.2.17/ext/openssl/xp_ssl.c:341: warning: assignment discards qualifiers from pointer target type
/lnmp1.0-full/php-5.2.17/ext/openssl/xp_ssl.c:345: warning: assignment discards qualifiers from pointer target type
/lnmp1.0-full/php-5.2.17/ext/openssl/xp_ssl.c:349: warning: assignment discards qualifiers from pointer target type
/lnmp1.0-full/php-5.2.17/ext/openssl/xp_ssl.c:353: warning: assignment discards qualifiers from pointer target type
/lnmp1.0-full/php-5.2.17/ext/openssl/xp_ssl.c:357: warning: assignment discards qualifiers from pointer target type
/lnmp1.0-full/php-5.2.17/ext/openssl/xp_ssl.c:361: warning: assignment discards qualifiers from pointer target type


。。。。。。。。。。
=========================================================================
=========================================================================
Manager for LNMP V1.0  ,  Written by Licess
=========================================================================
LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux
This script is a tool to Manage status of lnmp
For more information please visit http://www.lnmp.org

Usage: /root/lnmp {start|stop|reload|restart|kill|status}
=========================================================================
Nginx is runing!
php-fpm is runing!
SUCCESS! MySQL running (10723)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State      
tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN      
tcp        0      0 0.0.0.0:49230               0.0.0.0:*                   LISTEN      
tcp        0      0 0.0.0.0:37295               0.0.0.0:*                   LISTEN      
tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LISTEN      
tcp        0      0 0.0.0.0:41362               0.0.0.0:*                   LISTEN      
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      
tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      
tcp        0      0 0.0.0.0:48000               0.0.0.0:*                   LISTEN      
tcp        0      0 0.0.0.0:48001               0.0.0.0:*                   LISTEN      
tcp        0      0 :::22                       :::*                        LISTEN


以下安装日志 见附件:(因为太多, 不全贴)  见附件!!!
谢谢!!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2013-10-9 19:30:26 | 显示全部楼层

php code: $response = curl_exec($ch);



。。。。。。。。。。。。。。。。。。。。。。。。。。。。。

$ch = curl_init();



curl_setopt($ch, CURLOOPT_SSL_VERIFYHOST, FALSE);


curl_setopt($ch, CURLOPT_TRANSFER

$nvpreq="METHOD=".urlencode($methodName).$nvpStr;



curl_setopt($ch,CURLELDS,$nvpreq);


$response = curl_exec($ch);   ================================》到这行报错, 注销不报错!



。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2013-10-10 09:48:39 | 显示全部楼层

php-fpm 日志里执行这个时有什么信息
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2013-10-12 08:53:00 | 显示全部楼层

回复 3# 的帖子




php-fmp 日志在哪个位置啊?
我把系统换成centos6.4 32位了, 安装lnmp1.0 看着结果是成功了, 也能运行了。  
测试中,一接着升级到lnmpa 就会不能运行curl。 所以没有升级。

但现在又有问题了, 我4G的双核独立服务器, 同时在线不到10个人,经常是502错误页面。 还是要重装! 或升级

4G的双核独立服务器, lnmpa 一般同时在线多少人 不会有502?   

你们可以付费代装么? 多少钱, (前期配置好)
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-25 03:29 , Processed in 0.026482 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表