2015-11-06 38 views
0

我的codeigniter 3应用程序使用休息服务器。我的应用程序在本地工作,当我上传应用程序工程时,除了剩余服务器路径的后端点给出500错误但没有任何错误日志文件。上传到主机后Codeigniter休息服务器500出错

Server使用

PHP 5.3.28 (cli) (built: Dec 17 2013 00:28:38) 
Copyright (c) 1997-2013 The PHP Group 
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies 

和服务器为Linux 3.2.28-45.63.amzn1.x86_64 x86_64

我在ampps设置中使用5.3。在本地设置一切正常。

路线文件定制路线

$route['api/subscription/notify'] = 'api/subscription/notify'; 
$route['api/ussd/receiver'] = 'api/ussd/receiver'; 

添加Subscription.php和USSD驻留在控制器文件夹内的文件夹中的API。我使用.htaccess文件从URLS中删除index.php

RewriteEngine on 

RewriteCond $1 !^(index\.php|assets|imapp|robots\.txt) 
RewriteRule ^(.*)$ index.php?/$1 [L] 

而且

$config['index_page'] = '';

config.php

+0

检查您的日志。 –

+0

但错误日志文件没有。 – user2473015

+0

我设置了日志阈值1 @ Fred-ii- – user2473015

回答

0

设置这样我终于找到了错误。因为它使用ne array []格式,所以Rest Server需要PHP5.4或更高版本。所以在Github上的一些其他回购帮助我能够使它与PHP 5.3兼容。

相关问题