php: zend server 安装及相关配置
运行安装文件(ZendServer-CE-php-5.3.2-5.0.1-Windows_x86.exe)开始安装,选项请参照我的选择。
![]()
![]()
这里不做改动,维持默认选择即可
![]()
点击Browse按钮更改安装目录,比如这里设置的是D盘
![]()
更改Web Server Port为85 以避免跟IIS冲突,如果你没有IIS那么没有关系的。
![]()
![]()
![]()
错误1:
安装完成因Zend Server存在配置文件编码的错误,需要手工做更改。
用记事本打开D:\Program Files\Zend\ZendServer\etc\ZendEnablerConf.xml文件。
将
锘??xml version="1.0" encoding="UTF-8"?>
更改为
<?xml version="1.0" encoding="UTF-8"?>
否则会无法启动zend server,网页显示错误500。
在控制面板中打开Apache Service Monitor(右键点击图中第二排第一个图标)
![]()
重新启动Apache(点击Restart按钮)
在浏览器中打开地址:http://localhost:10081/ZendServer/
也可在开始菜单中找到Zend Server的快捷方式打开Zend Server配置界面做一下配置
勾选同意协议单选框。 为Zend Server设置一个密码 去除Email通知选择
配置完成后进入到Zend Server控制面板
这里提醒一下的是Server Setup > Directives 中的Error Handling and Logging组中的display_errors在日后开发中会常用到。
主要作用是打开或者关闭PHP的错误提示。
![]()
错误二:输入http:/localhost/无法打开。这个主要是起先你设置的时候,设置的端口号不是80,而默认是访问这个端口的。
可以如此访问:http://localhost:85/
修改端口号:
例如可以将Apache监听的端口改为81或其他任何一个未被使用的端口。 Apache修改监听端口的方法为: 打开 httpd.conf 修改 Listen 80 为 Listen 81 Apache
可以同时监听一个以上的端口实现多个Http服务 只要添一行 如 Listen 82 即可 同样IIS也可以修改默认的端口以避开冲突 修改方法类似 打开
Administrative Tools -> Internet Services Manager 点选 Default Web Site(或其他自定义的Site) -> 右击选Properties 点选 Web Site -> Advanced...
修改TCP Port 为有效值即可。
这里有更详细的设置情况:http://bbs.cfan.com.cn/thread-189702-1-1.html
错误三:默认路径
appache默认路径一般是 X:\Program Files\Zend\Apache2\htdocs X表示你的盘符。
那么现在我想改到其他地方应该怎么办?
那需要修改httpd.conf(在此E:\Program Files\Zend\Apache2\conf目录下)
找到DocumentRoot开头的选项,修改为你想要的路径就可以。
例如:
DocumentRoot "D:\MyExperiment\php"
#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "D:\MyExperiment\php">
记住所有你的修改,在保存之后,都必须重新启动appace服务才行。
php: zend server 安装及相关配置的更多相关文章
- Zend Server 安装与配置图文教程
Zend Server是一款专业的PHP Web开发应用服务器,一些初次接触并使用此程序的朋友可能不太了解安装方法,本文为您提供了Zend Server 安装与配置图文教程,欢迎大家阅读,并提出自己的 ...
- Nginx的安装及相关配置
Nginx的安装及相关配置 Nginx 是 C语言 开发,建议在 Linux 上运行,当然,也可以安装 Windows 版本,本篇则使用 CentOS 7 作为安装环境. 一. gcc 安装 安装 n ...
- windows上zend server安装 报The server encountered an internal error or misconfiguration and was unable to complete your request -解决方法 摘自网络
windows上zend server安装完成后报如下错误: Internal Server Error The server encountered an internal error or m ...
- Zend Server安装后首次运行就出现Internal Server Error的解决
无论是使用哪个版本的Zend Server来搭建PHP服务器,首次运行都会出现Internal Server Error的错误,对很多新手而言,每当看到这种错误时,那一刻内心绝对都是崩溃的.然而,这个 ...
- Zend Server安装后首次运行就出现Internal Server Error的解决(转)
新近学习php,结果装了Zend Server上来就报错,网上找到了解决方法,照着做果然可行,转之. 刚才安装了Zend Server,安装后首次运行就爆出了一个Internal Server Err ...
- MariaDB的安装及相关配置
MariaDB的安装及相关配置 安装 yum -y install mariadb mariadb-server 安装完成MariaDB,首先启动MariaDB systemctl start mar ...
- node.js安装以及相关配置
安装: 首先需要进行安装.关于如何安装Node.js,这里就不赘述了,可以直接参考官方的安装指南.安装到指定盘后(以下内容以D盘为例),就开始进行相关配置. 配置: 首先配置环境变量:我的电脑--&g ...
- 2、pycharm安装及相关配置
PyCharm是一种Python IDE,带有一整套可以帮助用户在使用Python语言开发时提高其效率的工具,比如调试. 语法高亮.Project管理.代码跳转.智能提示.自动完成.单元测试.版本控制 ...
- Eclipse的安装及相关配置
一.Eclipse的下载 二.Eclipse的安装 三.Eclipse中相关配置 一.Eclipse的下载 Eclipse各版本下载地址 1.选择要下载的版本(我这里选择的4.14版) 2.选择与自己 ...
随机推荐
- 理解AOP
http://www.cnblogs.com/yanbincn/archive/2012/06/01/2530377.html Aspect Oriented Programming 面向切面编程. ...
- python 字符串函数
split函数:将字符串分割成序列 str.split("分隔符") 一般可以这样用 list = [n for n in str.split],这样可以得到一个新的序列 str ...
- FreeBSD_11-系统管理——{Part_3-网络}
一.Network Servers DNS unbound/local_unbound # /etc/rc.conf local_unbound_enable="YES" # 测试 ...
- freeCodeCamp:Confirm the Ending
检查一个字符串(str)是否以指定的字符串(target)结尾. 如果是,返回true;如果不是,返回false. /*思路 字符串长度str.length等于字符串位置str.indexOf() + ...
- 【洛谷 P1352】没有上司的舞会
树形dp #include<cstdio> #include<cstring> #include<algorithm> using namespace std; ; ...
- jsp_属性范围_session
session属性设置后,不管是客户端跳转还是服务器端跳转,只要属性设置了就可以取得. 下面写个小例子来验证一下: (1)session_demo.jsp <%@ page contentTyp ...
- LeetCode:Permutations, Permutations II(求全排列)
Permutations Given a collection of numbers, return all possible permutations. For example, [1,2,3] h ...
- [SmartFoxServer概述]SFS2X栈平台
SmartFoxServer 2X 栈平台 在这有一张SmartFoxServer 2X平台的鸟瞰图,接下来会简要介绍栈中的每个组件. 首先是服务器的核心——网络引擎(代号BitSwarm),它是用以 ...
- java里的static和final
本节介绍JAVA里static和final的作用和使用方法以及一些需要注意的问题. 一.static static表示"全局"或"静态",用来修饰成员变量和成员 ...
- my sql
如果改了上面的4个配置文件,要让其立即生效,可以使用如下方法 source .bash_profile . .bash_profile 基于Apache+php+mysql的许愿墙网站的搭建 方案一: ...