Hi Everyone,
I have created a smooth running applications build on xataface 1.2.6. It runs smoothly on my MacBook Pro (OS X leopard) under MAMP.
However when porting all the applications to a virtual machine running openSuSE 11.3, I ran into some problems/issues.
The following is the case:
When requesting the application i.e. http://movies.local/index.php, the browser shows the php code of my conf/ApplicationDelegate class!
The code which is displayed starts after the first -> of conf/ApplicationDelegate until the end of the file, in my case:
class conf_ApplicationDelegate {
function getPermissions($&record) {
$auth =& Dataface_AuthenticationTool::getInstance();
$user =& $auth->getLoggedInUser();
if( !isset($user) ) return Dataface_PermissionsTool::NO_ACCESS();
...
}
}
I have checked and double checked all the permissions of my application as well as from xataface-1.2.6 files and folders. In particular templates_c. This folder was empty and contains now the compiled templates of xataface, owned by the web user (which is correct). Also I see that the session data is written to /tmp as well as the cached images (also correct).
When I remove/rename the conf/ApplicationDelegate.php file. The application then displays the code of the first table which has a delegate file (*.php). I ran a little test with no .php and no .ini files (except conf.ini) in my application. The application displays the data from the same tables from the database without the framework (i.e. no images, lines, etc).
OpenSuSE environment is as follows:
OS: openSuSE 11.3 (text, no graphical interface)
configured as server (LAMP)
Apache 2.2.15 (Linux/SUSE)
PHP 5.3.3
MySQL 5.1.46
All the above is installed from the ISO download from openSuSE.org
Does anyone has a clue? I ran out of options.
Kind regards,
Harry