[我的wordpress](http://45.55.19.102)花了两天时间,安装了wp,安装过程遇到了一些问题。把安装过程和遇到的问题总结如下:抱歉 写的过程中 有中文有英文,并非我想炫耀渣英文 而是 中英文切换太麻烦了...
wordpress的安装过程
- 安装环境
- 有独立ip的VPS centos
- 相关软件
- php yum install php
- apache yum install httpd service httpd start
- mysql yum install mysql-server mysql service mysql start
- 检测软件是否安装成功
- <?php phpinfo(); ? > save as /var/www/html/info.php
- localhost/ show information about apache server means apache is running
- localhost/info.php show information about php means php is ready
- systemctl -status mysql shows mysql service is working or not
- wp安装与配置
- log to mysql as root
- create database for wordpress in mysql
- create db user for wordpress
- grant to usr
- refresh
- exit mysql
-
mysql -u root -p CREATE DATABASE wordpress; CREATE USER wordpressuser@localhost IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON wordpress.* TO wordpressuser@localhost IDENTIFIED BY 'password'; FLUSH PRIVILEGES; exit
- download wp
- tar gz
- copy wordpress dir to /var/www/html
- mkdir for upload
-
cd ~ wget http://wordpress.org/latest.tar.gz tar xzvf latest.tar.gz sudo rsync -avP ~/wordpress/ /var/www/html/ mkdir /var/www/html/wp-content/uploads chown -R apache:apache /var/www/html/*
- config wp-config.php
-
-
cp wp-config-sample.php wp-config.php nano wp-config.php ##################################################### // ** MySQL settings - You can get this info from your web host ** // /** The name of the database for WordPress */ define('DB_NAME', 'wordpress'); /** MySQL database username */ define('DB_USER', 'wordpressuser'); /** MySQL database password */ define('DB_PASSWORD', 'password'); /** MySQL hostname */ define('DB_HOST', localhost); /* localhost for local db or ip for remote db*/ #####################################################
- http://localhost or ip to install wp
- have fun
-