I had originally emailed Steve this question, but it may be lost in his spam folder. Surely someone else here can point out the simple (but not obvious to me) solution to my problem.
I'm doing my very first web site with MySql and want to put Xataface
in as an interface so my site owner can enter her own data. The
hosting company installed MySql and phpMyAdmin.
The object of the db and interface is to serve up information on
subscribing trainers, which are currently hard-coded on the site at
http://diabetesalertdogalliance.org/trainers.html,
if you want the full overview. Probably not necessary to debug my
problem, though.
Xataface has installed correctly (per testing), so I'm thinking my
problem is in the conf.ini or the index.php--or both.
Here's my directory structure:
web [directory containing the site's index.html file and most pages]
--|FOLDER [a subdirectory of "web" where .htaccess, conf.ini, and
index.php sit]
--|--|templates_c [a subdirectory of "FOLDER"]
--|--|xataface [a subdirectory of "FOLDER" where the extracted files
for the latest release sit]
I must access phpMyAdmin through Hostway's site control portal or
via this URL (modified a little for security):
https://something.siteprotect.com/phpMyAdmin/ (it will also work without
directing to the phpMyAdmin subdirectory)
The file attributes for the xataface directory are 755. The
directory templates_c is 777. (If you can suggest a more protected
attribute, I will change it.)
The server is Apache; I'm working in Windows 7. FTP client is
FileZilla.
-----------------------------------------------------------------------------------------------
The .htaccess file performs as designed.
------------------------------------------------------------------------------------------------
conf.ini [saved as UTF-8] [db name, pw, user redacted]
You can see my confusion about whether to use "localhost" or the url
I use to log into phpMyAdmin.
I also tried "
something.siteprotect.com/phpMyAdmin"
Re "name=", the actual db name is just the portion in caps, but
below is test required on login via the link above.
[_database]
host="localhost"
; host="
something.siteprotect.com"
name="
mysql-DB-NAME.diabetesalertdogalliance.org"
user="phpMyAdminUsername"
password="phpMyAdminPW"
[_tables]
; A list of tables to include in your application's menu
; These tables must already exist in your database
Trainers="Trainers"
--------------------------------------------------------------------------------------------------------
index.php:
<?php
// Include the Xataface API
require_once 'xataface/dataface-public-api.php';
df_init(__FILE__,
'
http://diabetesalertdogalliance.org/FOLDER/xataface')->display();
// file does not end with ?> -- should it?
-----------------------------------------------------------------------------------------------------------
If I go straight to
http://diabetesalertdogalliance.org/dada/xataface/installer.php,
I'm prompted for a password that is not accepted and the prompt
returns, thus:
Authentication Required
The server
http://diabetesalertdogalliance.org:80 requires
username and password. The server says: Dataface Installer.
![]()
-------------------------------------------------------------------------------------------------------------
No, I haven't gotten my fingers into php.ini to set up debugging.
I'm a little bit afraid to get that far under the hood. Not sure
where it is, anyway.
I deeply appreciate any help you can offer!
Marguerite