美文网首页
LAMP安装wordpress

LAMP安装wordpress

作者: CSeroad | 来源:发表于2018-06-28 22:26 被阅读10次

    在之前创建LAMP的基础上,进行安装wordpress。为了方便管理,先安装phpMyAdmin。

    安装phpMyAdmin

    rpm  -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

    install phpmyadmin

    然后进行编辑配置文件修改。

    vim  /etc/phpMyAdmin/config.inc.php

    数据库用户名、密码

    vim  /etc/httpd/conf.d/phpMyAdmin.conf

    设置为允许访问。

    allow

    ln  -sf  /usr/share/phpMyAdmin  /var/www/html/phpmyadmin  建立软连接

    重启服务。。

    success

    安装wordpress

    将wordpress下载好的软件包拷贝到/var/www/html/下,首次安装提示

    config.php

    cd /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

    相关文章

      网友评论

          本文标题:LAMP安装wordpress

          本文链接:https://www.haomeiwen.com/subject/bwonyftx.html