现在很多项目是php开发,php作为流行的开发语言,具有良好的性能

这篇文章就是介绍如何使domino与php集成在一起

Introduction

Setting up Domino

Setting up Apache

Using PHP with Domino

Limitations, TODO, etc

Introduction

People often ask whether its possible to use PHP with Domino. Its not as long as Domino is the HTTP stack being used. In theory it would be possible with IIS as the HTTP stack and the PHP module for IIS, but this is a nicer solution (because you dont need IIS) using Apache as the HTTP stack.

This is achieved without any additional code or modules, just through proper configuration of Apache. In essence, were using mod_rewrite to find URLs with .nsf in them and pass them through to mod_proxy to fetch them from Domino. This in effect gives you seamless integration between Apache and Domino, as content on an Apache server usually wont have .nsf in the filename so there wont be a conflict.

System Requirements

Here is the software and versions I used to test this out:Domino 5.06a (This was the first Domino CD I found in my drawer)

Apache 1.3.22 (Should work with any 1.3 version of Apache – might be different under 2.0)

PHP 4.2.0

Note: For these examples Im assuming youre running Apache and Domino on the same box, although theres nothing stopping you from running them seperately – just replace relevant references to “localhost” with the hostname of your Domino server.

Setting up Domino

Note: You can skip this step if youre running Apache and Domino on seperate boxes.

Firstly we need to move Domino off port 80 for HTTP, so that Apache can take over port 80. To do this in the Server Document go to:

Ports -> Internet Ports -> WebChange TCP/IP Port Number to any value but 80, for example 81. The rest of this page will assume youre going to be running Domino on port 81.

Restart the HTTP task – it should come back up on port 81. Try to get to it through the browser, go to the URL http://localhost:81/ – you should get whatever you have setup as the homepage.

Setting up Apache / PHP

Note that the basic setup of Apache / PHP is not going to be discussed here. We will assume you have installed Apache, set it up (running on port 80 as normal), installed PHP and setup Apache so that it can run PHP pages. (Phew!) Sounds more complicated than it is, if youve never done it before. If you follow the Apache Install instructions and the PHP Install instructions you shouldnt have any trouble.

Add the following lines to your httpd.conf:RewriteEngine on RewriteRule ^(.*).nsf(.*) http://localhost:81$1.nsf$2 [P]

What this does is rewrite any URL with a .nsf in it to an Apache proxy request for the same page on port 81 (where Domino is running)

Also add the following lines to ensure that mod_proxy is setup: Note: There will likely be a commented out mod_proxy section if youre using the default httpd.conf – you can just edit that one if you likeProxyRequests On Order deny,allow Deny from all Allow from 127.0.0.1

This will make sure that Proxying is on and only the locally running Apache server is allowed to make Proxy requests.

Update 26 April 2002: I forgot to originally mention that youll also need to make sure that the proxy module is being loaded – Near the top of the httpd.conf file there are two lines that need to be uncommented (theyre in seperate sections):LoadModule proxy_module modules/mod_proxy.soAddModule mod_proxy.c

Start Apache and go to http://localhost/homepage.nsf and you should get the Domino sample homepage being served through Apache.

Using PHP with Domino

Accessing Domino servers using PHPs support for COM on the Windows platform is nothing unique, so I wont go into too much detail. One interesting thing though when integrating PHP with Domino is you can use PHP for displaying stuff, and then jump to a Domino generated page anytime you need to seamlessly. This is mainly what this example is about – its a simple example to display a list of names in the NAB and let you edit the records. The display is done using PHP and the editing is standard Domino EditDocument functionality. I used the NAB as the example because I tried this integration stuff on a standalone server and I didnt have any other interesting databases on it

php domino,domino 与 apache php 的集成_lotus notes相关推荐

  1. php domino,Domino 与 Apache PHP 的集成

    现在很多项目是php开发,php作为流行的开发语言,具有良好的性能 这篇文章就是介绍如何使domino与php集成在一起 Introduction People often ask whether i ...

  2. php domino,月光软件站 - 编程文档 - 其他语言 - Domino 与 Apache PHP 的集成

    现在很多项目是php开发,php作为流行的开发语言,具有良好的性能 这篇文章就是介绍如何使domino与php集成在一起 Introduction People often ask whether i ...

  3. apache camel_REST端点,可使用Apache Camel进行集成

    apache camel REST是一种用于组织资源的体系结构样式,当应用于基于HTTP的服务时,REST可以构建无状态,分离的可伸缩服务. HTTP方法,HTTP标头和mime类型都允许开发人员实现 ...

  4. REST端点,可使用Apache Camel进行集成

    REST是一种用于组织资源的体系结构样式,当应用于基于HTTP的服务时,REST可以构建无状态的,解耦的,可伸缩的服务. HTTP方法,HTTP标头和mime类型都允许开发人员实现REST样式. 诸如 ...

  5. Spring Boot 和Apache Kafka的集成

    点击上方蓝色"方志朋",选择"设为星标" 回复"666"获取独家整理的学习资料! 1. 引言 Apache Kafka 是一个分布式的.容错 ...

  6. linux domino启动和停止命令,在unix平台中通过脚本来启动和停止domino和domino控制器所用的参数_lotus notes...

    产品:Lotus Domino 平台:UNIX, Solaris, Linux, AIX 版本: 6.x 在Unix系统的命令行中,可以通过哪些命令来启动和停止Domino和Domino控制器呢? 要 ...

  7. linux trac apache,Ubuntu下集成Apache+Trac+Git

    ps:没有一边操作一边记录,可能有个别地方权限设置有点问题请注意 软件安装 安装Python setuptoolssudo apt-get install python-setuptools 安装ea ...

  8. 服务器domino没有响应,domino/unix服务器死机及挂起的数据收集步骤_lotus notes

    数据收集前的准备工作:如果近期有频繁出现服务器死机或者服务挂起现象,建议首先做下面三步准备工作. 1. 修改Notes.ini文件.建议在Domino服务器的notes.ini文件中增加以下参数: D ...

  9. Redmine、Apache、Git集成遇到的重重困难

    Remine.Apache和Git这个三个软件,无论哪一个,单独说来安装.配置和使用都是非常方便的,可是想把它们结合起来,却不是那么容易的事情.这里就把这一周来遇到的种种问题记录下来. 一.Redmi ...

最新文章

  1. python画散点图类型-Pandas / Pyplot中的散点图:如何按类别绘制
  2. python基础代码库-python爬虫基础教程:requests库(二)代码实例
  3. VMware虚拟机在仅主机模式下的网卡无法动态获取IP
  4. jedis操作set_使用Redis来进行缓存操作
  5. 松哥整理了 15 道 Spring Boot 高频面试题,看完当面霸
  6. 代码阅读器 android,适用于Android的条形码/ Qr代码阅读器
  7. 公式化学习urllib(第一卷)
  8. ORACLE LINUX 6.3 + ORACLE 11.2.0.3 RAC + VBOX安装文档
  9. NUC1333 Knight Moves【DFS】
  10. 面向对象——类设计(六)——算法类
  11. hdu 3853 LOOPS 概率dp入门题
  12. 自己动手用麦咖啡(mcafee)打造自己的安全网站!安全系统(服务器)!
  13. Ubuntu安装Flash Player
  14. linux--封装redhat镜像
  15. Unity下载安装和Android打包成APK
  16. 数据库毕业设计参考文献最新合集
  17. Java的企业级开发项目--OA办公系统
  18. 软件测试面试两个月,我是如何进入奇虎360?面试总结分享给大家
  19. Yii2用户信息存储与获取
  20. 阿里云RDS数据库与自建数据库做主从同步

热门文章

  1. 计算机学院篮球队介绍,体育风尚丨拼搏砥砺 勇往直前 ——专访计算机学院男子篮球队...
  2. 西安邮电大学计算机学院军训,测控技术与仪器的培养方案
  3. 帆软日期格式转换_FineReport----日期处理
  4. 【AC自动机】西征罗马之路
  5. 【惊爆】可牛公布360安全卫士刻意拦截证据(图)
  6. 【幻化万千戏红尘】千峰培训Day01-java基础学习:历史、数据类型
  7. 英飞凌XMC4000系列开发板软件系统复位死机的问题
  8. 各国NTP服务器列表
  9. 基于MATLAB的胶囊缺陷检测
  10. mysql 提示表不存在的解决方法error 1146 Table doesn't exist