今天在Install Themes里安装了一个主题,通过FTP上传到服务器成功后,但是在Manage Themes里并没有显示出我安装的主题。
还是一下一段话
You only have one theme installed right now. Live a little! You can choose from over 1,000
free themes in the WordPress.org Theme Directory at any time: just click on the Install Themes
tab above.
在谷歌上查了一下,发现是服务器或者VPS上面的”php.ini”里面的函数中的disable_funcions = 后面的"
scandir"
去掉就行了.
在LNMP的环境下:vim /usr/local/php/etc/php.ini 然后/scandir 查找到了直接连','删除 保存退出就可以了
最后重启LNMP: /root/lnmp restart 到Manage Themes下就会显示出来了~