Monday, April 5. 2010

PHP extension开发参考资料

WEB相关
  1. Zend Engine学习之数据结构类型
  2. PHP at the Core: A Hacker's Guide to the Zend Engine
  3. PHP Cross-Reference
  4. 深入探讨PHP中的内存管理问题
  5. PHP extension Programming
  6. PHP extension writing (PPT)

PHP Extension programming (zt)

WEB相关

一篇好文,需要反复学习,存档一个。

译文地址:http://www.phpbbchina.com/wiki/index.php/%E7%BC%96%E5%86%99PHP%E6%89%A9%E5%B1%95

原文地址:http://devzone.zend.com/article/1021

更多内容…

Sunday, February 15. 2009

FreeBSD上Tomcat的安装与tomcat虚拟主机的配置(和apache22)

WEB相关

相关版本:
FreeBSD 7.0
Tomcat 6.0
Apache 2.2

tomcat使用ports安装很简单。
安装完成后,需要做的设置是:1)开设虚拟主机2)设置虚拟主机中程序的文件访问权限

开设虚拟主机

在tomcat的server.xml中的Engine标签下,增加一个<Host>,代码示例:

<Host name="www.domain.com" appBase="/data/www/path/to/host" workDir="/data/www/path/to/tmp/work">
     <Alias>domain.com</Alias>
     <Alias>www.domain2.com</Alias>
</Host>

其中,workDir属性用于配置jsp编译页面的存放位置,放到网站目录下,以便客户自行删除缓存以方便jsp重新编译。

接下来还要配置一个context:ROOT
在$CATALINA_HOME/conf/Catalina/www.domain.com/目录下建立ROOT.xml,并写入配置内容:

<Context path="/" docBase="/data/www/path/to/host/htdocs" reloadable="true">
</Context>

其中,reloadable用于使tomcat监视WEB-INF/classes和WEB-INF/lib目录,当有更改是重新加载这个context。

设置虚拟主机文件系统访问权限

编辑$CATALINA_HOME/catalina.policy文件,在最后加上与本虚拟主机相关的文件系统访问权限控制:

grant codeBase "file:/data/www/path/to/host/htdocs/=" {
     permission java.io.FilePermission "file:/data/www/path/to/host/-", "write";
}

其中,第一句指定,要控制的是哪个目录下的程序,第二句指定,这些程序能够对哪个目录下的内容有什么权限。

Apache虚拟主机的配置

在apache中配置一个虚拟主机,不需要指定DocumentRoot,只要使用ProxyPass和ProxyPassReverse指定要代理的是tomcat的哪个域名的虚拟主机即可。

Wednesday, February 11. 2009

apache22在目录浏览时正确显示中文目录名(编码gb2312)

WEB相关
<Location "/ftp">
IndexOptions Charset=gb2312
</Location>
Friday, November 21. 2008

APACHE 无法启动 setup_inherited_listeners(), WSASocket failed to open the inherited socket

WEB相关

在网络连接属性里选tcp/ip属性--> 高级-->wins标签--->下面有启用LMHOSTS查询,及netbios的选项,
随便更改一个就可以了,如当前是使用默认设置,你改为禁用,你在任务管理器里立刻就可以看到apache进程cpu迅速下降(不再尝试开子进程),你得把那么进程给关了(内存占用一直在升,会占很大内存的,),当然关闭后再操作以及重启都没问题.

转自http://www.laokee.cn/read.php?133

(Page 1 of 5, totalling 22 entries) » next page

Categories

All categories

Calendar

« 2010 年 September »
Mon Tue Wed Thu Fri Sat Sun
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30      

Archives

Quicksearch

友情链接

Syndicate This Blog

XML RSS 1.0 feed
XML RSS 2.0 feed

Blog Administration

Open login screen

访问统计

Locations of visitors to this page
The articles in this sites are copyrighted, except those marked as reshipped
MII Record: 05029638