Windows XP 安装 zend server + zend studio 安装配置教程

来源:互联网 发布:赣州淘宝电商培训 编辑:程序博客网 时间:2024/05/13 08:52
以前开发php用的是apache web server、php5,用的dreamweaver工具,要配置好长时间才可以用,dreamweaver也没有智能提示功能。

第一步:安装 Zend Server 选Apache作为web server,改下端口默认为80,因为我的iis是80,我改成8080。
安装后运行Zend Server,http://localhost:8080/ZendServer/,页面显示:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@example.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

偶也不知道这个是什么错误玩意,在网上搜了一下,原因是发现ZendServer\etc\ZendEnablerConf.xml中的开头是一段乱码, 将其改成以“<?xml”开头,重启下apache即可。

第二步:安装Zend Studio

安装Zend Studio就next就好了,然后finish。安装好之后运行起来,关闭那些提示。

在工具栏依次 Help -> Register 输入个破解序列号

 

Username: zendstudio.net

License Key: 3727234F6095F72034F6095F

破解完成,就好了。

第三步:新建php项目

New -> Php Project

选择create project on a local server 这样会方便很多,Finish。

添加一个index.php,写个helloworld 代码:

<?php

     echo 'hello world';

?>

第四步:运行php程序

选择绿色的运行图标右边的倒三角,Run configurations -> 右击php web page -> New

在File中选择你的项目启动页面,我的是 /FirstDemo/index.php,点击Apply -> Run

显示的URL:http://localhost:8080/FirstDemo/index.php

转载:

http://home.phpchina.com/home.php?mod=space&uid=56751&do=blog&id=191671

个人认为很有用值得收藏!!!

原创粉丝点击