`
jason204
  • 浏览: 41245 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

Wordpress installation steps on Centos 6.3

阅读更多


1. ftp
 yum install vsftpd ftp
 chkconfig vsftpd on
 service vsftpd start
 
 配置防火墙端口
 vi /etc/sysconfig/iptables
 -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEPT
 service iptables start
 
 修改配置
 vi /etc/vsftpd/vsftpd.conf
 anonymous_enable=no
 chroot_list_enable=YES
 chroot_list_file=/etc/vsftpd/chroot_list
 
 增加用户ftpuser,指向目录(例如/home/wwwroot/ftpuser或者/usr/share/wordpress),禁止登录SSH权限
 useradd -d /home/wwwroot/ftpuser -g ftp -s /sbin/nologin ftpuser
 passwd ftpuser
 
 vi /etc/vsftpd/chroot_list
 ftpuser(一个用户一行)
 
2. apache httpd
 yum install httpd
 vi /etc/httpd/conf/httpd.conf
 ServerName localhost(OR IP地址):80
3. mysqld
 yum install mysqld
 mysqld_safe --skip-grant-table
 OR
 mysql -u root mysql
  mysql> delete from user where USER='';
 或者 mysql> UPDATE user SET Password=PASSWORD('newpassword') where USER='root';
 mysql> FLUSH PRIVILEGES;
 service mysqld restart
 
 设置wordpress用户和数据库
 mysql -u root –p
 mysql>  CREATE DATABASE wordpress;
 mysql> GRANT ALL PRIVILEGES ON wordpress.* TO “wordpress”@”localhost” IDENTIFIED BY “wordpress”;
 mysql> FLUSH PRIVILEGES;
 mysql> exit
 
4. Linux setting(SELinux,User,Chown,chmod,iptables)

 SELinux(不设置会引起ftp访问不了)
  Vi /etc/selinux/config
 SELINUX=disabled
 SELINUXTYPE=targeted
 User:
 groupadd  apache
 useradd  apache:apache
 passwd  apache

 Chown/chmod:
   将wordpress根目录(/usr/share/wordpress)设置权限和用户
   Chown –R apache:apache /usr/share/wordpress
   Chmod –R 775 /usr/share/wordpress
  
 Iptables:
 -A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 21 -j ACCEPT
 /etc/rc.d/init.d/iptables save (Or Status)
 
 自动配置服务
 # /sbin/chkconfig –-add mysqld
 # /sbin/chkconfig mysqld on
 Chkconfig httpd on
 Chkconfig vsftpd on

5. PhpMyAdmin
 yum install phpmyadmin
 
 vi /etc/httpd/conf.d/phpmyadmin.conf
 # Order Deny,Allow 
 # Deny from all 
 # Allow from 127.0.0.1 
 
 vi /usr/share/phpmyadmin/config.inc.php
 $cfg['Servers'][$i]['auth_type'] = ‘http’;
 
 http://localhost/phpMyAdmin
 
6. EPEL(企业版Linux 附加软件包)
 yum install http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
 
7. Wordpress
 yum install wordpress
 
 vi /etc/httpd/conf.d/wordpress.conf
 <Directory /usr/share/wordpress>
   AllowOverride Options
   <IfModule mod_authz_core.c>
  # Apache 2.4
  Require local
   </IfModule>
   <IfModule !mod_authz_core.c>
  # Apache 2.2
  Order Deny,Allow
  Deny from All
 #    Allow from 127.0.0.1
 #    Allow from ::1
  Allow from All
  </IfModule>
 </Directory>
 
 vi /usr/share/wordpress/wp-config.php
 #mysql setting
 /** The name of the database for WordPress */
 define('DB_NAME', 'wordpress');
 /** MySQL database username */
 define('DB_USER', 'wordpress');
 /** MySQL database password */
 define('DB_PASSWORD', 'wordpress');
 /** MySQL hostname */
 define('DB_HOST', 'localhost');

 #ftp setting
 define('FS_METHOD', 'ftpext');
 define('FTP_BASE', '/usr/share/wordpress/');
 define('FTP_CONTENT_DIR', '/usr/share/wordpress/wp-content/');
 define('FTP_PLUGIN_DIR ', '/usr/share/wordpress/wp-content/plugins/');
 define('FTP_USER', 'apache');
 define('FTP_PASS', 'haofan@1');
 define('FTP_HOST', '192.168.34.88');
 http://georgebutler.com/blog/fixing-wordpresss-auto-update-centos-linux/
  
  http://localhost/wordpress/wp-admin.php
  http://localhost/wordpress
8. Wordpress 中文版
 Download 英文版对应的中文版,解压;
 将中文版wp-content/ languages目录放置英文版的wp-content目录下;
 chown/chmod –R languages;
 vi /usr/share/wordpress/wp-config.php
 define (’WPLANG’, ‘zh_CN’)

参考:
http://www.centos.bz/2011/03/centos-install-vsftpd-ftp-server/
http://www.danscourses.com/Linux-Fundamentals/how-to-install-wordpress-in-centos-linux.html
http://www.esecuredata.com/2012/01/08/worpress-installation-and-configuration-on-centos/ (比较全面)
http://jackiechen.org/2012/11/30/install-wordpress-on-centos-6-3/

分享到:
评论

相关推荐

    CentOS 6.3 网络配置

    CentOS 6.3 网络配置 在 CentOS 6.3 中,网络配置是一个非常重要的步骤,它允许我们连接到局域网或互联网。在本篇文章中,我们将介绍在 CentOS 6.3 中两种常见的网络配置方式:编辑配置文件和使用 setup 命令。 ...

    CentOS 6.3 安装VMTools

    ### CentOS 6.3 中安装 VMTools 的详细步骤与注意事项 #### 一、VMTools简介 VMTools 是由 VMware 公司开发的一款增强工具包,主要用于改善 VMware 虚拟机内的性能,并加强宿主机与虚拟机之间的交互能力。通过安装 ...

    Centos6.3 yum安装lamp架构

    Centos6.3 yum安装lamp架构

    centos6.3版本的安装于配置

    主要是针对配置centos6.3版本的安装、python26的安装、python26模块的安装、nginx服务的安装、hg安装、解决乱码问题及ftp问题,centos6.3版本的安装与配置,安装过程中的配置,安装包选择

    centOS6.3镜像种子

    centOS6.3-DVD-IOS的下载种子.

    CentOS6.3

    【标题】"CentOS6.3" 在IT领域,CentOS是一个非常受欢迎的Linux发行版,主要用于服务器操作系统。CentOS 6.3是这个系列的一个重要版本,发布于2012年,提供了稳定和安全的环境,尤其适合企业级应用。这个版本基于...

    CentOS6.3安装nginx操作指南

    **CentOS 6.3 安装 Nginx 操作指南** 在 CentOS 6.3 上安装 Nginx 是一项常见的任务,Nginx 是一个高性能的 Web 和反向代理服务器,以其轻量级、高效的特性深受开发者和系统管理员的喜爱。本指南将详细解释如何在 ...

    安装CentOS6.3系统

    ### 安装CentOS 6.3系统的详细指南 #### 一、准备工作 在开始安装CentOS 6.3之前,我们需要确保已经准备好了必要的工具和资源。首先,需要从官方镜像站点下载CentOS 6.3的ISO镜像文件。根据提供的链接: - **下载...

    CentOS 6.3安装(超级详细图解教程

    CentOS 6.3安装(超级详细图解教程) 相当齐全

    CentOS6.3 Linux操作系统安装教程

    【CentOS6.3 Linux操作系统安装教程】 CentOS是一款基于Red Hat Enterprise Linux(RHEL)源代码重新编译而成的免费Linux发行版,以其稳定性和兼容性受到广大用户的青睐,尤其适合构建LAMP(Linux、Apache、MySQL、...

    远程安装CentOS6.3

    远程安装 CentOS 6.3 并进行硬 RAID 配置 本文将指导用户如何远程安装 CentOS 6.3 操作系统,并在不同服务商的服务器上进行硬 RAID 配置。同时,本文还将详细介绍 CentOS 6.3 的安装过程和需求。 远程安装 CentOS ...

    CentOS6.3安装(超级详细图解教程)

    CentOS6.3安装(超级详细图解教程)。具体软件安装步骤与方法。

    centos6.3 yum安装软件包全集

    在Linux世界中,CentOS 6.3是一个广泛使用的操作系统版本,它基于RHEL(Red Hat Enterprise Linux)并提供了一个稳定、安全的服务器环境。在CentOS 6.3上,`yum`(Yellowdog Updater, Modified)是默认的包管理器,...

    Centos 6.3最小化安装桌面脚本

    Centos 6.3最小化安装桌面脚本 在最小化系统安装桌面

    CentOS 6.3安装文档

    **CentOS 6.3 安装步骤详解** 在本文中,我们将深入探讨如何安装 CentOS 6.3,这是一个基于 Linux 的操作系统,尤其适合初学者和那些熟悉 6.x 系列版本的用户。虽然 CentOS 6.3 已经不再支持,但了解其安装过程对...

    CentOS6.3源码安装mysql5.6方法.pdf

    在本文中,我们将详细讨论如何在CentOS 6.3上通过源码来安装MySQL 5.6.10。这个过程涵盖了从下载源码到配置、编译和启动MySQL服务的所有步骤。 首先,你需要访问MySQL的官方网站...

    Oracle 11g 安装文档-CentOS6.3

    综上所述,安装Oracle 11gR2 on CentOS 6.3涉及多个层面的系统配置和软件安装。遵循上述步骤,可以确保数据库顺利安装并稳定运行。在整个过程中,注意每一个细节,因为任何小的疏漏都可能导致安装失败或后续运行问题...

    XP下硬盘安装Centos 6.3

    - CentOS-6.0-i386-bin-DVD (32位系统镜像): 适用于安装CentOS 6.3的ISO文件, 可从官方或镜像站点下载。 - PowerQuest Partition Magic (磁盘分区工具): 用于在Windows XP环境下进行硬盘分区调整。 - Grub4Dos-...

Global site tag (gtag.js) - Google Analytics