debian部署wordpress

 

1.sudo apt install php libapache2-mod-php php-mysql安装php和常用扩展

nano /etc/apache2/mods-enabled/dir.conf

修改优先级DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm

改为DirectoryIndex index.php index.html index.cgi index.pl  index.xhtml index.htm

Ctrl+X 保存退出

2.apt install mysql-server(改为mariadb-server)

sudo systemctl enable mysql –now

sudo mysql -u root(用户名,输入mysql密码,回车)

FLUSH PRIVILEGES

EXIT

3.下载wordpress并解压

wget http://wordpress.org/latest.tar.gz

tar -xzvf latest.tar.gz

4.将wordpress下的所有文件复制到apache目录下

sudo cp -r wordpress/* /var/www/html/

cd /var/www/html/

sudo cp wp-config-sample.php wp-config.php

sudo nano wp-config.php

修改数据库名称,用户名,密码

 

 

 

------本页内容已结束,喜欢请分享------

感谢您的来访,获取更多精彩文章请收藏本站。

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容