我刚刚使用Slim Framework 3.x在small video之后创建了一个简单的REST Api . 我刚刚开始,我按照视频中的说明创建了一个这样的简单路线

$app->get('/', function($request, $response)
  {
    return 'Home';
  });

当我打开链接`时,这适用于localserver(XAMP)

localserver / project_name / public /

`我在页面上返回“Home” . 之后,我只是压缩项目文件夹并将其上传到我的Web Hosting,htdocs文件夹 . 我解压缩了压缩项目,其中包括“composer.phar”和“vendor”文件夹 . 我再次尝试同样的事情,即我运行网址

www.mysite.com/project_name/public/

我所做的就是用 www.mysite.com 更改 "localserver" 但是浏览器告诉我我的域名

目前无法处理此请求 .

我知道这可能是非常明显的东西,但我是一个新手的PHP和REST Api 's. So any help is appreciated. Also some things I think might matter are, The web hosting that I am using is Plesk based. I have a mysql database Running on the hosting and simple php files run when run individually. For example if I run simple call a test.php file with some database query in it and some echo, it will run successfully. Even if you can point me in the right direction, I would appreciate it. Oh, and I don'吨可以访问主机上的php.ini . 我只提供了一个登录,让我登录到托管,我可以看到 htdocs 文件夹和其他一些 . 我已经附加了登录后获得的视图image,以便更全面地了解我拥有的托管类型 . 我也在httpdocs目录中托管一个网站 . ASP.NET开发

我只需要一些指示,我需要做些什么才能将我的REST api发布到我的主机,并能够通过我正在构建的这个Android应用程序访问它 . 我需要在服务器上做什么?要更改哪些设置以使api工作?