My codeigniter 3 application uses rest server. My application is working locally and when i uploaded application works except post end points of rest server routes gives 500 error but nothing on error log file.
Server uses
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
and server is Linux 3.2.28-45.63.amzn1.x86_64 x86_64
I use 5.3 in my ampps setup. In local setup everything works fine.
routes files has custom routes
$route['api/subscription/notify'] = 'api/subscription/notify';
$route['api/ussd/receiver'] = 'api/ussd/receiver';
Add Subscription.php and USSD resides in api folder inside controllers folder.
I use .htaccess
file to remove index.php
from URLS.
it's
RewriteEngine on
RewriteCond $1 !^(index\.php|assets|imapp|robots\.txt)
RewriteRule ^(.*)$ index.php?/$1 [L]
And
$config['index_page'] = '';
Is set like this in config.php