[英]Why Luracast Restler is not working on a remote server as it is on a localhost?
I copied the Luracast Restler "Hello World" Math Class from a Localhost to a remote server but it is not running. 我将Luracast Restler“ Hello World”数学类从Localhost复制到了远程服务器,但是它没有运行。
http://www.sensorzapp.com/SensorZapp/test/index.php/math/multiply/2/3 http://www.sensorzapp.com/SensorZapp/test/index.php/math/multiply/2/3
Probaly the index.php is not connecting to the restler.php 可能index.php未连接到restler.php
Can you help me? 你能帮助我吗?
Thank you 谢谢
Hugo 雨果
First of all make sure everything is located correctly. 首先,请确保所有位置正确。
1) If you copied from the examples folder I'm pretty sure the path to vendor/restler.php will be incorrect in the index.php file. 1)如果您是从examples文件夹复制的,我很确定在index.php文件中vendor / restler.php的路径将不正确。
2) Also make sure the apache rewrite module is enabled. 2)还要确保已启用apache重写模块。 Enabled it with
启用了
sudo a2enmod rewrite
or
editing the apache conf manually
3) Another thing that may be noted is that apaches AllowOverride has to be set to ALL for the 3)可能需要注意的另一件事是,必须将Apatch的AllowOverride设置为ALL。
documentroot you have set 您设置的documentroot
AllowOverride All
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.