1. 概述

WordPress是一个博客系统,使用php写成,使用MySQL作为后台数据库。它的特性包括:

2. 安装

安装apache2和php模块

aptitude install apache2 libapache2-mod-php5

安装mysql

aptitude install mysql-server

安装wordpress

aptitude install wordpress

配置apache2。添加文件/etc/apache2/conf.d/wordpress.conf

nano /etc/apache2/conf.d/wordpress.conf

在其中添加如下内容:

Alias /wordpress /usr/share/wordpress
<Directory /usr/share/wordpress>
    Options FollowSymLinks
    AllowOverride Limit Options FileInfo
    DirectoryIndex index.php
</Directory>

重新加载apache2的配置:

/etc/init.d/apache2 reload

3. 参考文献

ch3n2k.com | Copyright (c) 2004-2020 czk.