免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2449 | 回复: 3
打印 上一主题 下一主题

[FreeBSD] 配置apache奇怪的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-06-13 16:46 |只看该作者 |倒序浏览
1.# apachectl stop
httpd (no pid file) not running
但是我访问http://192.168.0.8 (那台机子的ip)
却显示
It works!
I want to know why it comes like this!
察看server-info:
http://192.168.0.8/server-info#server
显示
Server Settings
Server Version: Apache/2.2.2 (FreeBSD) mod_ssl/2.2.2 OpenSSL/0.9.7e-p1 DAV/2 PHP/5.1.4
Server Built: May 6 2006 16:56:28
Module Magic Number: 20051115:2
Hostname/port: 192.168.0.8:80
Timeouts: connection: 300    keep-alive: 300
MPM Name: Prefork
MPM Information: Max Daemons: 256 Threaded: no Forked: yes
Server Architecture: 32-bit
Server Root: /usr/local
Config File: /usr/local/etc/apache22/httpd.conf
Server Built With:  -D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
  -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_FLOCK_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D HTTPD_ROOT="/usr/local"
-D SUEXEC_BIN="/usr/local/bin/suexec"
-D DEFAULT_SCOREBOARD="/var/run/apache_runtime_status"
-D DEFAULT_ERRORLOG="/var/log/httpd-error.log"
-D AP_TYPES_CONFIG_FILE="etc/apache22/mime.types"
-D SERVER_CONFIG_FILE="etc/apache22/httpd.conf"

2,#apachectl start
(4Address already in use: make_sock: could not bind to address [::]:80
再来一次
# apachectl start
httpd (pid 1802 already running
3,http://192.168.0.8/server-info#mod_php5.c
显示
Module Name: mod_php5.c
Content handlers: yes
Configuration Phase Participation: Create Directory Config, Merge Directory Configs
Request Phase Participation: Content Handlers
Module Directives:
php_value - PHP Value Modifier
php_flag - PHP Flag Modifier
php_admin_value - PHP Value Modifier (Admin)
php_admin_flag - PHP Flag Modifier (Admin)
PHPINIDir - Directory containing the php.ini file
Current Configuration:
http://192.168.0.8/index.php
ie让下载

请大侠帮助啊!

论坛徽章:
0
2 [报告]
发表于 2006-06-13 16:54 |只看该作者
#php  index.php
........
Session Support => enabled
Registered save handlers => files user
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.151.2.22 $
Schema support => enabled

SPL

SPL support => enabled
Interfaces => Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject
Classes => AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, DirectoryIterator, DomainException, EmptyIterator, FilterIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RuntimeException, SplFileInfo, SplFileObject, SplObjectStorage, SplTempFileObject, UnderflowException, UnexpectedValueException

SQLite

SQLite support => enabled
PECL Module version => 2.0-dev $Id: sqlite.c,v 1.166.2.13 2006/04/18 14:30:15 iliaa Exp $
SQLite Library => 2.8.17
SQLite Encoding => iso8859

Directive => Local Value => Master Value
sqlite.assoc_case => 0 => 0

standard

Regex Library => Bundled library enabled
Dynamic Library Support => enabled
Path to sendmail => /usr/sbin/sendmail -t -i

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
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.24

xmlreader

XMLReader => enabled

xmlwriter

XMLWriter => enabled

zlib

ZLib Support => enabled
Stream Wrapper support => compress.zlib://
Stream Filter support => zlib.inflate, zlib.deflate
Compiled Version => 1.2.2
Linked Version => 1.2.2

Directive => Local Value => Master Value
zlib.output_compression => Off => Off
zlib.output_compression_level => -1 => -1
zlib.output_handler => no value => no value

Additional Modules

Module Name

Environment

Variable => Value
USER => ritter
LOGNAME => ritter
HOME => /root
MAIL => /var/mail/ritter
PATH => /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin
TERM => xterm
BLOCKSIZE => K
FTP_PASSIVE_MODE => YES
SHELL => /bin/csh
SSH_CLIENT => 192.168.0.3 1099 22
SSH_CONNECTION => 192.168.0.3 1099 192.168.0.8 22
SSH_TTY => /dev/ttyp0
HOSTTYPE => FreeBSD
VENDOR => intel
OSTYPE => FreeBSD
MACHTYPE => i386
SHLVL => 2
PWD => /usr/local/www/apache22/data/test
GROUP => wheel
HOST => ritter.dlut.org
REMOTEHOST => 192.168.0.3
EDITOR => vi
PAGER => more

PHP Variables

Variable => Value
_SERVER["USER"] => ritter
_SERVER["LOGNAME"] => ritter
_SERVER["HOME"] => /root
_SERVER["MAIL"] => /var/mail/ritter
_SERVER["PATH"] => /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin
_SERVER["TERM"] => xterm
_SERVER["BLOCKSIZE"] => K
_SERVER["FTP_PASSIVE_MODE"] => YES
_SERVER["SHELL"] => /bin/csh
_SERVER["SSH_CLIENT"] => 192.168.0.3 1099 22
_SERVER["SSH_CONNECTION"] => 192.168.0.3 1099 192.168.0.8 22
_SERVER["SSH_TTY"] => /dev/ttyp0
_SERVER["HOSTTYPE"] => FreeBSD
_SERVER["VENDOR"] => intel
_SERVER["OSTYPE"] => FreeBSD
_SERVER["MACHTYPE"] => i386
_SERVER["SHLVL"] => 2
_SERVER["PWD"] => /usr/local/www/apache22/data/test
_SERVER["GROUP"] => wheel
_SERVER["HOST"] => ritter.dlut.org
_SERVER["REMOTEHOST"] => 192.168.0.3
_SERVER["EDITOR"] => vi
_SERVER["PAGER"] => more
_SERVER["PHP_SELF"] => index.php
_SERVER["SCRIPT_NAME"] => index.php
_SERVER["SCRIPT_FILENAME"] => index.php
_SERVER["PATH_TRANSLATED"] => index.php
_SERVER["DOCUMENT_ROOT"] =>
_SERVER["REQUEST_TIME"] => 1150161533
_SERVER["argv"] => Array
(
    [0] => index.php
)

_SERVER["argc"] => 1
_ENV["USER"] => ritter
_ENV["LOGNAME"] => ritter
_ENV["HOME"] => /root
_ENV["MAIL"] => /var/mail/ritter
_ENV["PATH"] => /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin
_ENV["TERM"] => xterm
_ENV["BLOCKSIZE"] => K
_ENV["FTP_PASSIVE_MODE"] => YES
_ENV["SHELL"] => /bin/csh
_ENV["SSH_CLIENT"] => 192.168.0.3 1099 22
_ENV["SSH_CONNECTION"] => 192.168.0.3 1099 192.168.0.8 22
_ENV["SSH_TTY"] => /dev/ttyp0
_ENV["HOSTTYPE"] => FreeBSD
_ENV["VENDOR"] => intel
_ENV["OSTYPE"] => FreeBSD
_ENV["MACHTYPE"] => i386
_ENV["SHLVL"] => 2
_ENV["PWD"] => /usr/local/www/apache22/data/test
_ENV["GROUP"] => wheel
_ENV["HOST"] => ritter.dlut.org
_ENV["REMOTEHOST"] => 192.168.0.3
_ENV["EDITOR"] => vi
_ENV["PAGER"] => more

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.

论坛徽章:
0
3 [报告]
发表于 2006-06-13 16:57 |只看该作者
# grep php httpd.conf
#LoadModule php5_module  /usr/local/libexec/apache22/libphp5.so
LoadModule php5_module        libexec/apache22/libphp5.so
    DirectoryIndex index.html index.php
AddType applicatin/x-httpd-php .php .php5
AddType applicatin/x-httpd-php-source .phps

论坛徽章:
0
4 [报告]
发表于 2006-06-13 16:57 |只看该作者
# httpd -t
Syntax OK
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP