Php 上传到主机后Codeigniter rest服务器500错误

Php 上传到主机后Codeigniter rest服务器500错误,php,.htaccess,rest,codeigniter-3,Php,.htaccess,Rest,Codeigniter 3,我的codeigniter 3应用程序使用rest服务器。我的应用程序在本地工作,当我上传应用程序时,除了rest服务器路由的post端点之外,其他应用程序都工作,但在错误日志文件中没有显示任何错误 服务器使用 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 Technologi

我的codeigniter 3应用程序使用rest服务器。我的应用程序在本地工作,当我上传应用程序时,除了rest服务器路由的post端点之外,其他应用程序都工作,但在错误日志文件中没有显示任何错误

服务器使用

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';
Add Subscription.php和USSD驻留在controllers文件夹内的api文件夹中

我使用.htaccess文件从URL中删除index.php

它是

$config['index_page']=


在config.php中是这样设置的,我终于找到了错误。Rest服务器需要PHP5.4或更高版本,因为它使用ne array[]格式。因此,借助Github中的其他一些repo,我能够使其与PHP 5.3兼容。

但错误日志文件中没有任何内容。我已将日志阈值设置为1@Fred ii,也许您没有检查正确的日志文件500通常是服务器端,而不是PHP。检查apache错误日志。在此服务器设置中是一个共享服务器空间,我无权访问apache日志文件
RewriteEngine on

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