簡體   English   中英

為什么Luracast Restler不能像本地主機那樣在遠程服務器上工作?

[英]Why Luracast Restler is not working on a remote server as it is on a localhost?

我將Luracast Restler“ Hello World”數學類從Localhost復制到了遠程服務器,但是它沒有運行。

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

可能index.php未連接到restler.php

你能幫助我嗎?

謝謝

雨果

首先,請確保所有位置正確。

1)如果您是從examples文件夾復制的,我很確定在index.php文件中vendor / restler.php的路徑將不正確。

2)還要確保已啟用apache重寫模塊。 啟用了

  sudo a2enmod rewrite
  or
  editing the apache conf manually

3)可能需要注意的另一件事是,必須將Apatch的AllowOverride設置為ALL。
您設置的documentroot

AllowOverride All

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM