SUSE_10下apache+php+mysql配置指南

apache,php,mysql都是随系统装上去的,装好了之后,把网站放上去竟然不行,于是同学便来找我帮忙看看。

 SUSE里apache的默认配置文件还真是不一样,是放在/etc/apache2下面,不借一般的RedHat啥的都是放在/etc/httpd/conf下面。并且,suse把apache的配置文件拆成了N多个,有一主配置文件httpd.conf(这个名字倒是一样,不过乍一见也真是接受不了),它把其它所有的文件全都include进去了,于是这个文件便成了“不建议修改”的文件了。简单的介绍下几个主要的置文件吧:
  Read the rest of this entry »

Ubuntu 9.04 server用apt安装nginx并配置php(fastcgi)

转自:http://vpsblog.rashost.com/20080524-ubuntu-nginx/    “RASHOST VPS主机官方博客”

这篇文章是用http方式连接fastcgi,也可以用效率更高的unix domain socket – nginx以unix-domain-socket方式连接fastcgi(php)

由于Ubuntu 904已经包含了nginx,所以根本不要编译,安装超简单!

修改/etc/apt/sources.list文件内容为国内镜像,然后运行:

apt-get update
apt-get install nginx

Read the rest of this entry »

FCKEditor: The server didn’t send back a proper XML response解决方法

The server didn’t send back a proper XML response. Please contact your system administrator.

XML request error: OK (200)

所有配置均正确,而会有上面这样的错误。是因为不支持浏览中文文件名导致,解决方法: Read the rest of this entry »

linux下用yum给php安装gd库

[root@localhost ~]# yum install php-gd*
Setting up Install Process
Setting up repositories
base                      100% |=========================|  951 B    00:00
update                    100% |=========================|  951 B    00:00
Read the rest of this entry »

Tags: , ,
| Posted in 服务器OS | No Comments »

Html+Asp+Php+Jsp禁止浏览器缓存的方法

HTTP:
<META HTTP-EQUIV=”pragma” CONTENT=”no-cache”>
<META HTTP-EQUIV=”Cache-Control” CONTENT=”no-cache, must-revalidate”>
<META HTTP-EQUIV=”expires” CONTENT=”Wed, 26 Feb 1997 08:21:57 GMT”>
<META HTTP-EQUIV=”expires” CONTENT=”0″>

ASP
response.expires=0
response.addHeader(“pragma”,”no-cache”)
response.addHeader(“Cache-Control”,”no-cache, must-revalidate”)

PHP
header(“Expires: Mon, 26 Jul 1997 05:00:00 GMT”);
header(“Cache-Control: no-cache, must-revalidate”);
header(“Pragma: no-cache”);

JSP:
response.addHeader(“Cache-Control”, “no-cache”);
response.addHeader(“Expires”, “Thu, 01 Jan 1970 00:00:01 GMT”);

windows下apache2+php5+mysql5+zend Optimizer3套件推荐

1.VertrigoServ
下载:http://sourceforge.net/projects/vertrigo
2.EasyAPM-Server这个比较老,但是好用
下载:很多,baidu吧
3.Appserv
这个也很好,但是和Zend Optimizer配合不是很好,装了zend之后跑得很慢;
其他的就不怎么样了,wamp,easyphp,apmserv都一般……

这些东西在win下,唉,真是的,总是不尺如人意

还不如,IIS扩展一下呢,唉