Installation help

A place for users and developers of the Xataface to discuss and receive support.

Installation help

Postby kokoro » Fri Feb 06, 2009 6:27 am

Hello,

I have installed the xataface folder in my webserver and get the Installed Correctly message at dataface_info.php but beyond that I am lost.

I have tried to access the index.php file in the Dataface directory and get a white page...?

I am not a professional programmer but have a modest level of experience with web applications (primarily Moodle) and php but I am lost as to what to do next.

Any help will be greatly appreciated.

Jason
kokoro
 
Posts: 39
Joined: Fri Feb 06, 2009 6:17 am

Postby shannah » Fri Feb 06, 2009 8:00 am

Hi Jason,

Try reading the Getting started tutorial. Specifically the section on creating your first application: http://xataface.com/documentation/tutor ... pplication


Or the About page. Specifically the part about your first app.
http://xataface.com/wiki/about

Or watching one of the videos.

-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Fri Feb 06, 2009 8:02 am

shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Installation help

Postby kokoro » Fri Feb 06, 2009 3:16 pm

Steve,

Thanks. I will try the "with just 4 lines of code" but have a quick question first. The 4 lines of code tutorial instructs me to create an index.php file to be placed in my xataface directory. An index.php file already exists in that location so am I correct in assuming that I need to overwrite that file?

Thanks again.

Jason
kokoro
 
Posts: 39
Joined: Fri Feb 06, 2009 6:17 am

Postby shannah » Fri Feb 06, 2009 3:54 pm

You don't need to add anything to the xataface directory. You don't need to modify the xataface directory in any way. Just copy it into your application directory.

I have added a clarification to the tutorial to this effect. The index.php file goes in your application directory not your xataface directory.

-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby kokoro » Fri Feb 06, 2009 3:56 pm

Steve,

I went ahead with my assumption (that I need to overwrite the index.php file that already exists in the xataface directory) and did so with the code provided in the "4 lines of code" tutorial.

I did the other steps as directed (created the conf.ini file, the .htaccess file, the index.php file, and the templates_c directory and made sure it has 777 permissions.

When I try to access the index.php file via my browser I get a 500 Internal Server Error...

I am attempting to use this (for initial testing) in an MAMP environment. The MAMP package has worked for trialing various php scripts (such as Moodle, phpaddedit, mahara etc.) so I am fairly confident that the required environment is in place.

Any additional pointers or advice will be sincerely appreciated.

Jason
kokoro
 
Posts: 39
Joined: Fri Feb 06, 2009 6:17 am

Postby shannah » Fri Feb 06, 2009 4:02 pm

please read my previous post... no changes necessary to the xataface directory. And when you're testing it out, don't point your browser to the xataface directory. Point it to your app.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby kokoro » Sat Feb 07, 2009 1:30 am

Steve,

I am sorry for my apparent cluelessness but I am still not having any success.

I did have the folder hierarchy set up incorrectly, thank you for pointing that out. I now have it set up as follows: (note - I deleted everything and started over with a fresh download of xataface)

/htdocs/myapp/xataface

With myapp also containing

conf.ini
index.php
templates_c (directory)

I removed the .htaccess file as it was apparently what was causing the 500 Internal Server error in my MAMP setup.

Now all I get is a white screen when I try to access the index.php file located at /htdocs/myapp/index.php

The two files (conf.ini & index.php) were created by cutting and pasting exactly what is found in the "How to build a...with 4 lines of code". Am I supposed to make any changes to those files.

Thanks again for your help and patience.

Jason
kokoro
 
Posts: 39
Joined: Fri Feb 06, 2009 6:17 am

Postby kokoro » Sat Feb 07, 2009 5:38 am

Steve,

Sorry for all the bugging. I watched your very nice screencast "Introduction to Xataface" and then went through the process again, this time using the installer script and everything worked flawlessly.

Sorry, again, for bugging you without taking sufficient time to figure things out for myself.

I will be working with this frantically over the next two months to develop a database front end for a group of administrators at our university.

Thanks!

Jason
kokoro
 
Posts: 39
Joined: Fri Feb 06, 2009 6:17 am

Postby shannah » Sat Feb 07, 2009 11:19 am

Glad to hear you got it working with the installer. The problems you were having with the "4 lines of code" tutorial were likely caused by hidden characters being introduced by your web browser when you copied/pasted the code into your application. The Internal server error indicates that there was something wrong with the .htaccess file. And the "white screen" is indicative of a PHP fatal error. It will be helpful for you to figure out where your error log resides so that you'll be able to debug problems like this in the future. (if you want to do any customizations to your app, you'll likely run into a fatal error or two along the way - and the error log will be extremely informative).

-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 9 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved