Apache报错"0x6eec38dc"指令引用的"0x00000000"内存。该内存不能为"read"。 28 March 2011 20:32 Monday by 小屋 浏览(796)

Apache内存不能为read

启动Apache报错"0x6eec38dc"指令引用的"0x00000000"内存。该内存不能为"read"。

原因是:配置过httpd.conf,添加了一个指向移动硬盘的网站配置。

阅读全文>>

Apache更改header的Connection: keep-alive 22 March 2011 20:24 Tuesday by小屋 浏览(918)

KeepAlive参数改为Off可以使Connection: keep-alive变为Connection: closed

header头部的输出就变成Connection: close

要修改Apache的配置文件,一般空间没这权限

阅读全文>>

php 全部的编译选项 29 October 2010 13:05 Friday by小屋 浏览(1379)

php-5.3.3全部的编译选项

Usage: configure [options] [host]
Options: [defaults in brackets after descriptions]
Configuration:
  --cache-file=FILE       cache test results in FILE
  --help                  print this message
  --no-create             do not create output files
  --quiet, --silent       do not print `checking...' messages
  --version               print the version of autoconf that created configure
Directory and file names:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [/usr/local]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [same as prefix]
  --bindir=DIR            user executables

阅读全文>>

apache多域名多ip多端口的配置 31 July 2010 22:22 Saturday by小屋 浏览(2890)

 

之前就有一篇:apache同一ip设置多端口访问

#由于是多 ip 监听同一个端口所以这样写
Listen 80

#若是多ip 多端口 则是
#Listen 192.170.2.1:80
#Listen 192.170.2.5:8000

#由于使用多ip NameVirtualHost这样设置
NameVirtualHost 1.2.3.4:80
NameVirtualHost 5.6.7.8:80

#第一个ip给域名www.sjolzy.cn

 DocumentRoot /www/sjolzy.cn/

阅读全文>>

ThinkPHP去除url中的index.php 12 July 2010 11:37 Monday by小屋 浏览(2001)

例如你的原路径是 http://localhost/test/index.php/index/add
那么现在的地址是 http://localhost/test/index/add
如何去掉index.php呢?

1.httpd.conf配置文件中加载了mod_rewrite.so模块  //在APACHE里面去配置

#LoadModule rewrite_module modules/mod_rewrite.so把前面的警号去掉

2.AllowOverride None 讲None改为 All      //在APACHE里面去配置 (注意其他地方的AllowOverride也统统设置为ALL)
<Directory "D:/server/apache/cgi-bin">
AllowOverride none  改   AllowOverride ALL
Options None
Order allow,deny
Allow from all

阅读全文>>