We have built an API using the Yii framework. Everything is working as expected on our sandbox environment. The issue lies when we try to use production.
We are using CentOS 6.3, Apache 2.2.15, and PHP 5.3.3 for Sandbox.
We are using CentOS 6.4, Apache 2.2.15, and PHP 5.5.3 for Production.
No other differences that I can think of.
However when we send a post to the API to our production servers, we are getting the error:
Message : Unable to resolve the request "site".
File : /var/www/html/yii/framework/web/CWebApplication.php
The same post works fine on our sandbox. I’ve looked up reasons for this and all I can find is a capitalization issue between windows and linux, but we’re using linux for both environments.
I’m all out of ideas as to what could be going on. Anyone have a good place to look? Thanks in advance.
Thanks for the response. And thanks for hosting the Olympics this year
I forgot to mention that I’ve double checked the apache config file, php.ini, and .htaccess, and they are all the same.
The strange thing is, when one goes to the URL in a browser window (https://www.example.com/SampleRequest), the error doesn’t appear. However when one makes a POST to that url, the error message happens.
There is no REST functionality, it’s just http authorization in the headers and a POST. They send a POST to https://www.example.com/SampleRequestRQ. We have one controller for each type of request and all the controller expects is a single post of XML.
RewriteEngine on
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule . index.php
I’ve reviewed file perms and they are the same. :-/