一、环境要求

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. hdu 3572 Task Schedule(最大流&&建图经典&&dinic)

    Task Schedule Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) To ...

  2. 批量部署 自动化之 - [pssh](转)

    并行执行命令工具简介 作为运维工程师来讲,机器数量到一定级别的时候,批量运维和管理机器就是一件费神的事情,还好有很多可以批量并行执行命令的工具,比如 pssh , python fabrictaoba ...

  3. (七)Oracle学习笔记—— 游标

    1.游标简介 游标用来处理从数据库中检索的多行记录(使用SELECT语句).利用游标,程序可以逐个地处理和遍历一次检索返回的整个记录集. 为了处理SQL语句,Oracle将在内存中分配一个区域,这就是 ...

  4. C语言-结构体内存对齐

    C语言结构体对齐也是老生常谈的话题了.基本上是面试题的必考题.内容虽然很基础,但一不小心就会弄错.写出一个struct,然后sizeof,你会不会经常对结果感到奇怪?sizeof的结果往往都比你声明的 ...

  5. 利用nginx做tcp负载均衡

    当前nginx-13.1已经支持tcp,ucp,unix域套接字三种负载均衡模式(http肯定支持,这个不用说).最近有需求需要对后端服务做负载均衡,因此考虑使用nginx来做. 1. 下载nginx ...

  6. jquery.validate.js 验证框架详解

    项目中遇到这个js框架 jQuery Validate 插件为表单提供了强大的验证功能,让客户端表单验证变得更简单,同时提供了大量的定制选项,满足应用程序各种需求.该插件捆绑了一套有用的验证方法,包括 ...

  7. 将本地web项目发布到ubuntu上并运行 第一个本地的.net core2.0项目

    前置条件 ubuntu已安装dotnet 发布版本dotnet与发布机一致 这里用的是vm 所以直接把本地web项目拷贝到vm中运行的ubuntu系统中 web站点需要将 webapplication ...

  8. atom执行num run dev报错

    # atom运行npm run dev报错问题 运行描述 vue项目,直接在终端中运行 npm run dev 可以成功执行.但是在atom安装的platformio-ide-terminal插件中打 ...

  9. unity 已知cosA和sinA,求A

    和c++中的atan2(y,x)类似,unity中有也Mathf.Atan2(y,x).

  10. Spring Boot(二):@SpringBootApplication注解理解

    @SpringBootApplication包含三个有用的注解,包括 @SpringBootConfiguration:看源码其实就是@Configuration,表示当前类是一个配置类,就像xml配 ...