在Ubuntu 9.04 Server版下源代码安装Nginx+Mysql+PHP笔记

 

作者:何祖彬[RobinHe] Mail:zubin.he@gmail.com
BLOG : http://blog.csdn.net/zubin006/
Website : http://www.wearelinuxer.com/
始于2009年9月6日
版本号:Nginx+Mysql+PHP-V1.0-20091007,2009年10月07日首版

转载请注明出处,本文也是采用两篇网友的大部分内容,因此转载时,请也将下面“参考文章”的出处也一并加入!谢谢!
本文中难免有不足、遗漏、错别字和句子不通之处,如发现、或者有更新改变之处,请与我联系以及时修正和完善!

PS:由于也是刚刚接触nginx,因此此笔记还不是很完整,需研究几日再逐渐完善和更新。

系统信息:
OS : Ubuntu 9.04 Server版


使用说明:
绿色加粗字体的绝大部分是输入的命令和系统输出显示的结果。

参考文章:

[原创]Fedora8 + Nginx 0.6.3 + PHP 5.2.5

http://hi.baidu.com/meshikar/blog/item/afcde800485a8114738b6576.html

CentOS下Nginx配置笔记(一)安装准备篇
http://ipbfans.org/2008/06/centos-nginx-install

CentOS下Nginx配置笔记(二)PHP以及虚拟主机配置
http://ipbfans.org/2008/06/centos-nginx-php-virtualhost

Nginx 0.7.x + PHP 5.2.8(FastCGI)搭建胜过Apache十倍的Web服务器(第4版)[原创]
http://blog.s135.com/nginx_php_v4/

nginx+PHP +PHP-FPM(FastCGI)在Ubuntu上的安装和配置
http://blog.csdn.net/omohe/archive/2009/07/10/4336731.aspx

Nginx介绍:
Nginx (”engine x”) 是一个高性能的 HTTP 和反向代理服务器,也是一个 IMAP/POP3/SMTP 代理服务器。 Nginx 是由 Igor Sysoev 为俄罗斯访问量第二的 Rambler.ru 站点开发的,它已经在该站点运行超过两年半了。Igor 将源代码以类BSD许可证的形式发布。

Nginx 超越 Apache 的高性能和稳定性,使得国内使用 Nginx 作为 Web 服务器的网站也越来越多,其中包括新浪博客新浪播客网易新闻 等门户网站频道,六间房56.com 等视频分享网站,Discuz!官方论坛水木社区 等知名论坛,豆瓣YUPOO相册海内SNS迅雷在线 等新兴Web 2.0网站。


Nginx 的官方中文维基:http://wiki.nginx.org/NginxChs

一,安装并下载所需以及相关的软件:
为了少打sudo,我启用了ubuntu下的root帐号,方法:
e@u904:~$ sudo passwd
[sudo] password for e:                                    //输入当前用户e的密码进行身份验证
Enter new UNIX password:                                  //输入root的新密码
Retype new UNIX password:                                 //确认root的新密码
passwd: password updated successfully

1,安装所需的编译工具:
# apt-get install vim elinks gcc g++ make libncurses5-dev libpng12-dev libjpeg62-dev zlib1g-dev libxml2-dev libssl-dev openssl libperl-dev

2,下载nginx,mysql和php:
#cd /usr/local/src
#mkdir nginx     //存放nginx、mysql和php源代码的目录
#cd nginx
#wget http://mysql.mirrors.pair.com/Downloads/MySQL-5.1/mysql-5.1.39.tar.gz
#wget http://sysoev.ru/nginx/nginx-0.7.62.tar.gz
//***#wget http://cn2.php.net/get/php-5.2.11.tar.gz/from/cn.php.net/mirror
#wget http://cn2.php.net/get/php-5.3.0.tar.gz/from/cn.php.net/mirror

二,安装mysql:
# tar -zxvf mysql-5.1.39.tar.gz
# cd mysql-5.1.39
请看INSTALL-SOURCE文件,它会教你如何一步一步安装Mysql:
#vi INSTALL-SOURCE 增加运行mysql的用户mysql和组mysql:
#groupadd mysql
#useradd -g mysql mysql

配置mysql:根据需要将相关文件安装到相关的目录中去。依个人需要而定,请了解以下各参数的作用后再进行下一步:
# ./configure –prefix=/usr/local/mysql51 –sysconfdir=/usr/local/mysql51/etc –enable-thread-safe-client
# make
# make install

# mkdir /usr/local/mysql51/etc
# cp support-files/my-medium.cnf /usr/local/mysql51/etc/my.cnf

#cd /usr/local/mysql51
#chown -R mysql .
#chgrp -R mysql .
#./bin/mysql_install_db –user=mysql
#chown -R root .
#chown -R mysql var
#cp share/mysql/mysql.server /etc/init.d/mysqld51

启动mysql:
#/etc/init/mysqld51 start

查看mysql是否启动成功:
#netstat -tnlp | grep mysql
如果有看到这一行:
tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN      1328/mysqld
恭喜你,这说明mysql启动成功.
三,安装PHP[FastCGI模式]:

#cd /usr/local/src/nginx

#wget http://php-fpm.org/downloads/php-5.3.0-fpm-0.5.12.diff.gz
#tar -zxvf php-5.3.0.tar.gz
#gzip -cd php-5.3.0-fpm-0.5.12.diff.gz | patch -d php-5.3.0 -p1

./configure –prefix=/usr/local/php530 –with-mysql=/usr/local/mysql51 –with-gd –with-zlib –with-gettext –with-zlib-dir –with-jpeg-dir –enable-mbstring –with-iconv-dir –with-pdo-mysql=/usr/local/mysql –with-openssl –enable-sockets –enable-fpm

PS: PHP 5.3.X跟PHP 5.2.X有所不同,如果要启用fastcgi, PHP 5.2.X必须:–enable-fastcgi –enable-fpm,而5.3.X只要:–enable-fpm,具体请看:
#./configure –help | grep fpm
–enable-fpm              FastCGI: If this is enabled, the fastcgi support

#make
#make install
#cp php.ini-development /usr/local/php530/lib/php.ini

编辑php-fpm.conf文件:
#vi /usr/local/php530/etc/php-fpm.conf
修改:
Unix user of processes
<!–    <value name=”user”>nobody</value>               –>
Unix group of processes
<!–    <value name=”group”>nobody</value>      –>

为:
Unix user of processes
<value name=”user”>www</value>
Unix group of processes
<value name=”group”>www</value>

也可以更改php-fpm的端口等,当然根据自已喜欢而定,不过最好按标准,我把启动php-fpm的用户和组设为www.可以依情况而做相关变更。

启动php-fpm:
#/usr/local/php530/sbin/php-fpm start

看一下启动是否成功:
#netstat -tlnp | grep php
tcp        0      0 127.0.0.1:9000          0.0.0.0:*               LISTEN      12555/php-cgi

恭喜您,启动成功了!

三,安装Nginx:
先下载并解压pcre,因为Nginx中rewrite功能需要使用pcre库才能工作:
#cd /usr/local/src/nginx
#wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-7.9.tar.gz
#tar -zxvf
pcre-7.9.tar.gz

#cd /usr/local/src/nginx
#tar -zxvf nginx-0.7.62.tar.gz
#cd nginx-0.7.62
#./configure –prefix=/usr/local/nginx –with-pcre=/usr/local/src/nginx/pcre-7.9 –user=www –group=www –with-http_perl_module –with-http_stub_status_module

这行暂时取消://PS:ssl模块,支持https。

PS:–with-pcre需要指向pcre的源代码目录。

#make
#make install

编辑/usr/local/nginx/conf/nginx.conf配置文件,我服务器上的内容如下[下次再做较详细介绍]:
#vi /usr/local/nginx/conf/nginx.conf

###config file start ###

#user  nobody;
user  www www;
worker_processes  1;

error_log  /usr/local/nginx/logs/error.log crit;
#error_log  /usr/local/nginx/logs/error.log  notice;
#error_log  /usr/local/nginx/logs/error.log  info;

#pid        logs/nginx.pid;
pid        /usr/local/nginx/logs/nginx.pid;

worker_rlimit_nofile 51200;

events {
use epoll;
worker_connections  1024;
}

http {
include       mime.types;
default_type  application/octet-stream;

#log_format  main  ‘$remote_addr – $remote_user [$time_local] “$request” ‘
#                  ‘$status $body_bytes_sent “$http_referer” ‘
#                  ‘”$http_user_agent” “$http_x_forwarded_for”‘;

#access_log  /usr/local/nginx/logs/access.log  main;
access_log  /usr/local/nginx/logs/access.log;

server_names_hash_bucket_size 128;
client_header_buffer_size 32k;
large_client_header_buffers 4 32k;
client_max_body_size 8m;

sendfile        on;
tcp_nopush     on;

#keepalive_timeout  0;
keepalive_timeout  65;

tcp_nodelay on;

fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
fastcgi_buffer_size 64k;
fastcgi_buffers 4 64k;
fastcgi_busy_buffers_size 128k;
fastcgi_temp_file_write_size 128k;

gzip on;
gzip_min_length  1k;
gzip_buffers     4 16k;
gzip_http_version 1.0;
gzip_comp_level 2;
gzip_types       text/plain application/x-javascript text/css application/xml;
gzip_vary on;

#gzip  on;

server {
listen       60080;
#server_name  localhost;
server_name  ptovpn.3322.org;

#charset koi8-r;

#access_log  /usr/local/nginx/logs/ptovpn.3322.org.access.log  main;
access_log  /usr/local/nginx/logs/ptovpn.3322.org.access.log;

location / {
#root   /home/www/html;
root   html;
index  index.html index.htm index.php;
}

#error_page  404              /404.html;

# redirect server error pages to the static page /50x.html
#
error_page   500 502 503 504  /50x.html;
location = /50x.html {
#root   /home/www/html;
root   html;
}

# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ /.php$ {
#    proxy_pass   http://127.0.0.1 ;
#}

# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ /.php$ {
root           html;
fastcgi_pass   127.0.0.1:9000;
fastcgi_index  index.php;
include        fcgi.conf;
}
location /nginx_status {
stub_status on;
access_log   off;
allow 59.58.97.2;
deny all;
}

# deny access to .htaccess files, if Apache’s document root
# concurs with nginx’s one
#
#location ~ //.ht {
#    deny  all;
#}
}

# another virtual host using mix of IP-, name-, and port-based configuration
#
#server {
#    listen       8000;
#    listen       somename:8080;
#    server_name  somename  alias  another.alias;

#    location / {
#        root   html;
#        index  index.html index.htm;
#    }
#}

# HTTPS server
#
#server {
#    listen       443;
#    server_name  localhost;

#    ssl                  on;
#    ssl_certificate      cert.pem;
#    ssl_certificate_key  cert.key;

#    ssl_session_timeout  5m;

#    ssl_protocols  SSLv2 SSLv3 TLSv1;
#    ssl_ciphers  ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
#    ssl_prefer_server_ciphers   on;

#    location / {
#        root   html;
#        index  index.html index.htm;
#    }
#}

}

###config file End ###

编辑/usr/local/nginx/conf/fcgi.conf
#vi /usr/local/nginx/conf/fcgi.conf

###config file End ###

fastcgi_param  GATEWAY_INTERFACE  CGI/1.1;
fastcgi_param  SERVER_SOFTWARE    nginx;

fastcgi_param  QUERY_STRING       $query_string;
fastcgi_param  REQUEST_METHOD     $request_method;
fastcgi_param  CONTENT_TYPE       $content_type;
fastcgi_param  CONTENT_LENGTH     $content_length;

fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;
fastcgi_param  SCRIPT_NAME        $fastcgi_script_name;
fastcgi_param  REQUEST_URI        $request_uri;
fastcgi_param  DOCUMENT_URI       $document_uri;
fastcgi_param  DOCUMENT_ROOT      $document_root;
fastcgi_param  SERVER_PROTOCOL    $server_protocol;

fastcgi_param  REMOTE_ADDR        $remote_addr;
fastcgi_param  REMOTE_PORT        $remote_port;
fastcgi_param  SERVER_ADDR        $server_addr;
fastcgi_param  SERVER_PORT        $server_port;
fastcgi_param  SERVER_NAME        $server_name;

# PHP only, required if PHP was built with –enable-force-cgi-redirect
fastcgi_param  REDIRECT_STATUS    200;

###config file End ###

启动Nginx:
#/usr/local/nginx/sbin/nginx

查看是否启动成功:

#netstat -tlnp | grep nginx
tcp        0      0 0.0.0.0:60080           0.0.0.0:*               LISTEN      30309/nginx

由于我把nginx的端口改为60080,所以看到的是60080.

四,测试Nginx+Mysql+PHP:

写一个php程序放在Doc root目录,即/home/www/html/phgg.php,内容如下:

<?php
phpinfo();
?>

打开您的浏览器,输入:

http://youipaddress:60080/phgg.php

如果能看到以下内容,恭喜你,你安装 Nginx+Mysql+PHP成功…

PHP Logo

PHP Version 5.3.0

SystemLinux u904 2.6.28-11-server #42-Ubuntu SMP Fri Apr 17 02:48:10 UTC 2009 i686
Build DateOct 9 2009 15:53:01
Configure Command‘./configure’ ‘–prefix=/usr/local/php530′ ‘–with-mysql=/usr/local/mysql51′ ‘–with-gd’ ‘–with-zlib’ ‘–with-gettext’ ‘–with-zlib-dir’ ‘–with-jpeg-dir’ ‘–enable-mbstring’ ‘–with-iconv-dir’ ‘–with-pdo-mysql=/usr/local/mysql’ ‘–with-openssl’ ‘–enable-sockets’ ‘–enable-fpm’
Server APICGI/FastCGI
Virtual Directory Supportdisabled
Configuration File (php.ini) Path/usr/local/php530/lib
Loaded Configuration File/usr/local/php530/lib/php.ini
Scan this dir for additional .ini files(none)
Additional .ini files parsed(none)
PHP API20090626
PHP Extension20090626
Zend Extension220090626
Zend Extension BuildAPI220090626,NTS
PHP Extension BuildAPI20090626,NTS
Debug Buildno
Thread Safetydisabled
Zend Memory Managerenabled
Zend Multibyte Supportdisabled
IPv6 Supportenabled
Registered PHP Streamshttps, ftps, compress.zlib, php, file, glob, data, http, ftp, phar
Registered Stream Socket Transportstcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filterszlib.*, convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk
Zend logo This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies

PHP Credits


Configuration

cgi-fcgi

DirectiveLocal ValueMaster Value
cgi.discard_path00
cgi.fix_pathinfo11
cgi.force_redirect11
cgi.nph00
cgi.redirect_status_envno value no value
cgi.rfc2616_headers00
fastcgi.error_headerno value no value
fastcgi.logging11
php-fpmactive
php-fpm version0.5.12

Core

PHP Version5.3.0
DirectiveLocal ValueMaster Value
allow_call_time_pass_referenceOffOff
allow_url_fopenOnOn
allow_url_includeOffOff
always_populate_raw_post_dataOffOff
arg_separator.input&&
arg_separator.output&&
asp_tagsOffOff
auto_append_fileno value no value
auto_globals_jitOnOn
auto_prepend_fileno value no value
browscapno value no value
default_charsetno value no value
default_mimetypetext/htmltext/html
define_syslog_variablesOffOff
disable_classesno value no value
disable_functionsno value no value
display_errorsOnOn
display_startup_errorsOnOn
doc_rootno value no value
docref_extno value no value
docref_rootno value no value
enable_dlOffOff
error_append_stringno value no value
error_logno value no value
error_prepend_stringno value no value
error_reporting3276732767
exit_on_timeoutOffOff
expose_phpOnOn
extension_dir/usr/local/php530/lib/php/extensions/no-debug-non-zts-20090626/usr/local/php530/lib/php/extensions/no-debug-non-zts-20090626
file_uploadsOnOn
highlight.bg#FFFFFF #FFFFFF
highlight.comment#FF8000 #FF8000
highlight.default#0000BB #0000BB
highlight.html#000000 #000000
highlight.keyword#007700 #007700
highlight.string#DD0000 #DD0000
html_errorsOnOn
ignore_repeated_errorsOffOff
ignore_repeated_sourceOffOff
ignore_user_abortOffOff
implicit_flushOffOff
include_path.:/php/includes.:/php/includes
log_errorsOnOn
log_errors_max_len10241024
magic_quotes_gpcOffOff
magic_quotes_runtimeOffOff
magic_quotes_sybaseOffOff
mail.add_x_headerOnOn
mail.force_extra_parametersno value no value
mail.logno value no value
max_execution_time3030
max_input_nesting_level6464
max_input_time6060
memory_limit128M128M
open_basedirno value no value
output_buffering40964096
output_handlerno value no value
post_max_size88M88M
precision1414
realpath_cache_size16K16K
realpath_cache_ttl120120
register_argc_argvOffOff
register_globalsOffOff
register_long_arraysOffOff
report_memleaksOnOn
report_zend_debugOnOn
request_orderGPGP
safe_modeOffOff
safe_mode_exec_dirno value no value
safe_mode_gidOffOff
safe_mode_include_dirno value no value
sendmail_fromno value no value
sendmail_path-t -i-t -i
serialize_precision100100
short_open_tagOffOff
SMTPlocalhostlocalhost
smtp_port2525
sql.safe_modeOffOff
track_errorsOnOn
unserialize_callback_funcno value no value
upload_max_filesize88M88M
upload_tmp_dirno value no value
user_dirno value no value
user_ini.cache_ttl300300
user_ini.filename.user.ini.user.ini
variables_orderGPCSGPCS
xmlrpc_error_number00
xmlrpc_errorsOffOff
y2k_complianceOnOn
zend.enable_gcOnOn

ctype

ctype functionsenabled

date

Warning : phpinfo() [function.phpinfo ]: It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘Asia/Chongqing’ for ‘CST/8.0/no DST’ instead in /home/www/html/phgg.php on line 2

date/time supportenabled
“Olson” Timezone Database Version2009.10
Timezone Databaseinternal
Default timezoneAsia/Chongqing
DirectiveLocal ValueMaster Value
date.default_latitude31.766731.7667
date.default_longitude35.233335.2333
date.sunrise_zenith90.58333390.583333
date.sunset_zenith90.58333390.583333
date.timezoneno value no value

dom

DOM/XMLenabled
DOM/XML API Version20031129
libxml Version2.6.32
HTML Supportenabled
XPath Supportenabled
XPointer Supportenabled
Schema Supportenabled
RelaxNG Supportenabled

ereg

Regex LibraryBundled library enabled

fileinfo

fileinfo supportenabled
version1.0.5-dev

filter

Input Validation and Filteringenabled
Revision$Revision: 1.52.2.39.2.16 $
DirectiveLocal ValueMaster Value
filter.defaultunsafe_rawunsafe_raw
filter.default_flagsno value no value

gd

GD Supportenabled
GD Versionbundled (2.0.34 compatible)
GIF Read Supportenabled
GIF Create Supportenabled
JPEG Supportenabled
libJPEG Version6b
PNG Supportenabled
libPNG Version1.2.27
WBMP Supportenabled
XBM Supportenabled
DirectiveLocal ValueMaster Value
gd.jpeg_ignore_warning00

gettext

GetText Supportenabled

hash

hash supportenabled
Hashing Enginesmd2 md4 md5 sha1 sha224 sha256 sha384 sha512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru snefru256 gost adler32 crc32 crc32b salsa10 salsa20 haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5

iconv

iconv supportenabled
iconv implementationglibc
iconv library version2.9
DirectiveLocal ValueMaster Value
iconv.input_encodingISO-8859-1ISO-8859-1
iconv.internal_encodingISO-8859-1ISO-8859-1
iconv.output_encodingISO-8859-1ISO-8859-1

json

json supportenabled
json version1.2.1

libxml

libXML supportactive
libXML Compiled Version2.6.32
libXML Loaded Version20632
libXML streamsenabled

mbstring

Multibyte Supportenabled
Multibyte string enginelibmbfl
HTTP input encoding translationdisabled
mbstring extension makes use of “streamable kanji code filter and converter”, which is distributed under the GNU Lesser General Public License version 2.1.
Multibyte (japanese) regex supportenabled
Multibyte regex (oniguruma) backtrack checkOn
Multibyte regex (oniguruma) version4.7.1
DirectiveLocal ValueMaster Value
mbstring.detect_orderno value no value
mbstring.encoding_translationOffOff
mbstring.func_overload00
mbstring.http_inputpasspass
mbstring.http_outputpasspass
mbstring.http_output_conv_mimetypes^(text/|application/xhtml/+xml)^(text/|application/xhtml/+xml)
mbstring.internal_encodingno value no value
mbstring.languageneutralneutral
mbstring.strict_detectionOffOff
mbstring.substitute_characterno value no value

mysql

MySQL Supportenabled
Active Persistent Links0
Active Links0
Client API version5.1.39
MYSQL_MODULE_TYPEexternal
MYSQL_SOCKET/tmp/mysql.sock
MYSQL_INCLUDE-I/usr/local/mysql51/include/mysql
MYSQL_LIBS-L/usr/local/mysql51/lib/mysql -lmysqlclient
DirectiveLocal ValueMaster Value
mysql.allow_local_infileOnOn
mysql.allow_persistentOnOn
mysql.connect_timeout6060
mysql.default_hostno value no value
mysql.default_passwordno value no value
mysql.default_portno value no value
mysql.default_socket/tmp/mysql.sock/tmp/mysql.sock
mysql.default_userno value no value
mysql.max_linksUnlimitedUnlimited
mysql.max_persistentUnlimitedUnlimited
mysql.trace_modeOffOff

openssl

OpenSSL supportenabled
OpenSSL Library VersionOpenSSL 0.9.8g 19 Oct 2007
OpenSSL Header VersionOpenSSL 0.9.8g 19 Oct 2007

pcre

PCRE (Perl Compatible Regular Expressions) Supportenabled
PCRE Library Version7.9 2009-04-11
DirectiveLocal ValueMaster Value
pcre.backtrack_limit100000100000
pcre.recursion_limit100000100000

PDO

PDO supportenabled
PDO driverssqlite, mysql, sqlite2

pdo_mysql

PDO Driver for MySQLenabled
Client API version5.1.39

pdo_sqlite

PDO Driver for SQLite 3.xenabled
SQLite Library3.6.15

Phar

Phar: PHP Archive supportenabled
Phar EXT version2.0.0-dev
Phar API version1.1.1
CVS revision$Revision: 1.370.2.62 $
Phar-based phar archivesenabled
Tar-based phar archivesenabled
ZIP-based phar archivesenabled
gzip compressionenabled
bzip2 compressiondisabled (install pecl/bz2)
Native OpenSSL supportenabled
Phar based on pear/PHP_Archive, original concept by Davey Shafik.
Phar fully realized by Gregory Beaver and Marcus Boerger.
Portions of tar implementation Copyright (c) 2003-2009 Tim Kientzle.
DirectiveLocal ValueMaster Value
phar.cache_listno value no value
phar.readonlyOnOn
phar.require_hashOnOn

posix

Revision$Revision: 1.70.2.3.2.16.2.15 $

Reflection

Reflectionenabled
Version$Revision: 1.164.2.33.2.45.2.58 $

session

Session Supportenabled
Registered save handlersfiles user sqlite
Registered serializer handlersphp php_binary
DirectiveLocal ValueMaster Value
session.auto_startOffOff
session.bug_compat_42OnOn
session.bug_compat_warnOnOn
session.cache_expire180180
session.cache_limiternocachenocache
session.cookie_domainno value no value
session.cookie_httponlyOffOff
session.cookie_lifetime00
session.cookie_path//
session.cookie_secureOffOff
session.entropy_fileno value no value
session.entropy_length00
session.gc_divisor10001000
session.gc_maxlifetime14401440
session.gc_probability11
session.hash_bits_per_character55
session.hash_function00
session.namePHPSESSIDPHPSESSID
session.referer_checkno value no value
session.save_handlerfilesfiles
session.save_pathno value no value
session.serialize_handlerphpphp
session.use_cookiesOnOn
session.use_only_cookiesOnOn
session.use_trans_sid00

SimpleXML

Simplexml supportenabled
Revision$Revision: 1.151.2.22.2.35.2.32 $
Schema supportenabled

sockets

Sockets Supportenabled

SPL

SPL supportenabled
InterfacesCountable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject
ClassesAppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHeap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedValueException

SQLite

SQLite supportenabled
PECL Module version2.0-dev $Id: sqlite.c,v 1.166.2.13.2.9.2.22 2009/06/25 09:38:04 johannes Exp $
SQLite Library2.8.17
SQLite Encodingiso8859
DirectiveLocal ValueMaster Value
sqlite.assoc_case00

sqlite3

SQLite3 supportenabled
SQLite3 module version0.7-dev
SQLite Library3.6.15
DirectiveLocal ValueMaster Value
sqlite3.extension_dirno value no value

standard

Dynamic Library Supportenabled
Path to sendmail-t -i
DirectiveLocal ValueMaster Value
assert.active11
assert.bail00
assert.callbackno value no value
assert.quiet_eval00
assert.warning11
auto_detect_line_endings00
default_socket_timeout6060
safe_mode_allowed_env_varsPHP_PHP_
safe_mode_protected_env_varsLD_LIBRARY_PATHLD_LIBRARY_PATH
url_rewriter.tagsa=href,area=href,frame=src,input=src,form=fakeentrya=href,area=href,frame=src,input=src,form=fakeentry
user_agentno value no value

tokenizer

Tokenizer Supportenabled

xml

XML Supportactive
XML Namespace Supportactive
libxml2 Version2.6.32

xmlreader

XMLReaderenabled

xmlwriter

XMLWriterenabled

zlib

ZLib Supportenabled
Stream Wrapper supportcompress.zlib://
Stream Filter supportzlib.inflate, zlib.deflate
Compiled Version1.2.3.3
Linked Version1.2.3.3
DirectiveLocal ValueMaster Value
zlib.output_compressionOffOff
zlib.output_compression_level-1-1
zlib.output_handlerno value no value

Additional Modules

Module Name

Environment

VariableValue
HOSTNAMEno value
PATH/usr/local/bin:/usr/bin:/bin
TMP/tmp
TMPDIR/tmp
TEMP/tmp
OSTYPEno value
MACHTYPEno value
MALLOC_CHECK_2
USERwww
HOME/home/www

PHP Variables

VariableValue
_COOKIE["rtime"]2
_COOKIE["ltime"]1255098950804
_COOKIE["cnzz_eid"]18923336-1254889915-
_COOKIE["__utma"]154373753.1092153835.1254891523.1255008301.1255098923.5
_COOKIE["__utmz"]154373753.1254891523.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
_COOKIE["cnzz_a1684596"]1
_COOKIE["vw1684596"]:33575984:36925242:
_COOKIE["sin1684596"]http://ptovpn.3322.org:60080/wearelinuxer/
_COOKIE["__utmb"]154373753.2.10.1255098923
_COOKIE["__utmc"]154373753
_SERVER["HOSTNAME"]no value
_SERVER["PATH"]/usr/local/bin:/usr/bin:/bin
_SERVER["TMP"]/tmp
_SERVER["TMPDIR"]/tmp
_SERVER["TEMP"]/tmp
_SERVER["OSTYPE"]no value
_SERVER["MACHTYPE"]no value
_SERVER["MALLOC_CHECK_"]2
_SERVER["USER"]www
_SERVER["HOME"]/home/www
_SERVER["FCGI_ROLE"]RESPONDER
_SERVER["GATEWAY_INTERFACE"]CGI/1.1
_SERVER["SERVER_SOFTWARE"]nginx
_SERVER["QUERY_STRING"]no value
_SERVER["REQUEST_METHOD"]GET
_SERVER["CONTENT_TYPE"]no value
_SERVER["CONTENT_LENGTH"]no value
_SERVER["SCRIPT_FILENAME"]/home/www/html/phgg.php
_SERVER["SCRIPT_NAME"]/phgg.php
_SERVER["REQUEST_URI"]/phgg.php
_SERVER["DOCUMENT_URI"]/phgg.php
_SERVER["DOCUMENT_ROOT"]/home/www/html
_SERVER["SERVER_PROTOCOL"]HTTP/1.1
_SERVER["REMOTE_ADDR"]58.22.137.203
_SERVER["REMOTE_PORT"]4933
_SERVER["SERVER_ADDR"]59.58.97.5
_SERVER["SERVER_PORT"]60080
_SERVER["SERVER_NAME"]ptovpn.3322.org
_SERVER["REDIRECT_STATUS"]200
_SERVER["HTTP_HOST"]ptovpn.3322.org:60080
_SERVER["HTTP_USER_AGENT"]Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3
_SERVER["HTTP_ACCEPT"]text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
_SERVER["HTTP_ACCEPT_LANGUAGE"]zh-cn,zh;q=0.7,en;q=0.3
_SERVER["HTTP_ACCEPT_ENCODING"]gzip,deflate
_SERVER["HTTP_ACCEPT_CHARSET"]GB2312,utf-8;q=0.7,*;q=0.7
_SERVER["HTTP_KEEP_ALIVE"]300
_SERVER["HTTP_CONNECTION"]keep-alive
_SERVER["HTTP_COOKIE"]rtime=2; ltime=1255098950804; cnzz_eid=18923336-1254889915-; __utma=154373753.1092153835.1254891523.1255008301.1255098923.5; __utmz=154373753.1254891523.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); cnzz_a1684596=1; vw1684596=%3A33575984%3A36925242%3A; sin1684596=http%3A//ptovpn.3322.org%3A60080/wearelinuxer/; __utmb=154373753.2.10.1255098923; __utmc=154373753
_SERVER["PHP_SELF"]/phgg.php
_SERVER["REQUEST_TIME"]1255098967

PHP License

This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license@php.net .

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值