在之前创建LAMP的基础上,进行安装wordpress。为了方便管理,先安装phpMyAdmin。
安装phpMyAdmin
install phpmyadminrpm -Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
yum install --enablerepo=remi --enablerepo=remi-php56 phpmyadmin
yum -y install phpmyadmin
然后进行编辑配置文件修改。
数据库用户名、密码vim /etc/phpMyAdmin/config.inc.php
vim /etc/httpd/conf.d/phpMyAdmin.conf
设置为允许访问。
allowln -sf /usr/share/phpMyAdmin /var/www/html/phpmyadmin 建立软连接
重启服务。。
success安装wordpress
将wordpress下载好的软件包拷贝到/var/www/html/下,首次安装提示
config.phpcd /var/www/html/wordpress
cp wp-config-sample.php wp-config.php
对wp-config.php进行一些设置,并在phpMyAdmin上创建wordpress数据库。
config即可成功安装。
success参考资料:
https://blog.csdn.net/shelly1072/article/details/53136109
https://blog.csdn.net/programmer_wei/article/details/45888835
网友评论