我有一个zend项目。之前它正在工作,源头没有任何变化。当它工作时它是手动instaled apache 2.2,php 5.3。之后我安装了xampp,但apache在我发的每个帖子上显示错误(有时它会发布双帖)。我决定安装apache 2.2和php 5.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的虚拟主机:
<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中的工作方式没有任何改变?谢谢!
答案 0 :(得分:0)
原来,php 5.4在apc方面存在一些问题。现在我正在使用xcache。希望这有助于某人。