|
php5.0.5+apache2.0.54+mysql5.0.12
以上都已安装完毕,查看PHP的info.php发现没有包含mysql的
配置,我不太清楚有什么不妥, 反正站已经建好,外网能够访问,
但是别人的配置文档里都有mysql的信息,请问是否要重新
将PHP编译安装,以及如何做
我的info.php内容:
PHP Version 5.0.5
System Linux KUN 2.6.12.3 #1 Wed Jul 20 03:16:26 EDT 2005 i686
Build Date Sep 9 2005 18:59:50
Configure Command './configure' '--with-apxs2=/usr/local/apache2/bin/apxs'
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/local/lib/php.ini
PHP API 20031224
PHP Extension 20041030
Zend Extension 220040412
Debug Build no
Thread Safety disabled
Zend Memory Manager enabled
IPv6 Support enabled
Registered PHP Streams php, file, http, ftp
Registered Stream Socket Transports tcp, udp, unix, udg
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.0.5, Copyright (c) 1998-2004 Zend Technologies
PHP Credits
Configuration
PHP Core
Directive Local Value Master Value
allow_call_time_pass_reference On On
allow_url_fopen On On
always_populate_raw_post_data Off Off
arg_separator.input & &
arg_separator.output & &
asp_tags Off Off
auto_append_file no value no value
auto_globals_jit On On
auto_prepend_file no value no value
browscap no value no value
default_charset no value no value
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_classes no value no value
disable_functions no value no value
display_errors On On
display_startup_errors Off Off
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl On On
error_append_string no value no value
error_log no value no value
error_prepend_string no value no value
error_reporting 2039 2039
expose_php On On
extension_dir ./ ./
file_uploads On On
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_errors On On
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .:/usr/local/lib/php .:/usr/local/lib/php
log_errors Off Off
log_errors_max_len 1024 1024
magic_quotes_gpc On On
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
mail.force_extra_parameters no value no value
max_execution_time 30 30
max_input_time 60 60
open_basedir no value no value
output_buffering no value no value
output_handler no value no value
post_max_size 8M 8M
precision 12 12
register_argc_argv On On
register_globals Off Off
register_long_arrays On On
report_memleaks On On
report_zend_debug On On
safe_mode Off Off
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value
sendmail_from no value no value
sendmail_path -t -i -t -i
serialize_precision 100 100
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode Off Off
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 2M 2M
upload_tmp_dir no value no value
user_dir no value no value
variables_order EGPCS EGPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance On On
zend.ze1_compatibility_mode Off Off
apache2handler
Apache Version Apache/2.0.54 (Unix) PHP/5.0.5
Apache API Version 20020903
Server Administrator [email protected]
Hostnameort amonkun.6600.org:80
User/Group nobody(99)/-1
Max Requests Per Child: 0 - Keep Alive: on - Max Per Connection: 100
Timeouts Connection: 300 - Keep-Alive: 15
Virtual Server No
Server Root /usr/local/apache2
Loaded Modules core mod_access mod_auth mod_include mod_log_config mod_env mod_setenvif prefork http_core mod_mime mod_status mod_autoindex mod_asis mod_cgi mod_negotiation mod_dir mod_imap mod_actions mod_userdir mod_alias mod_so mod_php5
Directive Local Value Master Value
engine 1 1
last_modified 0 0
xbithack 0 0
Apache Environment
Variable Value
HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 6.0; X11; Linux i686; en) Opera 8.02
HTTP_HOST localhost
HTTP_ACCEPT text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1
HTTP_ACCEPT_LANGUAGE en,zh-cn;q=0.9
HTTP_ACCEPT_CHARSET iso-8859-1, utf-8, utf-16, *;q=0.1
HTTP_ACCEPT_ENCODING deflate, gzip, x-gzip, identity, *;q=0
HTTP_COOKIE ipfrom=%B1%BE%B5%D8%CD%F8%C2%E7%0D; lastip=127.0.0.1; ifregip=127.0.0.1; ol_offset=97; PHPSESSID=7ee741d3e0887531264a4314a3c90a9b; lastfid=2; lastvisit=1126926772
HTTP_COOKIE2 $Version=1
HTTP_CONNECTION Keep-Alive, TE
HTTP_TE deflate, gzip, chunked, identity, trailers
PATH /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
SERVER_SIGNATURE <address>Apache/2.0.54 (Unix) PHP/5.0.5 Server at localhost Port 80</address>
SERVER_SOFTWARE Apache/2.0.54 (Unix) PHP/5.0.5
SERVER_NAME localhost
SERVER_ADDR 127.0.0.1
SERVER_PORT 80
REMOTE_ADDR 127.0.0.1
DOCUMENT_ROOT /home/www
SERVER_ADMIN [email protected]
SCRIPT_FILENAME /home/www/info.php
REMOTE_PORT 4880
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING no value
REQUEST_URI /info.php
SCRIPT_NAME /info.php
HTTP Headers Information
HTTP Request Headers
HTTP Request GET /info.php HTTP/1.1
User-Agent Mozilla/4.0 (compatible; MSIE 6.0; X11; Linux i686; en) Opera 8.02
Host localhost
Accept text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1
Accept-Language en,zh-cn;q=0.9
Accept-Charset iso-8859-1, utf-8, utf-16, *;q=0.1
Accept-Encoding deflate, gzip, x-gzip, identity, *;q=0
Cookie ipfrom=%B1%BE%B5%D8%CD%F8%C2%E7%0D; lastip=127.0.0.1; ifregip=127.0.0.1; ol_offset=97; PHPSESSID=7ee741d3e0887531264a4314a3c90a9b; lastfid=2; lastvisit=1126926772
Cookie2 $Version=1
Connection Keep-Alive, TE
TE deflate, gzip, chunked, identity, trailers
HTTP Response Headers
X-Powered-By PHP/5.0.5
Keep-Alive timeout=15, max=100
Connection Keep-Alive
Transfer-Encoding chunked
Content-Type text/html
ctype
ctype functions enabled
dom
DOM/XML enabled
DOM/XML API Version 20031129
libxml Version 2.6.19
HTML Support enabled
XPath Support enabled
XPointer Support enabled
Schema Support enabled
RelaxNG Support enabled
iconv
iconv support enabled
iconv implementation glibc
iconv library version 2.3.4
Directive Local Value Master Value
iconv.input_encoding ISO-8859-1 ISO-8859-1
iconv.internal_encoding ISO-8859-1 ISO-8859-1
iconv.output_encoding ISO-8859-1 ISO-8859-1
libxml
libXML support active
libXML Version 2.6.19
libXML streams enabled
pcre
PCRE (Perl Compatible Regular Expressions) Support enabled
PCRE Library Version 6.2 01-Aug-2005
posix
Revision $Revision: 1.60.2.4 $
session
Session Support enabled
Registered save handlers files user sqlite
Registered serializer handlers php php_binary
Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 On On
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 100 100
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.hash_bits_per_character 4 4
session.hash_function 0 0
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path no value no value
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid 0 0
SimpleXML
Simplexml support enabled
Revision $Revision: 1.139.2.4 $
Schema support enabled
SPL
SPL support enabled
Interfaces RecursiveIterator, SeekableIterator
Classes ArrayIterator, ArrayObject, CachingIterator, CachingRecursiveIterator, DirectoryIterator, FilterIterator, LimitIterator, ParentIterator, RecursiveDirectoryIterator, RecursiveIteratorIterator, SimpleXMLIterator
SQLite
SQLite support enabled
PECL Module version 2.0-dev $Id: sqlite.c,v 1.146.2.7 2005/06/07 15:38:37 dmitry Exp $
SQLite Library 2.8.14
SQLite Encoding iso8859
Directive Local Value Master Value
sqlite.assoc_case 0 0
standard
Regex Library Bundled library enabled
Dynamic Library Support enabled
Directive Local Value Master Value
assert.active 1 1
assert.bail 0 0
assert.callback no value no value
assert.quiet_eval 0 0
assert.warning 1 1
auto_detect_line_endings 0 0
date.default_latitude 31.7667 31.7667
date.default_longitude 35.2333 35.2333
date.sunrise_zenith 90.83 90.83
date.sunset_zenith 90.83 90.83
default_socket_timeout 60 60
safe_mode_allowed_env_vars PHP_ PHP_
safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH
url_rewriter.tags a=href,area=href,frame=src,input=src,form=,fieldset= a=href,area=href,frame=src,input=src,form=,fieldset=
user_agent no value no value
tokenizer
Tokenizer Support enabled
xml
XML Support active
XML Namespace Support active
libxml2 Version 2.6.19
Additional Modules
Module Name
Environment
Variable Value
CONSOLE /dev/console
TERM linux
progress 34
LD_LIBRARY_PATH /usr/local/apache2/lib:
INIT_VERSION sysvinit-2.85
PATH /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
LC_MESSAGES en_US
vga 791
runlevel 5
RUNLEVEL 5
PWD /
LANG zh_CN.GB18030
previous N
PREVLEVEL N
kscripts 24
SHLVL 3
HOME /
sscripts 34
splash silent
_ /usr/local/apache2/bin/httpd
PHP Variables
Variable Value
_REQUEST["ipfrom"] 本地网络
_REQUEST["lastip"] 127.0.0.1
_REQUEST["ifregip"] 127.0.0.1
_REQUEST["ol_offset"] 97
_REQUEST["PHPSESSID"] 7ee741d3e0887531264a4314a3c90a9b
_REQUEST["lastfid"] 2
_REQUEST["lastvisit"] 1126926772
_COOKIE["ipfrom"] 本地网络
_COOKIE["lastip"] 127.0.0.1
_COOKIE["ifregip"] 127.0.0.1
_COOKIE["ol_offset"] 97
_COOKIE["PHPSESSID"] 7ee741d3e0887531264a4314a3c90a9b
_COOKIE["lastfid"] 2
_COOKIE["lastvisit"] 1126926772
_SERVER["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0; X11; Linux i686; en) Opera 8.02
_SERVER["HTTP_HOST"] localhost
_SERVER["HTTP_ACCEPT"] text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1
_SERVER["HTTP_ACCEPT_LANGUAGE"] en,zh-cn;q=0.9
_SERVER["HTTP_ACCEPT_CHARSET"] iso-8859-1, utf-8, utf-16, *;q=0.1
_SERVER["HTTP_ACCEPT_ENCODING"] deflate, gzip, x-gzip, identity, *;q=0
_SERVER["HTTP_COOKIE"] ipfrom=%B1%BE%B5%D8%CD%F8%C2%E7%0D; lastip=127.0.0.1; ifregip=127.0.0.1; ol_offset=97; PHPSESSID=7ee741d3e0887531264a4314a3c90a9b; lastfid=2; lastvisit=1126926772
_SERVER["HTTP_COOKIE2"] $Version=1
_SERVER["HTTP_CONNECTION"] Keep-Alive, TE
_SERVER["HTTP_TE"] deflate, gzip, chunked, identity, trailers
_SERVER["PATH"] /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
_SERVER["SERVER_SIGNATURE"] <address>Apache/2.0.54 (Unix) PHP/5.0.5 Server at localhost Port 80</address>
_SERVER["SERVER_SOFTWARE"] Apache/2.0.54 (Unix) PHP/5.0.5
_SERVER["SERVER_NAME"] localhost
_SERVER["SERVER_ADDR"] 127.0.0.1
_SERVER["SERVER_PORT"] 80
_SERVER["REMOTE_ADDR"] 127.0.0.1
_SERVER["DOCUMENT_ROOT"] /home/www
_SERVER["SERVER_ADMIN"] [email protected]
_SERVER["SCRIPT_FILENAME"] /home/www/info.php
_SERVER["REMOTE_PORT"] 4880
_SERVER["GATEWAY_INTERFACE"] CGI/1.1
_SERVER["SERVER_PROTOCOL"] HTTP/1.1
_SERVER["REQUEST_METHOD"] GET
_SERVER["QUERY_STRING"] no value
_SERVER["REQUEST_URI"] /info.php
_SERVER["SCRIPT_NAME"] /info.php
_SERVER["PHP_SELF"] /info.php
_SERVER["argv"]
Array
(
)
_SERVER["argc"] 0
_ENV["CONSOLE"] /dev/console
_ENV["TERM"] linux
_ENV["progress"] 34
_ENV["LD_LIBRARY_PATH"] /usr/local/apache2/lib:
_ENV["INIT_VERSION"] sysvinit-2.85
_ENV["PATH"] /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
_ENV["LC_MESSAGES"] en_US
_ENV["vga"] 791
_ENV["runlevel"] 5
_ENV["RUNLEVEL"] 5
_ENV["PWD"] /
_ENV["LANG"] zh_CN.GB18030
_ENV["previous"] N
_ENV["PREVLEVEL"] N
_ENV["kscripts"] 24
_ENV["SHLVL"] 3
_ENV["HOME"] /
_ENV["sscripts"] 34
_ENV["splash"] silent
_ENV["_"] /usr/local/apache2/bin/httpd
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 [email protected].
而且浏览器进入phpmyadmin出现:
无法载入 mysql 扩展,
请检查 PHP 配置
文档
是不是因为上面的原因
PHP没有集成mysql的模块
记得当初装的时候,我的安装顺续是:apache,mysql,php
似乎见到的所有文档都是先装mysql
请高手指点一二 |
|