1.IIS7.5启用目录列表
常用于FTP站点,范例:http://ftp.99dev.net
Scenario: Let’s say I want to enable directory browsing for a special directory on my site, how do I enable that? It’s as easy as:
1) create (or edit) the web.config file in your site’s home directory
2) edit it as follows:
阅读全文…
一些LAMP论坛,经常遇到这样的问题,页面显示时间和本地实际时间相差8小时或者更多
1.修改系统市区设置
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
2.使用ntpdate同步服务器时间
ntpdate time.api.bz
阅读全文…
1.系统环境配置
配置中文支持
rpm -ivh fonts-chinese-3.02-12.el5.noarch.rpm
rpm -ivh fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm
修改Hostname
1文件中的HOSTNAME,改为你希望的名字
2,/etc/hosts文件中,把所有原来机器名修改为新的机器名
清除原服务组件
阅读全文…
l WordPress的固定链接设置
eg:http://99dev.net/archives/775
修改nginx的Server Section部分如下
location /
{
index index.php index.html;
if (!-e $request_filename)
{
rewrite "^/archives/(.+)$" /index.php?p=$1 last;
}
}
修改“WordPress控制面板-设置-固定链接-自定义结构”,如下
/archives/%post_id%
关键字:wordpress nginx rewrite 固定链接 PermaLink
|nginx 目录列表配置
location / {
autoindex on;
}
阅读全文…
1.www目录备份
分别进各个站点的后台,关闭站点,不要再有数据写入。
打包www目录,下载到本机备用。
2.数据库备份
阅读全文…
从风之翼那里得到Vdoing的邀请,把统计代码加到页面了。刚看了统计报告,对于UV会大于IP的结果很疑惑。在DNSpod群里问了达人,解释得很清楚。
PV(访问量):即Page View,即页面浏览量或点击量,用户每次刷新即被计算一次
UV(独立访客):即Unique Visitor,访问您网站的一台电脑客户端为一个访客
IP(指独立IP数):不包含10.0.0.0、172.16.0.0、192.168.0.0三个私有地址段
阅读全文…
在DRL的小S处买了Cpanel的空间,相当划算,速度还不错。熟悉了一段时间,功能相当强大,支持perl,支持ruby,还有ssh登录等等。相当满意,就酝酿着把空间也转过来。
今天下午,用了2小时,WordPress全部迁移完毕,如果还有小bug的话,请大家在评论中附上,谢谢大家。
简要写一下迁移过程
阅读全文…
按照M(MySQL)-A(Apache)-P(PHP)的顺序,从源代码编译安装。在未安装PHP之前,Apache可以正常开启。安装完PHP,apache restart出现如下错误:
[root@myhost php]# /usr/local/httpd/bin/apachectl stop
Syntax error on line 262 of /usr/local/httpd/conf/httpd.conf:
Cannot load /usr/local/httpd/modules/libphp5.so into server: /usr/local/httpd/modules/libphp5.so: undefined symbol: sqlite3ExprDelete 阅读全文…
最近评论