Apache配置“;页面是';t正确重定向”;


Apache configuration "The page isn't redirecting properly"

我有一个zend项目。它以前是有效的,来源没有任何变化。当它工作的时候,它是手动安装的apache2.2,php5.3。之后我安装了xampp,但apache在我发布的每一篇帖子上都显示了错误(有时它会发布两篇帖子)。我决定安装apache2.2和php5.4,但现在它显示"页面重定向不正确"。我的apache配置(我更改的行):httpd.conf:

LoadModule php5_module "c:/Apache2.2/PHP/php5apache2_2.dll"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
PHPIniDir "c:/Apache2.2/PHP"
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
LoadModule rewrite_module modules/mod_rewrite.so
<Directory "C:/Apache2.2/htdocs">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks 
    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride All
    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all
</Directory>

httpd vhosts:

    <VirtualHost *:80>
    ServerAdmin webmaster@rma.com        
    DocumentRoot "C:'Apache2.2'htdocs'rma'public"
    ServerName rma.com
    ErrorLog "logs/rma-error.log"
    CustomLog "logs/rma-access.log" common
    SetEnv APPLICATION_ENV "development"
    <Directory C:'Apache2.2'htdocs'rma'public>
 Options Indexes MultiViews FollowSymLinks
        DirectoryIndex index.php index.html
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    </VirtualHost>

php.ini

[APC]
extension=php_apc.dll
apc.enabled = 1
apc.shm_segments = 1
apc.shm_size = 64M
apc.max_file_size = 10M
apc.stat=1
extension_dir = "C:'Apache2.2'PHP'ext"

我做错了什么?源代码和它在xampp和wamp中的工作方式没有任何变化?谢谢

事实证明php 5.4在apc方面存在一些问题。现在我正在使用xcache。希望这能帮助到别人。