下载apache for win,安装之。
下载mysql for win,安装之。
下载php for win,记得下zip版本。

解决方案 »

  1.   

    我的apache配置如下:httpd.conf:ServerType standalone
    ServerRoot "C:/Apache"
    PidFile logs/httpd.pid
    ScoreBoardFile logs/apache_status
    Timeout 300
    KeepAlive On
    MaxKeepAliveRequests 100
    KeepAliveTimeout 15
    MaxRequestsPerChild 0
    ThreadsPerChild 50
     BindAddress 172.16.9.100
    Port 80ServerAdmin admin@localhost//ServerName localhost
    ServerName yanghu
    DocumentRoot "e:/web"
    <Directory />
        Options FollowSymLinks
        AllowOverride None
    </Directory>
    <Directory "e:/web">
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
    UserDir "C:/Apache/users/"
    DirectoryIndex index.html
    AccessFileName .htaccess
    <Files .htaccess>
        Order allow,deny
        Deny from all
    </Files>
    UseCanonicalName On
    TypesConfig conf/mime.types
    DefaultType text/plain
    <IfModule mod_mime_magic.c>
        MIMEMagicFile conf/magic
    </IfModule>
    HostnameLookups Off
    ErrorLog logs/error.log
    LogLevel warn
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
    LogFormat "%{Referer}i -> %U" referer
    LogFormat "%{User-agent}i" agent
    CustomLog logs/access.log common
    ServerSignature On
    Alias /icons/ "C:/Apache/icons/"
    ScriptAlias /cgi-bin/ "C:/Apache/cgi-bin/"
    <Directory "C:/Apache/cgi-bin">
        AllowOverride None
        Options None
    </Directory>
    IndexOptions FancyIndexing
    AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
    AddIconByType (TXT,/icons/text.gif) text/*
    AddIconByType (IMG,/icons/image2.gif) image/*
    AddIconByType (SND,/icons/sound2.gif) audio/*
    AddIconByType (VID,/icons/movie.gif) video/*
    AddIcon /icons/binary.gif .bin .exe
    AddIcon /icons/binhex.gif .hqx
    AddIcon /icons/tar.gif .tar
    AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
    AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
    AddIcon /icons/a.gif .ps .ai .eps
    AddIcon /icons/layout.gif .html .shtml .htm .pdf
    AddIcon /icons/text.gif .txt
    AddIcon /icons/c.gif .c
    AddIcon /icons/p.gif .pl .py
    AddIcon /icons/f.gif .for
    AddIcon /icons/dvi.gif .dvi
    AddIcon /icons/uuencoded.gif .uu
    AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
    AddIcon /icons/tex.gif .tex
    AddIcon /icons/bomb.gif core
    AddIcon /icons/back.gif ..
    AddIcon /icons/hand.right.gif README
    AddIcon /icons/folder.gif ^^DIRECTORY^^
    AddIcon /icons/blank.gif ^^BLANKICON^^
    DefaultIcon /icons/unknown.gif
    ReadmeName README
    HeaderName HEADER
    IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
    AddEncoding x-compress Z
    AddEncoding x-gzip gz tgz
    AddLanguage da .dk
    AddLanguage nl .nl
    AddLanguage en .en
    AddLanguage et .ee
    AddLanguage fr .fr
    AddLanguage de .de
    AddLanguage el .el
    AddLanguage it .it
    AddLanguage pt .pt
    AddLanguage ltz .lu
    AddLanguage ca .ca
    AddLanguage es .es
    AddLanguage sv .se
    AddLanguage cz .cz
    LanguagePriority en da nl et fr de el it pt ltz ca es sv
    AddType application/x-tar .tgz
    BrowserMatch "Mozilla/2" nokeepalive
    BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
    BrowserMatch "RealPlayer 4\.0" force-response-1.0
    BrowserMatch "Java/1\.0" force-response-1.0
    BrowserMatch "JDK/1\.0" force-response-1.0
    运行apache后的出错信息:
    Error 2185: The service name is invalid. Make sure you are specifying a valid
    service name, and then try again.
    指定的服务器名子有错,请重新指定一个服务器的名子,然后重试!
      

  2.   

    ServerName localhost这个行吗?
      

  3.   

    to anziqi(美洲狮) ServerName localhost这个名字也是不行!请指点,我的操作系统是win98se
      

  4.   

    按照php目录下的install.txt文件作就可以了