WordPress下安装的主题无法显示的解决办法

今天在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下就会显示出来了~

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
在OpenEuler下安装WordPress可以按照以下步骤进行操作: 1. 安装Apache HTTP Server和MariaDB数据库: ```shell # 安装Apache HTTP Server sudo dnf install httpd # 安装MariaDB数据库 sudo dnf install mariadb mariadb-server ``` 2. 配置MariaDB数据库: ```shell # 启动MariaDB服务 sudo systemctl start mariadb # 配置MariaDB数据库 sudo mysql_secure_installation ``` 在配置过程中,可以按照提示进行设置,例如设置root用户密码等。 3. 安装PHP: ```shell # 安装PHP sudo dnf install php php-mysqlnd php-gd php-xml php-mbstring ``` 4. 配置Apache HTTP Server: ```shell # 启动Apache HTTP Server服务 sudo systemctl start httpd # 配置Apache HTTP Server sudo vim /etc/httpd/conf/httpd.conf ``` 在配置文件中添加以下内容: ```apache <Directory "/var/www/html"> AllowOverride All </Directory> ``` 5. 下载并安装WordPress: ```shell # 下载WordPress wget https://wordpress.org/latest.tar.gz # 解压WordPress tar -zxvf latest.tar.gz # 移动WordPress sudo mv wordpress /var/www/html/ # 修改WordPress目录权限 sudo chown -R apache:apache /var/www/html/wordpress/ ``` 6. 配置WordPress: ```shell # 创建WordPress配置文件 cd /var/www/html/wordpress/ cp wp-config-sample.php wp-config.php # 修改WordPress配置文件 vim wp-config.php ``` 在配置文件中添加以下内容: ```php define( 'DB_NAME', 'wordpress' ); define( 'DB_USER', 'root' ); define( 'DB_PASSWORD', 'password' ); define( 'DB_HOST', 'localhost' ); define( 'DB_CHARSET', 'utf8' ); ``` 其中`DB_NAME`、`DB_USER`、`DB_PASSWORD`和`DB_HOST`需要根据实际情况进行设置。 7. 完成安装: 在浏览器中访问`http://your_server_ip/wordpress`,按照提示进行安装即可。 以上是在OpenEuler下安装WordPress的基本步骤,需要根据实际情况进行调整。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值