【问题标题】:Why Luracast Restler is not working on a remote server as it is on a localhost?为什么 Luracast Restler 不像在本地主机上那样在远程服务器上工作?
【发布时间】:2013-12-31 11:27:58
【问题描述】:

我将 Luracast Restler“Hello World”数学类从本地主机复制到远程服务器,但它没有运行。

http://www.sensorzapp.com/SensorZapp/test/index.php/math/multiply/2/3

可能 index.php 没有连接到 restler.php

你能帮帮我吗?

谢谢

雨果

【问题讨论】:

    标签: php restler


    【解决方案1】:

    首先确保所有东西的位置都正确。

    1) 如果您从示例文件夹中复制,我很确定 vendor/restler.php 的路径在 index.php 文件中不正确。

    2) 还要确保启用了 apache 重写模块。启用它

      sudo a2enmod rewrite
      or
      editing the apache conf manually
    

    3) 可能需要注意的另一件事是,apache 的 AllowOverride 必须设置为 ALL 以用于
    你设置的文档根目录

    AllowOverride All
    

    【讨论】:

      猜你喜欢
      • 2015-06-19
      • 2014-12-05
      • 2023-04-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-07-13
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多