我Apache装好了实验了可以的,但是在加入PHP支持时加入这三句“  LoadModule php5_module "D:/PHPServer/php/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "D:/PHPServer/php"   ”就开启不了Apache服务错误如下:
httpd: Syntax error on line 128 of C:/sslfiles/Apache2/conf/httpd.conf: Cannot l
oad C:/sslfiles/php5apache2_2_filter.dll into server: \xd5\xd2\xb2\xbb\xb5\xbd\x
d6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\xe9\xa1\xa3
但是注释了这几句就可以开启服务了,但是不支持PHP了 请各位大侠帮帮忙!

解决方案 »

  1.   

    这个文件C:/sslfiles/php5apache2_2_filter.dll存在么
      

  2.   

    复制 php5apache2_2_filter.dll 到 WINDOWS/system32/ 下试试。
      

  3.   

    我推荐你使用wamp,可以自动安装Apache, PHP5, 和MySQL,很方便
      

  4.   

    如果我只注释LoadModule php5_module "D:/PHPServer/php/php5apache2_2.dll这一句就出现下面的错误Syntax error on line 130 of C:/sslfiles/Apache2/conf/httpd.conf:
    Invalid command 'PHPIniDir', perhaps misspelled or defined by a module not inclu
    ded in the server configuration
      

  5.   

    楼主去看下PHP教程网PHP环境配置的实例教程,对你有帮助,也是WIN7上安装配置PHP
      

  6.   

    这样肯定不行啊,把模块注释了只有PHPIniDir肯定出错啊
      

  7.   

    \xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\xe9\xa1\xa3
    找不到指定的模块。
      

  8.   

    有人可以告诉我为什么会出现这个错误吗
    httpd: Syntax error on line 128 of C:/sslfiles/Apache2/conf/httpd.conf: Cannot l
    oad C:/sslfiles/php5apache2_2_filter.dll into server: \xd5\xd2\xb2\xbb\xb5\xbd\x
    d6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\xe9\xa1\xa3
      

  9.   

    一,确认你PHP.INI中都启用了那些模块,
    一,COPY启用了的模块的支持文件到SYSTEM32目录去
      

  10.   

    li36669957 你好谢谢你的回答,我是win7+Appache2.2.15+php-5.3.2-Win32-VC6-x86.zip 这个PHP.ini我都设置好了肯定没问题。 因为我是用的Appache+php不是IIS所以我想不需要将模块复制到system32下吧
      

  11.   


    LoadModule authn_default_module modules/mod_authn_default.so
    LoadModule authn_file_module modules/mod_authn_file.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
    LoadModule cgi_module modules/mod_cgi.so
    LoadModule dir_module modules/mod_dir.so
    LoadModule env_module modules/mod_env.so
    LoadModule include_module modules/mod_include.so
    LoadModule isapi_module modules/mod_isapi.so
    LoadModule log_config_module modules/mod_log_config.so
    LoadModule mime_module modules/mod_mime.so
    LoadModule negotiation_module modules/mod_negotiation.so
    LoadModule setenvif_module modules/mod_setenvif.so
    LoadModule php5_module "C:/sslfiles/php5apache2_2.dll"
    PHPIniDir "C:/sslfiles/PHP"
    AddType application/x-httpd-php .php .html .htm<IfModule !mpm_netware_module>
    <IfModule !mpm_winnt_module>User daemon
    Group daemon</IfModule>
    </IfModule># 'Main' server configuration
    ##
    ServerAdmin [email protected]
    DocumentRoot "D:\ssl"##
    <Directory />
        Options FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
    </Directory>##
    <Directory "D:\ssl">
        #
      
        #
        Options Indexes FollowSymLinks
        AllowOverride None    #
        # Controls who can get stuff from this server.
        #
        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.html
    </IfModule><FilesMatch "^\.ht">
        Order allow,deny
        Deny from all
        Satisfy All
    </FilesMatch>LogLevel warn<IfModule log_config_module>
      
        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    #
     
        #CustomLog "logs/access.log" combined
    </IfModule><IfModule alias_module>
        #
     
        ScriptAlias /cgi-bin/ "C:/sslfiles/Apache2/cgi-bin/"</IfModule><IfModule cgid_module>
        #
      
        #Scriptsock logs/cgisock
    </IfModule>#
    # "C:/sslfiles/Apache2/cgi-bin" should be changed to whatever your ScriptAliased
    # CGI directory exists, if you have that configured.
    #
    <Directory "C:/sslfiles/Apache2/cgi-bin">
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
    </Directory>#
    # DefaultType: the default MIME type the server will use for a document
    # if it cannot otherwise determine one, such as from filename extensions.
    # If your server contains mostly text or HTML documents, "text/plain" is
    # a good value.  If most of your content is binary, such as applications
    # or images, you may want to use "application/octet-stream" instead to
    # keep browsers from trying to display binary files as though they are
    # text.
    #
    DefaultType text/plain<IfModule mime_module>
        #
        # TypesConfig points to the file containing the list of mappings from
        # filename extension to MIME-type.
        #
        TypesConfig conf/mime.types    #
        # AddType allows you to add to or override the MIME configuration
        # file specified in TypesConfig for specific file types.
        #
        #AddType application/x-gzip .tgz
        #
        # AddEncoding allows you to have certain browsers uncompress
        # information on the fly. Note: Not all browsers support this.
        #
        #AddEncoding x-compress .Z
        #AddEncoding x-gzip .gz .tgz
        #
        # If the AddEncoding directives above are commented-out, then you
        # probably should define those extensions to indicate media types:
        #
        AddType application/x-compress .Z
        AddType application/x-gzip .gz .tgz
        AddType application/x-httpd-php .php
        AddType application/x-httpd-php .html    #
        # AddHandler allows you to map certain file extensions to "handlers":
        # actions unrelated to filetype. These can be either built into the server
        # or added with the Action directive (see below)
        #
        # To use CGI scripts outside of ScriptAliased directories:
        # (You will also need to add "ExecCGI" to the "Options" directive.)
        #
        #AddHandler cgi-script .cgi   
    </IfModule>
    <IfModule ssl_module>
    SSLRandomSeed startup builtin
    SSLRandomSeed connect builtin
    </IfModule>
    这个是httpd.conf  #后面是注释  
      

  12.   

    error.log内容如下:
    Starting the Apache2.2 service
    The Apache2.2 service is running.
    rmine the server's fully qualified domain name, using 192.168.1.100 for ServerName
    httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.1.100 for ServerName
    [Tue Jun 01 15:19:55 2010] [warn] pid file C:/sslfiles/Apache2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    Starting the Apache2.2 service
    The Apache2.2 service is running.
    rmine the server's fully qualified domain name, using 192.168.1.100 for ServerName
    [Tue Jun 01 15:20:06 2010] [warn] pid file C:/sslfiles/Apache2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    请大家帮帮忙了
      

  13.   

    http://www.zzxj.net/blog/fxs_2008/archive/2010/04/25/142.html没遇过你的问题,上面是我在win7下加装时的部分方法
      

  14.   

    和WIN7没多大关系吧,那些问题在别人发布的时候应该就考虑了的
      

  15.   

    我现在PHP装好了,可是不能加载mysql功能。
    mysql_connect()  不支持  请检查 mysql 模块是否正确加载
      

  16.   

    女孩子适合做程序员吗,PHP初学者最好的开发工具
      

  17.   

    http://www.leapsoul.cn/?p=695&cpage=1#comment-704这里面是一个专门针对win7的配置,希望对你有用!
      

  18.   

    建议lZ下一个集成开发软件,像appserv-win32-2.5.9、wamp5之类的,
    本人用的是win7系统,安装了appserv,直接安装就就能用了,不过安装appserv-win32-2.5.9后再安装wamp5,我将appserv-win32-2.5.9装在C盘,wamp5装在D盘访问D盘www目录下php文件出现问题。不知道怎么回事。