吴启华Blog » ≮┄系统┄≯ - 用心感受生活……

Apache的httpd.conf文件常用指令解释

Author:唯一 Date:2006-04-11 View:459 views

ServerType standalone
#设置服务器的形式是单独启动(standalone),还是借由互联网络伺服程序inetd来启动。一般使用前者。

ServerRoot “/usr/local/apache”
#设置服务器的Home目录,用来存放服务器的设置文件、错误文件、记录文件。

PidFile logs/httpd.pid
#程序启动时,把父进程httpd的进程号(process id)存在这个文件中。这个文件名可以配合PidFile指令加以改变。

ScoreBoardFile logs/apache_status
#设置网络上WWW服务器一些执行程序的记录文件。
Read the rest of this entry »

Windows Apache 下防 PHP 木马设置

Author:唯一 Date:2006-04-11 View:769 views

一、强化PHP环境
第一步:打开php.ini文件(windows默认路径为”%systemroot%\php.ini”,linux默认路径在”etc/php.ini”).
第二步:找到”safe_mode=off”改为”safe_mode=on”(已经打开的省略此步)
第三步:找到”disable_functions=”改为:”disable_functions=phpinfo,system,exec,passthru,shell_exec,popen,is_dir”.
,”system,exec,passthru,shell_exec,popen,” 这些属于命令执行类函数,关闭他们可以防止PHP木马执行webshell;”is_dir”这个函数的关闭,可以让既使有everyone可读的权限,也无法将服务器目录及文件名返回到浏览器.
第四步:找到”display_errors=on”改为”display_errors=off”
第五步:保存退出.
Read the rest of this entry »

Magic picture

Author:唯一 Date:2006-03-31 View:607 views

将图片保存至本地,以缩略图方式查看(Xp环境下)

显示桌面

Author:唯一 Date:2006-03-28 View:1,180 views

“显示桌面”丢失的解决方法

***************************显示桌面 Start*******************

[Shell]
Command=2
IconFile=explorer.exe,3
[Taskbar]
Command=ToggleDesktop

***************************显示桌面 End*******************

新建一个文本文档,把上面这段代码复制过去,保存后,把文件名改成:“显示桌面.scf”即可。