FTP到Linux Web应用程序没有网站文件 [英] FTP to Linux web app does not have web site files

查看:75
本文介绍了FTP到Linux Web应用程序没有网站文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我现在有一张公开的支持票,但我想我也会在这里发布.我是Azure的新手,但是我遇到的问题使我陷入了停顿.我希望我缺少一些简单的东西.我做了什么:

Hello, I have an open support ticket right now but I thought I would post here too. I am new to Azure, but the problem I am having has brought me to a grinding halt. I hope I am missing something simple. What I did:

  • 在Linux Web应用程序上创建Wordpress
  • 在该Web应用程序的属性中为我的FTP用户分配了密码
  • 通过基本的Wordpress设置,以便该站点在以下情况下可以正常工作您转到URL https://bbcw1.azurewebsites.net/

在概述中记下FTP服务器,我能够成功连接.但是,wwwroot文件夹仅包含"hostingstart.html". -没有与wordpress相关的内容.

Taking note of the FTP server in Overview, I am able to successfully connect. However, the wwwroot folder only contains "hostingstart.html" - nothing wordpress related.

当我使用SSH控制台时,我可以导航到/var/www/并列出目录的内容-该目录包含适用于Wordpress安装的适当文件.

When I use the SSH console I can navigate to /var/www/ and list the contents of the directory - which contains the proper files for a Wordpress install.

但是,如果我使用高级工具"浏览文件结构,我看到带有单个hostingstart.html文件的wwwroot目录.

However if I use the "Advanced Tools" to browse the file structure I see the wwwroot directory with the single hostingstart.html file.

(作为新手用户...)似乎给我的FTP服务器不正确.我还注意到部署选项显示为灰色.我正在使用标准应用程序服务计划.另外,这是一个Azure赞助帐户-可能是阻止了我 使用FTP?

It would seem (as a novice user...) that the FTP server I am being given is not correct. I also noticed that Deployment Options is greyed out. I am using a Standard App service plan. Also, this is a Azure Sponsorship account - perhaps that is blocking me from using FTP?

更新:我可以在Linux上使用Web应用程序+ mySQL.不知道有什么区别,但是也许我对Wordpress图片的理解不对?

Update: I am able to work with the Web app + mySQL on Linux just fine. Not sure what the differences are, but perhaps my understanding of the Wordpress image is off?

推荐答案

I would suggest you to check once, whether you have copied your files and their respective directory structure to the /site/wwwroot directory in Azure?

当您说时, 我能够在Linux上使用Web应用程序+ mySQL很好":您能否获得此Web的所有内容 在wwwroot文件夹中的应用程序?不仅不适用于WordPress图片吗?

When you say, "I am able to work with the Web app + mySQL on Linux just fine": Are you able to get all the contents of this Web App in wwwroot folder? Is it only not working for WordPress image?

尝试设置"WEBSITES_ENABLE_APP_SERVICE_STORAGE" =真".您可以查看以下屏幕截图,

那里的重要部分正在关注:

&& ln -s/home/site/wwwroot/var/www/html \

&& ln -s/home/LogFiles/var/log/apache2

这两行是什么实际上,它们是在/home/site/wwwroot和默认的Apache的/var/www/html之间创建符号链接 文件夹.您也可以采用其他方法,例如在apache2.conf中为虚拟主机指定这些路径.

What these two lines actually do is that they create a symbolic link between the /home/site/wwwroot and the default Apache’s /var/www/html folder. You could also take a different approach and for example specify these paths in the apache2.conf for the virtual host.

参考: https://hajekj.net/2016/12/25/building-custom-docker-images-for-use-in-app-service-on-linux/

Reference: https://hajekj.net/2016/12/25/building-custom-docker-images-for-use-in-app-service-on-linux/

免责声明 :此响应包含对第三方World Wide的引用 网站. Microsoft为方便您而提供此信息. Microsoft不控制这些站点,也没有测试在这些站点上找到的任何软件或信息;因此,Microsoft无法就质量做出任何陈述, 安全性,或在那里找到的任何软件或信息的适用性.使用Internet上发现的任何软件都存在固有的危险,Microsoft提醒您在从以下位置检索任何软件之前,请确保您完全了解风险.

Disclaimer: This response contains a reference to a third-party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet. 


这篇关于FTP到Linux Web应用程序没有网站文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆