Всем привет!
Решил отказаться от Денвера и установить связку апача+пхп+мускул.
OC windows 7.
Но вот возникла проблемка:
не обрабанываюся php файлы, и выдаёт ошибку:
Not Found
The requested URL /WEBSERVER/php/php-cgi.exe/index .php was not found on this server.
PHP установлен как CGI.
Вот настройки httpd.conf :
CODE ( htmlphp):
скопировать код в буфер обмена
ServerRoot "C:/WEBSERVER/apache" Listen 80 LoadModule 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 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 <IfModule !mpm_netware_module> <IfModule !mpm_winnt_module> User daemon Group daemon </IfModule> </IfModule> ServerAdmin admin@localhost ServerName localhost:80 DocumentRoot "C:/WEBSERVER/www" <Directory /> Options FollowSymLinks Includes Indexes AllowOverride All </Directory> <Directory "C:/WEBSERVER/www"> Options Indexes Includes AllowOverride All Allow from all Options ExecCGI Options Indexes FollowSymLinks AllowOverride None </Directory> <IfModule dir_module> DirectoryIndex index.html index.htm index.shtml index.php </IfModule> <FilesMatch "^\.ht"> Order allow,deny Deny from all Satisfy All </FilesMatch> ErrorLog "C:/WEBSERVER/www/logs/error.log" 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> 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:/WEBSERVER/www/cgi-bin/" </IfModule> <Directory "C:/WEBSERVER/www/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 AddType application/x-httpd-php .php AddType application/x-httpd-php phtml php AddHandler cgi-script .cgi .bat .exe </IfModule> <IfModule ssl_module> SSLRandomSeed startup builtin SSLRandomSeed connect builtin </IfModule> <Directory "C:/WEBSERVER/php"> Options ExecCGI </Directory> ScriptAlias /php/ "C:\WEBSERVER\php\" Action application/x-httpd-php "C:\WEBSERVER\php\php-cgi.exe"
(Отредактировано автором: 15 Марта, 2012 - 14:58:08)
|