欢迎加入Python爱好者QQ群(Pythoner):103441184

日期:11-09-04 |  分类:Linux |  标签: |  0 Comments

在IIS环境下,可以在Internet 信息服务(IIS)管理器中对目录的脚本执行权限进行设置。 在Apache环境下如何设置呢? 我查到了两种方案: 方案1)通过.htaccess限制对.php文件的请求。 在要取消PHP执行权限的目录下建立.htaccess文件,输入下面的内容并保存即可

阅读剩余部分...

日期:11-09-04 |  分类:Linux |  标签: |  0 Comments

1)去掉加载URL重写模块之前的注释: LoadModule rewrite_module modules/mod_rewrite.so 2)修改Directory的AllowOverride属性。 把相应虚拟主机下Directory的 AllowOverride None 修改为 AllowOverride All

阅读剩余部分...

日期:11-09-04 |  分类:网络安全 |  标签: |  1 Comments

IIS环境下比较容易实现,可以通过独立匿名访问账户 + NTFS权限来防止。 查了一下,Apache下类似IIS的独立虚拟主机账户的方案貌似不太好实现,但有一种更简单的方法: 就是在VirtualHost节中通过添加 php_admin_value open_basedir /data/wwwroot/www.redicec

阅读剩余部分...

日期:11-08-27 |  分类:Python |  标签: |  2 Comments

前几天我的Linux VPS出了问题,后来机房的技术告知只能重做系统了,杯具

阅读剩余部分...

日期:11-08-27 |  分类:Python |  标签: |  0 Comments

原文: http://www.hackbase.com/subject/2009-12-30/17137.html Python中的对象之间赋值时是按引用传递的,如果需要拷贝对象,需要使用标准库中的copy模块。 1. copy.copy 浅拷贝 只拷贝父对象,不会拷贝对象的内部的子对象。 2. copy.deepcopy 深拷贝 拷贝

阅读剩余部分...

日期:11-08-26 |  分类:Django |  标签: |  0 Comments

在Django中使用SQLite3时出现NULL result without error in PyObject_Call错误。 查了很长时间,今天终于找到了答案: http://code.google.com/p/modwsgi/wiki/ApplicationIssues Python 'pysqlite' Symbol Conflict Certain versions of 'pysqlite' module

阅读剩余部分...

日期:11-08-24 |  分类:Python |  标签: |  0 Comments

From test, i concluded that in following three cases the socket.recv(recv_size) will return. 1) After the connection was closed(for example, the client side called socket.close()) or any socket error occurred, it would return empty string.

阅读剩余部分...

日期:11-08-24 |  分类:Python |  标签: |  0 Comments

原文地址: http://code.activestate.com/recipes/408859/ An issue with socket.recv is how to know when you are done receiving data. A TCP stream guarantees the bytes will not arrive out of order or be sent more than once. But you do not know

阅读剩余部分...

日期:11-08-19 |  分类:Linux |  标签: |  1 Comments

1. 换源,在这里我们使用搜狐的镜像源。 1.1 备份CentOS-Base.repo cd /etc/yum.repos.d/ cp CentOS-Base.repo CentOS-Base.repo.bak 1.2 替换源 用vi打开CentOS-Base.repo,并将内容清空,然后将下面的内容复制进去,并保存。 # CentOS-Base.repo # # This

阅读剩余部分...

日期:11-08-19 |  分类:Linux |  标签: |  0 Comments

转自: http://linux.lixuxu.cn/2010/12/23/yum-update-php/ 安装完CentOS及apache和php后,上传了phpmyadmin,运行后出现提示 PHP 5.2+ is required. 升级方法如下: 添加额外源: # rpm import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka # vim /

阅读剩余部分...

日期:11-08-19 |  分类:Django |  标签: |  1 Comments

转自 : http://www.tthen.com/archives/32 apxs:Error: Command failed with rc=65536 需要修改mod_python的源代码 vim src/connobject.c 把第142行 !(b == APR_BRIGADE_SENTINEL(b) || 改为 !(b == APR_BRIGADE_SENTINEL(bb) ||

阅读剩余部分...

日期:11-08-13 |  分类:Django |  标签: |  0 Comments

先大概记录下,等有时间了整理份详细的出来: 1)安装Apache以及httpd-devel。 yum install httpd httpd-devel 注意:如果这里不安装httpd-devel后面编译Python 2.5时会找不到文件/usr/sbin/apxs 2)安装opensll及opensll-devel。 yum install openssl opens

阅读剩余部分...

redice's Blog  is powered by DedeCms |  Theme by Monkeii.Lee |  网站地图 |  本服务器由西安鲲之鹏网络信息技术有限公司友情提供

返回顶部