存档在 ‘Web服务器’ 分类

xdebug的安装

2010年7月8日

作为一个完美主义者,xdebug绝对是必不可少的工具之一。

Installing with PEAR/PECL is as easy as:

# pecl install xdebug

but you still need to add the correct line to your php.ini: (don’t forget to change the path and filename to the correct one — but make sure you use the full path)

zend_extension="/usr/local/php/modules/xdebug.so"

Note: You should ignore any prompts to add “extension=xdebug.so” to php.ini — this will cause problems.

Apache错误信息隐藏

2010年6月27日

配置

ServerTokens ProductOnly
ServerSignature Off

在debian系的linux中配置文件太过分散,修改的时候注意要改对地方,否则将没有任何效果。

» 阅读更多: Apache错误信息隐藏

Can’t create/write to file ‘/tmp/#sql_b4c_0.MYD’ (Errcode: 24)

2010年1月16日

今天在尝试使用sqlyog时报错如下

Can’t create/write to file ‘/tmp/#sql_b4c_0.MYD’ (Errcode: 24)

解决办法为

[mysqld]
tmpdir=/path/to/tmp

今天才知道原来这种gui工具还需要在服务器上给划定一块临时空间

mysql如何删除用户?

2010年1月15日

官方推荐的用法是

DROP USER user [, user] ...

但在我新迁移的mysql中没有效果,于是可以在use mysql的情况下

delete from user where HOST like “%jeantoe%”;

根据情况不同where的条件需要变化

[warn] _default_ VirtualHost overlap on port 80……

2009年12月25日

# httpd -S
[Fri Dec 25 21:28:03 2009] [warn] _default_ VirtualHost overlap on port 80, the first has precedence

# vi httpd.conf

Add NameVirtualHost as follows:

NameVirtualHost *:80

that’s all

原文连接 http://www.cyberciti.biz/faq/warn-_default_-virtualhost-overlap-port80-first-hasprecedence/

 Load time improved by PHP Speedy