apache是unix&linux下非常流行的web服务器软件,它和php,mysql的组合是很经典的网站配置。WebDAV,DAV是分布式受权和版本控制(Web-based Distributed Authoring Versioning)的缩写。
一般情况下,web服务器上通常还运行着ftp服务器,以用来更新站点内容,但有些人认为ftp协议是不安全的,而webdav是相对比较好的方案。
下面我写了一个详细的安装过程供大家参考,欢迎指正。
- 安装apache
- 安装mysql
- 安装php
- 配置webdav
Apache
下载httpd,当前版本为2.0.55。
| shell# tar xzvf httpd-XX.tar.gz shell# cd httpd-XX shell# ./configure –prefix=PREFIX –enable-ssl –enable-dav –enable-cgi –enable-so shell# make shell# make install |
*NOTE:PREFIX为你要安装到的目录;–enable-ssl 使用ssl;–enable-dav使用webdav;–enable-cgi使用cgi;–enable-so动态共享模块。
MySQL
| shell> groupadd mysql shell> useradd -g mysql mysql shell> gunzip< mysql-VERSION.tar.gz | tar -xvf - shell> cd mysql-VERSION shell> ./configure –prefix=/usr/local/mysql shell> make shell> make install shell> cp support-files/my-medium.cnf /etc/my.cnf shell> cd /usr/local/mysql shell> bin/mysql_install_db –user=mysql shell> chown -R root . shell> chown -R mysql var shell> chgrp -R mysql . shell> bin/mysqld_safe –user=mysql& |
