duanne9313 2016-07-11 12:33
浏览 41
已采纳

如何自动在服务器上下载Wordpress?

I would like to provide my Wordpress Theme for users to download. I thought it would be nice to give them also an option to download the newest version of Wordpress which includes my theme. The URL of the newst version of Wordpress is: https://wordpress.org/latest.zip

I would like to do the following:

  1. First download the latest version of Wordpress on the server
  2. Unzip it (if needed)
  3. Move my theme to the theme directory
  4. Zip it back (if needed)
  5. Provide it to download

Once the zip file is on my FTP server, I don't see any problems to move or unzip files. The question is rather: How can I download Wordpress on my server?

  • 写回答

1条回答 默认 最新

  • dsvcqvp139098 2016-07-11 12:38
    关注

    assuming you are using an apache/linux server us this CLI command on $

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

    this will download the latest wordpress release into your user folder on your server. From there you can unpack and move it to var/www/...

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥30 VMware 云桌面水印如何添加
  • ¥15 用ns3仿真出5G核心网网元
  • ¥15 matlab答疑 关于海上风电的爬坡事件检测
  • ¥88 python部署量化回测异常问题
  • ¥30 酬劳2w元求合作写文章
  • ¥15 在现有系统基础上增加功能
  • ¥15 远程桌面文档内容复制粘贴,格式会变化
  • ¥15 这种微信登录授权 谁可以做啊
  • ¥15 请问我该如何添加自己的数据去运行蚁群算法代码
  • ¥20 用HslCommunication 连接欧姆龙 plc有时会连接失败。报异常为“未知错误”