一、环境要求

centos6.5 x64
mysql5.6.19
php5.5
lighttpd1.4.28

二、安装步骤

install mysql5.6.19 from source:
0. preparation
  yum install gcc gcc-c++ ncurses-devel perl
1. install cmake
   wget http://www.cmake.org/files/v2.8/cmake-2.8.10.2.tar.gz
  tar -xzvf cmake-2.8.10.2.tar.gz
  cd cmake-2.8.10.2
  ./bootstrap ; make ; make install
  cd ~
2. cmake the source file and config the posible options
  cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_UNIX_ADDR=/var/lib/mysql/mysql.sock -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_INNOBASE_STORAGE_ENGINE=1 -WITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_INNODB_MEMCACHED=ON -DWITH_LIBEVENT=system -DMYSQL_DATADIR=/var/lib/mysql -DMYSQL_TCP_PORT=3306 -DENABLE_DOWNLOADS=1
3. make the source
  $ make
4. make install the binary files
  $ make install
5. fufill the mysql tables
  groupadd mysql
  useradd -r -g mysql mysql
  cd /usr/local/mysql
  scripts/mysql_install_db --user=mysql --datadir=/data/mysqldb
6. change owner of the posible directorys
  chown mysql:mysql /var/lib/mysql
7. config the mysqld.server and the my.cnf files
  cp /usr/local/mysql/support-files/my-default.cnf /etc/my.cnf
  cp support-files/mysql.server /etc/init.d/mysqld

php install :
get the source file from site: http://cn2.php.net/distributions/php-5.5.28.tar.bz2
then install these:
1. fcgi
UpLoad fcgi-2.4.0.tar.gz, unzip, then:
  cd fcgi-2.4.0
  ./configure
  make
  make install

2. curl
UpLoad curl-VERSION.tar.gz, unzip, then:
  ./configure --with-openssl
  make
  make install

3. php
UpLoad php-VERSION.tar.gz, unzip, then:
  ./configure --with-mysql --with-curl --enable-ftp --enable-soap --enable-sockets --enable-mbstring
  make
  make install

4. lighttpd
1> UpLoad pcre-8.11.tar.gz , unzip, then:
  ./configure
  make
  make install

2> UpLoad lighttpd-1.4.28.tar.gz, unzip, then:
  ./configure --with-openssl --prefix=/usr/local/lighttpd
  make
  make install

config the lighttpd file like this:

server.max-fds = 10240
server.max-connections = 4096
server.max-keep-alive-requests = 0
server.event-handler = "linux-sysepoll"
server.network-backend = "linux-sendfile"
server.modules = (
"mod_cgi",
"mod_fastcgi",
"mod_accesslog",
"mod_expire",
"mod_access",
"mod_compress",
"mod_rewrite"
)
server.document-root = "/root/www/"
server.port= 80
server.errorlog = "/usr/local/lighttpd/log/error.log"
accesslog.filename = "/usr/local/lighttpd/log/access.log"
server.core-files = "enable"
index-file.names = ( "index.php", "index.html" )
mimetype.assign = (
".gz" => "application/x-gzip",
".swf" => "application/x-shockwave-flash",
".tar.gz" => "application/x-tgz",
".tgz" => "application/x-tgz",
".tar" => "application/x-tar",
".zip" => "application/zip",
".mp3" => "audio/mpeg",
".m3u" => "audio/x-mpegurl",
".wma" => "audio/x-ms-wma",
".wax" => "audio/x-ms-wax",
".wav" => "audio/x-wav",
".gif" => "image/gif",
".jpg" => "image/jpeg",
".jpeg" => "image/jpeg",
".png" => "image/png",
".css" => "text/css",
".html" => "text/html",
".htm" => "text/html",
".js" => "text/javascript",
".text" => "text/plain",
".txt" => "text/plain",
".dtd" => "text/xml",
".xml" => "text/xml",
".mpeg" => "video/mpeg",
".mpg" => "video/mpeg",
".avi" => "video/x-msvideo",
".wmv" => "video/x-ms-wmv",
".bz2" => "application/x-bzip",
".tbz" => "application/x-bzip-compressed-tar",
".tar.bz2" => "application/x-bzip-compressed-tar"
)
static-file.exclude-extensions = ( ".fcgi", ".php", ".cgi", ".pl" )
cgi.assign = (
# ".pl" => "/usr/bin/perl",
".php" => "/usr/local/bin/php-cgi"
)
fastcgi.server = ( ".php" =>
( "localhost" =>
(
"host" => "127.0.0.1",
"port" => 1026,
"bin-path" => "/usr/local/bin/php-cgi"
)
)
)
url.rewrite-once = (
"^/wiki/upload/(.+)" => "/wiki/upload/$1",
"^/$" => "/w/index.php",
"^/wiki/([^?]*)(?:\?(.*))?" => "/w/index.php?title=$1&$2"
)
expire.url = (
"/images/" => "access 1 months",
"/scripts/" => "access 1 months",
"/img/" => "access 1 months",
"/js/" => "access 1 months",
"/css/" => "access 1 months"

剩下的操作就是启动lighttpd然后再配置wordpress的相关配置项,这里就不列出了。

三、测试结果

四、参考

wordpress中文版下载: https://cn.wordpress.org/wordpress-4.2.2-zh_CN.zip

wordpress简单搭建个人博客的更多相关文章

  1. SAE+WordPress快速搭建个人博客

    前些天一时冲动,买了个域名,我想总不能放着不用吧,干脆就搭建了一个个人博客.下面我把搭建的过程分享给大家.注意,此文并不是攻略,只是为了记录下这个从无到有的过程,当然,假如解决了你的疑惑,那当然是极好 ...

  2. 使用docker简单搭建个人博客

    首先介绍需要的yml文件,docker-compose.yml: version: '3.3' services: db: image: mysql:5.7 volumes: - db_data:/v ...

  3. 使用wordPress搭建个人博客

    第一章:前期准备工作 ​ 现在比较流行的博客社区有博客园.开源中国.思否.掘金.CSDN.简书等等,平时可以在自己喜欢的社区分享交流相关专业知识.如果你想拥有一个自己的博客,下面就跟我一起了解一下,我 ...

  4. 阿里云+wordpress搭建个人博客网站【小白专用的图文教程】

    [声明] 欢迎转载,但请保留文章原始出处→_→ 生命壹号:http://www.cnblogs.com/smyhvae/ 文章来源:http://www.cnblogs.com/smyhvae/p/4 ...

  5. 阿里云+wordpress搭建个人博客网站

    [正文] 在阿里云上搭建使用个人博客主要分为以下几个步骤: 1.购买阿里云ECS主机 2.购买域名 3.申请备案 4.环境配置 5.安装wordpress 6.域名解析 声明一下,本人对服务器端的知识 ...

  6. Docker + WordPress搭建个人博客

    WordPress是目前非常受欢迎的开源博客系统,今天使用Docker + WordPress搭建个人博客,整个过程非常丝滑. 搭博客先要准备域名和服务器,昨天在阿里云买了个.top的域名花了5块钱( ...

  7. 【玩转 WordPress】基于 Serverless 搭建个人博客图文教程,学生党首选!

    以下内容来自「玩转腾讯云」用户原创文章,已获得授权. 01. 什么是 Serverless? 1. Serverless 官方定义 Serverless 中的 Server是服务器的意思,less 是 ...

  8. 【超详细】vultr(CentOS7)+LNMP+WordPress 搭建个人博客

    心血来潮想搭建个人博客,我的vps只用来搭ss未免太过浪费 在这里记录一下搭建个人博客的历程 0x00 写在前面 why vultr: 优点:便宜. 性能优良.按时间计费(不用包年 学生党的福音).稳 ...

  9. 如何使用WordPress搭建个人博客

    目录 如何使用WordPress搭建个人博客 一.在安装Linux服务器管理工具WDCP面板 二.在WDCP面板创建一个站点 二.上传博客程序到服务器 @(如何使用WordPress搭建个人博客) 如 ...

随机推荐

  1. 解决oracle和plsql乱码问题

    oracle 10g装上后,建了个表写入中文数据,发现通过工具DbVisualizer 6.5 写入/读取中文都正常,就sqlplus和PL/SQL Developer不正常. 初步怀疑是DbVisu ...

  2. 微信小程序innerAudioContext接口

    voice:function(){ var word = this.data.word; var src = 'https://--/'+word['word']+'.mp3'; console.lo ...

  3. javaScript Windows相关

    javaScript 关于Windows 1 Windows 对象 <1>全部浏览器都支持 window 对象.它表示浏览器窗体. <2>全部 JavaScript 全局对象. ...

  4. 【Python 数据分析】从Mysql数据库取出数据作图分析

    在之前的文章中[爬取天气信息]我们已经将昆明二月份的气温爬取到数据库了,那么现在我们需要对这些数据进行一些分析操作,下面是使用matplotlib对这些数据的一些操作 折线图 首先我们读取数据库中的数 ...

  5. Qt for Android 开发大坑

    Qt for Android 开发大坑 作者: qyvlik Qt 5.5.1 这里说一说比較常见的 Qt 开发安卓的大坑. 希望同学们不要做无谓的挣扎,跳过这些坑. 输入框 首当其冲的是输入框,Qt ...

  6. Swift不等于nil

    我照着书上的例子写下了如下代码,运行后发现提示Nil cannot be assigned to type 'Int' if i!=nil {//Nil cannot be assigned to t ...

  7. 【vue】[Vue warn]: $attrs is readonly. 只读

    [Vue warn]: $attrs is readonly. 这个问题出现时,我自己都很懵逼,明明是在 data 内声明了一个 state  ,我在页面渲染完成后去改变它,但是一改变就报错,而且是我 ...

  8. docker运行环境安装-后续步骤(二)

    1.以非 root 用户身份管理 Docker [origalom@origalom ~]$ sudo groupadd docker # 创建docker用户组[origalom@origalom ...

  9. freeswitch与外部网关链接

    我建了一个 Freeswitch 内核研究 交流群, 45211986, 欢迎加入, 另外,提供基于SIP的通信服务器及客户端解决方案, 承接 sip/ims 视频客户端开发,支持接入sip软交换,i ...

  10. mysql only_full_group_by问题

    我的mysql出现了only_full_group_by问题,网上一堆处理方案! 主要两种 一种修改配置表my.ini 另一种通过指令,屏蔽当前链接的only_full_group_by报错!我想永久 ...