安装完WAMP后,PHP文件怎么用IE打不开呢?WINDOWS系统总是让我保存文件?

解决方案 »

  1.   

    WAMP是啥东西?傻瓜式配置PHP?
      

  2.   

    还是自己配的环境好用哦,wamp的你要看他的localhost路径是什么 ,把你的项目放在localhost目录下才好用的
      

  3.   

    http://localhost 这样要下载文件? 理论上是不需要的,初学还是用集成包,方面些.你还是用file:///访问的?我推荐个easyphp集成包用用看.
      

  4.   

    apache里面的解析要加上.php,才执行.php
      

  5.   


    # ThreadsPerChild: constant number of worker threads in the server process
    # MaxRequestsPerChild: maximum  number of requests a server process serves
    ThreadsPerChild 250
    MaxRequestsPerChild  0ServerRoot "C:/xampp/apache"#Listen 12.34.56.78:80
    Listen 80LoadModule actions_module modules/mod_actions.so
    LoadModule alias_module modules/mod_alias.so
    LoadModule asis_module modules/mod_asis.so
    LoadModule auth_basic_module modules/mod_auth_basic.so
    #LoadModule auth_digest_module modules/mod_auth_digest.so
    #LoadModule authn_anon_module modules/mod_authn_anon.so
    #LoadModule authn_dbm_module modules/mod_authn_dbm.so
    LoadModule authn_default_module modules/mod_authn_default.so
    LoadModule authn_file_module modules/mod_authn_file.so
    #LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
    #LoadModule authz_dbm_module modules/mod_authz_dbm.so
    LoadModule authz_default_module modules/mod_authz_default.so
    LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
    LoadModule authz_host_module modules/mod_authz_host.so
    LoadModule authz_user_module modules/mod_authz_user.so
    #LoadModule autoindex_module modules/mod_autoindex.so # don't load because of mod_autoindex_color.so
    #LoadModule bucketeer_module modules/mod_bucketeer.so
    #LoadModule cache_module modules/mod_cache.so
    #LoadModule disk_cache_module modules/mod_disk_cache.so
    #LoadModule file_cache_module modules/mod_file_cache.so
    #LoadModule mem_cache_module modules/mod_mem_cache.so
    #LoadModule cern_meta_module modules/mod_cern_meta.so
    #LoadModule charset_lite_module modules/mod_charset_lite.so
    LoadModule cgi_module modules/mod_cgi.so
    LoadModule dav_module modules/mod_dav.so
    LoadModule dav_fs_module modules/mod_dav_fs.so
    #LoadModule deflate_module modules/mod_deflate.so
    LoadModule dir_module modules/mod_dir.so
    #LoadModule dumpio_module modules/mod_dumpio.so
    LoadModule env_module modules/mod_env.so
    #LoadModule expires_module modules/mod_expires.so
    #LoadModule ext_filter_module modules/mod_ext_filter.so
    #LoadModule headers_module modules/mod_headers.so
    #LoadModule ident_module modules/mod_ident.so
    #LoadModule imagemap_module modules/mod_imagemap.so
    LoadModule include_module modules/mod_include.so
    LoadModule info_module modules/mod_info.so
    LoadModule isapi_module modules/mod_isapi.so
    LoadModule ldap_module modules/mod_ldap.so
    #LoadModule logio_module modules/mod_logio.so
    LoadModule log_config_module modules/mod_log_config.so
    #LoadModule log_forensic_module modules/mod_log_forensic.so
    LoadModule mime_module modules/mod_mime.so
    #LoadModule mime_magic_module modules/mod_mime_magic.so
    LoadModule negotiation_module modules/mod_negotiation.so
    #LoadModule proxy_module modules/mod_proxy.so
    #LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
    #LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
    #LoadModule proxy_connect_module modules/mod_proxy_connect.so
    #LoadModule proxy_http_module modules/mod_proxy_http.so
    #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
    LoadModule rewrite_module modules/mod_rewrite.so
    LoadModule setenvif_module modules/mod_setenvif.so
    #LoadModule speling_module modules/mod_speling.so
    LoadModule status_module modules/mod_status.so
    #LoadModule unique_id_module modules/mod_unique_id.so
    #LoadModule userdir_module modules/mod_userdir.so
    #LoadModule usertrack_module modules/mod_usertrack.so
    #LoadModule version_module modules/mod_version.so
    #LoadModule vhost_alias_module modules/mod_vhost_alias.so
    LoadModule ssl_module modules/mod_ssl.soLoadModule autoindex_color_module modules/mod_autoindex_color.so
    #LoadModule mysql_auth_module modules/mod_auth_mysql.so
    #LoadModule auth_remote_module modules/mod_auth_remote.so
    #LoadModule sspi_auth_module modules/mod_auth_sspi.so
    #LoadModule log_sql_module modules/mod_log_sql.so
    #LoadModule log_sql_mysql_module modules/mod_log_sql_mysql.so
    #<IfModule ssl_module>
    #    LoadModule log_sql_ssl_module modules/mod_log_sql_ssl.so
    #</IfModule>
    #LoadModule proxy_html_module modules/mod_proxy_html.so
    #LoadModule xmlns_module modules/mod_xmlns.so
    #LoadModule proxy_xml_module modules/mod_proxy_xml.so
    #LoadModule bw_module modules/mod_bw.soServerAdmin admin@localhost#
    # ServerName gives the name and port that the server uses to identify itself.
    # This can often be determined automatically, but we recommend you specify
    # it explicitly to prevent problems during startup.
    #
    # If your host doesn't have a registered DNS name, enter its IP address here.
    #
    ServerName localhost:80#
    # DocumentRoot: The directory out of which you will serve your
    # documents. By default, all requests are taken from this directory, but
    # symbolic links and aliases may be used to point to other locations.
    #
    DocumentRoot "e:/workspace/"<Directory />
        Options FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from allow
    </Directory>
    <Directory "e:/workspace/">
       
        Options Indexes FollowSymLinks Includes ExecCGI
       
        AllowOverride All    Order allow,deny
        Allow from all</Directory>#
    # DirectoryIndex: sets the file that Apache will serve if a directory
    # is requested.
    #
    <IfModule dir_module>
        DirectoryIndex index.php index.php4 index.php3 index.cgi index.pl index.html index.htm index.shtml index.phtml
    </IfModule>#
    # The following lines prevent .htaccess and .htpasswd files from being 
    # viewed by Web clients. 
    #
    <FilesMatch "^\.ht">
        Order allow,deny
        Deny from all
    </FilesMatch>ErrorLog logs/error.logLogLevel warn<IfModule log_config_module>
        #
        # The following directives define some format nicknames for use with
        # a CustomLog directive (see below).
        #
        LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
        LogFormat "%h %l %u %t \"%r\" %>s %b" common    <IfModule logio_module>
          # You need to enable mod_logio.c to use %I and %O
          LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
        </IfModule>  
        CustomLog logs/access.log common</IfModule><IfModule alias_module>
      
        ScriptAlias /cgi-bin/ "C:/xampp/cgi-bin/"</IfModule>#
    # "C:/xampp/cgi-bin" should be changed to whatever your ScriptAliased
    # CGI directory exists, if you have that configured.
    #
    <Directory "C:/xampp/cgi-bin">
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
    </Directory>DefaultType text/plain<IfModule mime_module>    TypesConfig conf/mime.types    AddType application/x-compress .Z
        AddType application/x-gzip .gz .tgz    AddHandler cgi-script .cgi   AddType text/html .shtml
       AddOutputFilter INCLUDES .shtml
    </IfModule>EnableMMAP off
    EnableSendfile off# XAMPP specific settings
    Include conf/extra/httpd-xampp.conf# Server-pool management (MPM specific)
    # Include conf/extra/httpd-mpm.conf# Multi-language error messages
    Include conf/extra/httpd-multilang-errordoc.conf# Fancy directory listings
    Include conf/extra/httpd-autoindex.conf# Language settings
    Include conf/extra/httpd-languages.conf# User home directories
    Include conf/extra/httpd-userdir.conf# Real-time info on requests and configuration
    Include conf/extra/httpd-info.conf# Virtual hosts
    Include conf/extra/httpd-vhosts.conf# Local access to the Apache HTTP Server Manual
    Include conf/extra/httpd-manual.conf# Distributed authoring and versioning (WebDAV)
    Include conf/extra/httpd-dav.conf# Various default settings
    Include conf/extra/httpd-default.conf# Secure (SSL/TLS) connections
    Include conf/extra/httpd-ssl.conf#
    # Note: The following must must be present to support
    #       starting without SSL on platforms with no /dev/random equivalent
    #       but a statically compiled-in mod_ssl.
    #
    <IfModule ssl_module>
    SSLRandomSeed startup builtin
    SSLRandomSeed connect builtin
    </IfModule>
      

  6.   

    wamp有没有启动成功? 项目有没有放到www文件夹里?
      

  7.   

    看下右下角系统托盘 wamp 图标是不是全白色的 不是就说明没有成功启动
      

  8.   

    在人家集成环境里找错,比手动配都难受!
    给你推荐换个试试,比如:phpstudy,自己百度一下吧!!!