Skip to content

Tag Archives: apache

linux安装awstats对apache日志进行监测

04-Oct-08

首先下载两个文件:
wget http://cronolog.org/download/cronolog-1.6.2.tar.gz
wget http://prdownloads…

apache中虚拟目录和虚拟主机设置

02-Sep-08

在apache的配置文件http.conf中设置如下信息,可以将该目录变成一个web可以放的目录:

Opiones Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all

这里面的几个参数说明如下:

Indexes 允许目录浏览(即列出此目录下所有文件名称);MultiVi…

Ubuntu下安装 apache+php+mysql文本服务器!

11-Aug-08

ubuntu实在是太牛了,很简单的方法就安装完毕web服务器,只需要按顺序执行以下命令即可:
Once again, here’s my updated simple installation of Apache, PHP and MySQL in Ubuntu 8.04 LTS (Hardy Heron) Server.
Install SSH Client and Server (for my remote access)
sudo apt-get install ssh

Install Database Server
sudo apt-get install mysql-server-5.0

Install Apache HTTP Server
sudo apt-get install apache2

Install PHP5 and Apache PHP5 module
sudo apt-get install php5 libapache2-mod-php5

Restart Apache
sudo /etc/init.d/apache2 restart

Optionally, install phpMyAdmin
sudo [...]

linux下为什么0777的文件夹和文件apache无法写入呢?

05-Aug-08

原来以为只要是0777的文件夹都可以写入,没想到还与所有者有关系。解决这个问题的办法是把文件夹或者文件的所有者设置为httpd的用户,具体命令:

chmod -Rf nobody ./