doulou0882 2016-09-26 19:35
浏览 28
已采纳

在RPi上使用Wordpress全新安装的问题

1) I cannot change themes. It asks me for an FTP login. I changed the connection type to direct in the config, but it doesn't change anything. Although I seem to be entering the right credentials, it says error 21, can't connect to server.

2) The webpage displays correctly on the RPi, but when I try to access the website on another computer on my local network, the webpage doesn't display properly. The best description I can give is that it doesn't have any pictures or formatting.

3) When accessing on the same computer as issue #2, the webpages don't route properly. I visit the webpage using (example) 192.168.1.22. It goes to the webpage. Then when I click on Login, it goes to localhost/wp-admin.php instead of 192.168.1.22/wp-admin.php and I am not sure why.

Picture: http://screencast.com/t/7jEgzDGZQ

  • 写回答

2条回答 默认 最新

  • dsutuyxe088689 2016-09-26 20:06
    关注

    Without knowing more, I can give you a bit of insight that will hopefully help.

    1. Sounds like a file permissions issue. If you want to be able to update/add themes from the admin back-end, you need to give file permissions to the web-server user/user-group (www-data many times) Also, the inability to connect via ftp, could be a firewall setting in linux. you'll have to do some research based on your distro.
    2. This is most likely in relation to #3. Basically, your client (the other computer) is looking for your CSS on localhost and it doesn't exist.
    3. Try this. Use your favorite tool (like wp-cli) to do a search-replace in the DB for localhost to your ip. Then try all these things.

    Hopefully this helps you get on the right path!

    • Cheers!
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 nginx中的CORS策略应该如何配置
  • ¥30 信号与系统实验:采样定理分析
  • ¥100 我想找人帮我写Python 的股票分析代码,有意请加mathtao
  • ¥20 Vite 打包的 Vue3 组件库,图标无法显示
  • ¥15 php 同步电商平台多个店铺增量订单和订单状态
  • ¥15 关于logstash转发日志时发生的部分内容丢失问题
  • ¥17 pro*C预编译“闪回查询”报错SCN不能识别
  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题