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 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)
  • ¥15 keil里为什么main.c定义的函数在it.c调用不了
  • ¥50 切换TabTip键盘的输入法
  • ¥15 可否在不同线程中调用封装数据库操作的类