[英]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.