我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了 请各位大侠帮帮忙!
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了 请各位大侠帮帮忙!
Invalid command 'PHPIniDir', perhaps misspelled or defined by a module not inclu
ded in the server configuration
找不到指定的模块。
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
一,COPY启用了的模块的支持文件到SYSTEM32目录去
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 #后面是注释
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?
请大家帮帮忙了
mysql_connect() 不支持 请检查 mysql 模块是否正确加载
本人用的是win7系统,安装了appserv,直接安装就就能用了,不过安装appserv-win32-2.5.9后再安装wamp5,我将appserv-win32-2.5.9装在C盘,wamp5装在D盘访问D盘www目录下php文件出现问题。不知道怎么回事。