PHP Setup with Zend Server and Apache - Win 7


PHP Setup with Zend Server and Apache - Win 7

我已经安装了:Zend Server 6.0——Apache 2.2.22——Zend Studio 9.0.3

所有这些都位于自己的子文件夹中,位于*C:''Program Files(x86)''Zend*内


4行测试脚本

<php
    echo phpinfo();
?>
hello 

当我转到:localhost:10081

我被引导到位于C:''Program Files(x86)''Zend''ZendServer''gui ''public''index.php的文件

PHP文件有我的4行测试。。。并按预期执行


当我转到:127.0.0.1

我被引导到位于C:''Program Files(x86)''Zend''Apach2''htdocs''index.php的一个文件

这个PHP文件也有相同的4行测试,但只输出"hello"。


当我编辑index.php文件以产生php错误时,Zend Server只记录''ZendServer''gui ''public内的index.php文件中的错误。

我想让我的本地web应用程序位于''Apache2''htdocs''中

我怎样才能做到这一点?我可以提供任何其他必要的信息来提供帮助。

谢谢!

~~~编辑~~~~

以下是各种文件,这些文件可能是必要的信息。或者,它们可能只是这篇文章过于杂乱,所以我会把它们放在底部。

C:''Program Files(x86)''Zend''Apache2''conf''Zend.conf

<Location /server-info>
    SetHandler server-info
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
</Location>
<Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
</Location> 
LoadModule zend_enabler_module "C:'Program Files (x86)'Zend'ZendServer'bin'ZendEnablerApache.dll"
ZendEnablerConfig "C:'Program Files (x86)'Zend'ZendServer'etc'ZendEnablerConf.xml"
AddHandler zend-enabler-script .php 
AddType application/x-httpd-php .php   
<Location /phpMyAdmin>
  Order deny,allow
  Allow from all
</Location>
Alias /phpMyAdmin "__HTTPD_PHPMYADMIN_PATH__"

Listen 10081
AllowEncodedSlashes On
Win32DisableAcceptEx
NameVirtualHost *:10081
<VirtualHost *:10081>
Alias /ZendServer "C:'Program Files (x86)'Zend'ZendServer'gui'public"
DocumentRoot "C:'Program Files (x86)'Zend'ZendServer'gui'public"
RewriteEngine On 
RewriteRule ^/$ /ZendServer/ [R]
RewriteRule ^/Login$ /ZendServer/Login [R]
  <Directory "C:'Program Files (x86)'Zend'ZendServer'gui'public">
   AllowOverride All
   Allow from all
  </Directory>
</VirtualHost>

Listen 10083
NameVirtualHost 127.0.0.1:10083
<VirtualHost 127.0.0.1:10083>
CustomLog "C:'Program Files (x86)'Zend'Apache2'logs'access.log" common env=logme
Alias /UserServer "C:'Program Files (x86)'Zend'ZendServer'UserServer"
DocumentRoot "C:'Program Files (x86)'Zend'ZendServer'UserServer"
  <Directory "C:'Program Files (x86)'Zend'ZendServer'UserServer">
   AllowOverride All
   Allow from all
  </Directory>
</VirtualHost>

php代码已损坏。打开的标签必须是<?php。phpinfo上的回显是多余的,因为phpinfo直接输出,不返回任何内容。