index.php:
- Code: Select all
error_reporting(E_ALL);
ini_set('display_errors', 'on');
require_once('/home/username/public_html/xataface/dataface-public-api.php');
df_init(__FILE__, '/home/username/public_html/xataface');
$app =& Dataface_Application::getInstance();
$app->display;
conf.ini:
- Code: Select all
[_database]
host = "localhost"
user = "user_fow"
password = "**********"
name = "user_FacultyOfWidgetry"
[_tables]
Course = "Course"
Program = "Program"
In the index.php, I've tried every imaginable combination of relative and explicit paths I can think of. This is on a cPanel server, so Apache logs are in /usr/local/apache/logs/error_log ... no errors except for the missing favicon.ico
This works without error also:
- Code: Select all
require_once('../xataface/dataface-public-api.php');
df_init(__FILE__, 'xataface');
... and this:
- Code: Select all
require_once('../xataface/dataface-public-api.php');
df_init(__FILE__, '/xataface');
If I change the require_once or df_init paths to this:
- Code: Select all
require_once('xataface/dataface-public-api.php');
df_init(__FILE__, '/xataface');
... I get this error displayed:
Warning: require_once(xataface/dataface-public-api.php) [function.require-once]: failed to open stream: No such file or directory in /home/username/public_html/fow/index.php on line 5
Fatal error: require_once() [function.require]: Failed opening required 'xataface/dataface-public-api.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/username/public_html/fow/index.php on line 5
And Apache error_log shows no error.
Oh, the link to: www.aonx.net/xataface/dataface_info.php works fine and says I'm good to go.
Safe Mode = Off
Open BaseDir = Not permitted
The server does run suExec/suhosin in case that matters. I own the server so I have access to everything. I f someone can see what I obviously cannot, I would be most appreciative of some guidance.