我的httpd.conf文件:ServerRoot "D:/Server/Apache"# See also the <VirtualHost> and Listen directives.
#
#BindAddress 127.0.0.1# To help diagnose problems use the Windows NT command NETSTAT -a
#
Port 80
 
# local testing and development, you may use 127.0.0.1 as the server name.
#
ServerName localhost DocumentRoot "D:/Server/myWeb"# This should be changed to whatever you set DocumentRoot to.
#
<Directory "D:/Server/Apache/htdocs"># doesn't give it to you.
#
    Options FollowSymLinks MultiViews#
# directory index.  Separate multiple entries with spaces.
#
<IfModule mod_dir.c>
    DirectoryIndex index.htm
    DirectoryIndex index.html
    DirectoryIndex index.php
    DirectoryIndex index.php3
    DirectoryIndex index.php4
</IfModule>    #
    Alias /icons/ "D:/Server/Apache/icons/"
    
    Alias  /test/   "D:/Server/myWeb/tests/" 
    Alias  /jjjj/   "D:/timenet/"    <Directory "D:/Server/Apache/icons">
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
    #
    ScriptAlias /cgi-bin/ "D:/Server/Apache/cgi-bin/"
    
    ScriptAlias /php4/ "d:/Server/PHP4/"
    AddType application/x-httpd-php4 .php
    AddType application/x-httpd-php4 .php3
    AddType application/x-httpd-php4 .php4
    AddType application/x-httpd-php-source .phps
    LoadModule php4_module "d:/Server/php4/sapi/php4apache.dll"    #
#<VirtualHost *>
#    ServerAdmin [email protected]
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>

解决方案 »

  1.   

    http:://localhost/??
    如果不是写错的话,试试把d:\server\apache\conf\httpd.conf中
    DocumentRoot
     的内容改成
    DocumentRoot "d:/server/myweb/"
      

  2.   

    我的php.ini文件:
    [PHP]; UNIX: "/path1:/path2"  
    ;include_path = ".:/php/includes"
    ;
    ; Windows: "\path1;\path2"
    ;include_path = ".;c:\php\includes"; The root of the PHP pages, used only if nonempty.
    ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
    ; if you are running php as a CGI under any web server (other than IIS)
    ; see documentation for security issues.  The alternate is to use the
    ; cgi.force_redirect configuration below
    doc_root =d:\Server\Myweb\tests
    ; Maximum allowed size for uploaded files.
    upload_max_filesize = 2M;Windows Extensions
    ;Note that MySQL and ODBC support is now built in, so no dll is needed for it.
    ;
    ;extension=php_bz2.dll
    ;extension=php_ctype.dll
    ;extension=php_cpdf.dll
    ;extension=php_crack.dll
    ;extension=php_curl.dll
    ;extension=php_cybercash.dll
    ;extension=php_db.dll
    ;extension=php_dba.dll
    ;extension=php_dbase.dll
    ;extension=php_dbx.dll
    ;extension=php_domxml.dll
    ;extension=php_dotnet.dll
    ;extension=php_exif.dll
    ;extension=php_fbsql.dll
    ;extension=php_fdf.dll
    ;extension=php_filepro.dll
    ;extension=php_gd.dll
    ;extension=php_gettext.dll
    ;extension=php_hyperwave.dll
    ;extension=php_iconv.dll
    ;extension=php_ifx.dll
    ;extension=php_iisfunc.dll
    ;extension=php_imap.dll
    ;extension=php_ingres.dll
    ;extension=php_interbase.dll
    ;extension=php_java.dll
    ;extension=php_ldap.dll
    ;extension=php_mbstring.dll
    ;extension=php_mcrypt.dll
    ;extension=php_mhash.dll
    ;extension=php_ming.dll
    ;extension=php_mssql.dll
    ;extension=php_oci8.dll
    ;extension=php_openssl.dll
    ;extension=php_oracle.dll
    ;extension=php_pdf.dll
    ;extension=php_pgsql.dll
    ;extension=php_printer.dll
    ;extension=php_shmop.dll
    ;extension=php_snmp.dll
    ;extension=php_sockets.dll
    ;extension=php_sybase_ct.dll
    ;extension=php_tokenizer.dll
    ;extension=php_w32api.dll
    ;extension=php_xslt.dll
    ;extension=php_yaz.dll
    ;extension=php_zlib.dll
    ;extension =php_ftp.dll 
    以上两文件都为主要改动部分.其它未变.
      

  3.   

    太多问题。
    把全攻略一、二、三看完,估计你就能自已搞定了,地址如下:http://www.yesky.com/20010307/162550.shtml
      

  4.   

    真是好东西啊.经典.谢谢jhzyz.