VPS侦探论坛

 找回密码
 注册
查看: 9528|回复: 2

pathinfo,谢老大指点 但还有点问题 ,请看代码

[复制链接]
发表于 2010-7-26 17:04:13 | 显示全部楼层 |阅读模式

  1.                 location ~ .*\.(php|php5)?$
  2.                         {
  3.                                 fastcgi_pass  unix:/tmp/php-cgi.sock;
  4.                                 fastcgi_index index.php;

  5.                                 include fcgi.conf;
  6.                         }
复制代码


改为

  1. location ~ ^(.+\.php)(.*)$ {
  2. fastcgi_pass unix:/tmp/php-cgi.sock;
  3. fastcgi_index index.php;
  4. fastcgi_split_path_info ^(.+\.php)(.*)$;
  5. fastcgi_param SCRIPT_FILENAME /path/to/php$fastcgi_script_name;
  6. fastcgi_param PATH_INFO $fastcgi_path_info;
  7. fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
  8. include fcgi.conf;
  9. }
复制代码


重新启动lnmp 后,仍然不支持path_info


  1. configuration file /usr/local/nginx/conf/nginx.conf test failed
  2. Nginx program is reloding!
  3. Shutting down MySQL.[  OK  ]
  4. Starting MySQL.[  OK  ]
  5. Shutting down php_fpm . done
  6. Starting php_fpm PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/php_gd2.dll' - /usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/php_gd2.dll: cannot open shared object file: No such file or directory in Unknown on line 0
  7. PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/php_mbstring.dll' - /usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/php_mbstring.dll: cannot open shared object file: No such file or directory in Unknown on line 0
  8. PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/php_mcrypt.dll' - /usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/php_mcrypt.dll: cannot open shared object file: No such file or directory in Unknown on line 0
  9. PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/php_mysql.dll' - /usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/php_mysql.dll: cannot open shared object file: No such file or directory in Unknown on line 0
  10. done
复制代码


请老大给看一下 哪的错误 谢了
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2010-7-26 21:36:37 | 显示全部楼层


自己往上顶一下
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2010-7-26 22:23:23 | 显示全部楼层

回复 1# 的帖子


php配置有错误,发php.ini 最后面那些的配置上了。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-17 21:48 , Processed in 0.026680 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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